CogOutputLines GetGroupValue Method Cognex VisionPro 9.5
Access a group of up to 32 output line values as a binary number.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax

public int GetGroupValue(
	int firstIndex,
	int numberOfBits
)

Return Value

Type: Int32
Exceptions

ExceptionCondition
CogCollectionInvalidIndexException

firstIndex is < 0 or >= Count.

ArgumentException

numberOfBits is < 1 or > 32.

Remarks

Reads or writes a group of up to 32 output line values as a binary number.

The first output line, specified by firstIndex has a binary value of 1. The last output line, specified by firstIndex+numberOfBits-1, has a binary value of 2^(numberOfBits-1).

See Also