CogInputLines GetGroupValue Method Cognex VisionPro 9.8
Reads a group of up to 32 input line values as a binary number.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.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 a group of up to 32 input line values as a binary number.

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

Note: The line values you specify are logical lines. Make sure that the frame grabber and I/O adapter configuration that you are using maps the range of logical lines you specify as contiguous physical lines.

See Also