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.IOAssembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 85.1.0.0 (85.1.0.0)
Syntax
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
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when a line's Enabled value is changed. |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
| ArgumentOutOfRangeException | If the line argument is less than zero or greater than 23. |
See Also