CogDataAnalysis AddNew Method Cognex VisionPro 9.22
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.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax

public CogStatistics AddNew(
	string key,
	int index
)

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: CogStatistics

The newly added CogStatistics.

Exceptions

ExceptionCondition
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