CogPrioState Line Method Cognex VisionPro 9.8
Returns the line value of the user supplied line at the moment the state was read.

Note: Once a state object is read/created its contained values do not change. To get the current values you must call ReadState() again.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 75.1.0.0 (75.1.0.0)
Syntax

public bool Line(
	CogPrioBankConstants bank,
	int lineNumber
)

Return Value

Type: Boolean
Exceptions

ExceptionCondition
CogPrioInvalidBankException Thrown if the hardware does not support the given i/o bank.
CogPrioInvalidLineException Thrown if the hardware does not support the given i/o line.
See Also