Creates a new channel that may be used to set tolerance limits, compute statistics, and buffer data values. If NumBufferedValues is greater than zero, the channel will be initialized with that number of invalid values.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- key
- Type: System String
The channel key. You can use this value to refer to the channel.
- index
- Type: System Int32
The 0-based index at which to add the new channel.
Return Value
Type: CogStatisticsThe newly added CogStatistics.
Exceptions
| Exception | Condition |
|---|---|
| CogCollectionInvalidIndexException | index is less than 0 or greater than Count. |
| CogCollectionDuplicateKeyException | key already exists. |
| CogCollectionDuplicateItemException | The item already exists. |
Remarks
Creates a new channel that may be used to set tolerance limits, compute statistics, and buffer data values. If NumBufferedValues is greater than zero, the channel will be initialized with that number of invalid values.
See Also