CogIOMCB GetLinePolarity Method (Int32)Cognex VisionPro
Get the polarity for the specified line on this device. With possible values of CogIOLinePolarity.LowToHigh or CogIOLinePolarity.HighToLow, this parameter is used by the Write(), SetValue(), and WriteSyncPulse() methods.

Namespace: Cognex.VisionPro.QuickBuild.IO
Assembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 65.1.0.0 (65.1.0.0)
Syntax

public CogIOLinePolarity GetLinePolarity(
	int line
)

Parameters

line
Type: System Int32
The line number. Must be in the range 0 to 23 inclusive.

Return Value

Type: CogIOLinePolarity
The polarity for the specified line on this device. May be either CogIOLinePolarity.LowToHigh or CogIOLinePolarity.HighToLow.
Exceptions

ExceptionCondition
ObjectDisposedException If this CogIOMCB object has already been disposed.
ArgumentOutOfRangeException If the line argument is less than zero or greater than 23.
See Also