Hello,
You can use the DAQmx function called DAQmxGetSysDevNames. If you look inside the DAQmx C Reference Help file you will see the function prototype (int32 __CFUNC DAQmxGetSysDevNames(char *data, uInt32 bufferSize); ). You can find the DAQmx C Reference Help file under Start >> Programs >> National Instruments >> NI-DAQ.
I tested this function with DAQmx 8.3 with my USB-6009. When I had the
device plugged in, it would be in the returned data. If the device was
not plugged in, the returned data did not contain the device.
The DAQmxGetSysDevNames returns the DAQmx device names for each device in your list. If you want to identify each device you can then use the property called DAQmxGetDevProductType (int32 __CFUNC DAQmxGetDevProductType(const char device[], char *data, uInt32
bufferSize); )
I hope this helps,
Regards,
Jesse O.
Applications Engineering
National Instruments.
Message Edited by Jesse O on 10-16-2006 11:04 AM
Jesse O. | National Instruments R&D