imaqIOOpen Method
Syntax
imaqIOOpen deviceName, id
Purpose
Opens a reference to an NI-IMAQ I/O device.
Parameters
id As IMAQIO_SESSION
(Output Parameter) The ID of the session to associated with the deviceName.
deviceName As String
The name of the device to open a session on. This is the VISA name that is defined in Measurement & Automation Explorer (MAX). This name is similar to RIO#::INSTR, where # represents the number of the RIO device, depending on how many RIO devices are installed in the system.
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorTextVB.