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: 73.0.0.0 (73.0.0.0)
Syntax
Parameters
- writeData
- Type: Cognex.VisionPro.QuickBuild.IO CogIOOutputData
A CogIOOutputData base class reference to a CogIODiscreteData object. This object describes what values are to be written to what lines on this device. May not be null, and must be capable of being cast to a CogIODiscreteData object.
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If this CogIOMCB object has already been disposed. |
| ArgumentNullException | If the writeData 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