Reads a group of up to 32 input line values as a binary number.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
Parameters
- firstIndex
- Type: System Int32
The first input line.
- numberOfBits
- Type: System Int32
The number of lines to read.
Return Value
Type: Int32Exceptions
| Exception | Condition |
|---|---|
| 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