CogDiscreteIOAccess CreatePrecisionIO Method Cognex VisionPro 9.7
Creates and returns a precision I/O object. The user interacts with the precision I/O capabilities of the comm card though the returned object.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 73.0.0.0
Syntax

public CogPrio CreatePrecisionIO()

Return Value

Type: CogPrio
Exceptions

ExceptionCondition
InvalidOperationException Thrown if a precision I/O interface has already been created.
CogHardwareInUseException Thrown if the hardware is in use by another process. Only a single process may access the hardware. When this exception is thrown, you must close any other processes that are using the hardware, and re-start this process in order to access the hardware.
CogIncompatibleFirmwareException Thrown if the version of the Comm Card firmware is incompatible with the version of the host library. Run "%VPRO_ROOT%\bin\fwuphost.exe --pkg vm56_firmware_X_X_X_X.pkg" to upgrade firmware."
See Also