CogIOMCB SetLinePulseWidth Method Cognex VisionPro 9.8
Set the pulse width, in milliseconds, for the specified line on this device. This parameter is used by the WriteSyncPulse(). If you set this to a new value while a heartbeat is already running on this line, the heartbeat will not be affected. If you then stopped and subsequently restarted the heartbeat on this line, it would reflect this new pulse width value.

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

public void SetLinePulseWidth(
	int line,
	int pulseWidth
)

Parameters

line
Type: System Int32
The line number. Must be in the range 0 to 23 inclusive.
pulseWidth
Type: System Int32
The desired pulse width, in milliseconds.
Events

Event TypeReason
ICogChangedEvent Changed Fires when a line's PulseWidth 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