CogIOMCB SetLineEnabled Method Cognex VisionPro 9.23
Specify whether or not the indicated line on this device is enabled. If you set this to false for a given line, you will be prevented from writing to or reading from that line. If a heartbeat is already running on this line, it will not be affected, but you will be prevented from restarting it once you have stopped it.

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

public void SetLineEnabled(
	int line,
	bool enabled
)

Parameters

line
Type: System Int32
The line number. Must be in the range 0 to 23 inclusive.
enabled
Type: System Boolean
The desired state of the line.
Events

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