CogPrioState Line Method Cognex VisionPro 9.22
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: 87.0.0.0 (87.0.0.0)
Syntax

public bool Line(
	CogPrioBankConstants bank,
	int lineNumber
)

Parameters

bank
Type: Cognex.VisionPro.Comm CogPrioBankConstants
lineNumber
Type: System Int32

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