CogIOMCB SetLinePolarity Method (Int32, CogIOLinePolarity)Cognex VisionPro 9.7
Set the polarity for the specified line on this device. May be either 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: 73.0.0.0 (73.0.0.0)
Syntax

public void SetLinePolarity(
	int line,
	CogIOLinePolarity polarity
)
Events

Event TypeReason
ICogChangedEvent Changed Fires when a line's Polarity value is changed.
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