Set the state of zero or more output lines as described
by the supplied argument. This argument is a data structure
holding a set of line/value pairs. This method steps through
this set of data, setting in turn each specified line to the
specified state.
Namespace: Cognex.VisionPro.QuickBuild.IOAssembly: Cognex.VisionPro.QuickBuild.IO (in Cognex.VisionPro.QuickBuild.IO.dll) Version: 87.0.0.0 (87.0.0.0)
Syntax
Parameters
- discreteData
- Type: Cognex.VisionPro.QuickBuild.IO CogIODiscreteData
A CogIODiscreteData object that describes what values are to be written to what lines on this device. May not be null.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
| ArgumentNullException | If the discreteData argument is null. |
| InvalidOperationException | If this device is not currently open. |
| ArgumentOutOfRangeException | If a line argument is less than zero or greater than 23. |
| InvalidOperationException | If a specified line is not currently enabled. |
| InvalidOperationException | If the port associated with a specified line is not currently configured for output. |
| InvalidOperationException | If an error is encountered while writing to an individual line. |
See Also