CogIOMCB Open Method Cognex VisionPro 9.20
Open the device. Each CogIOMCB object may be associated with one actual MeasurementComputing PCI-DIO24/S board. Calling this method causes the underlying hardware connection to be established and the hardware to be initialized. Upon successfully calling this method, the IsDeviceOpen property will be true.

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

public override void Open()
Events

Exceptions

ExceptionCondition
ObjectDisposedException If this CogIOMCB object has already been disposed.
InvalidOperationException If a CogIOMCB device with this index is already open.
Exception If the "Measurement Computing" section of the VisionPro.ini configuration file cannot be located.
FileNotFoundException If the Measurement Computing MccDaq.dll fails to load.
Exception If a valid board with the specified index is not created.
See Also