Returns the values all lines in an i/o bank as an integer value.
Namespace: Cognex.VisionPro.CommNote: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
Parameters
Return Value
Type: Int32Exceptions
| Exception | Condition |
|---|---|
| CogPrioInvalidBankException | Thrown if the hardware does not support the given i/o bank. |
Remarks
bool output0High = precisionIOState.Outputs & 0x01;
bool output1High = precisionIOState.Outputs & 0x02;
bool output3High = precisionIOState.Outputs & 0x04;
and so on...
See Also