CogIOMCB Constructor (String, Int32)Cognex VisionPro
Create an instance of the CogIOMCB class with the specified device name and device index. Note that you may only create at most one instance of this class for a particular device index.

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

public CogIOMCB(
	string deviceName,
	int deviceIndex
)

Parameters

deviceName
Type: System String
A string that identifies this device, e.g. "PCI-DIO24/S". May not be null.
deviceIndex
Type: System Int32
The zero based index for this board. If you have only a single PCI-DIO24/S board, this should be zero. May not be less than zero.
Exceptions

ExceptionCondition
ArgumentNullException If the deviceName argument is null.
ArgumentOutOfRangeException If the deviceIndex argument is less than zero.
ArgumentOutOfRangeException If an instance of CogIOMCB already exists with this device index.
See Also