imaqIOOpen
Format
rval = imaqIOOpen(const char* deviceName, IMAQIO_SESSION* id);
Purpose
Opens a reference to an NI-IMAQ I/O device.
Parameters
Name | Type | Direction |
deviceName | const char* | input |
id | IMAQIO_SESSION* | output |
Parameter Discussion
deviceName is the name of the device to open a session on. This is the VISA name that is defined in Measurement & Automation Explorer (MAX). The name appears similar to RIO#::INSTR, where # represents a specific RIO device, depending on how many RIO devices you have in the system.
id is a pointer to an IMAQIO_SESSION variable. On success, the variable is populated with a valid IMAQIO_SESSION to use in subsequent functions.
Return Value
This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imaqIOGetErrorText.