08-31-2011 08:11 AM
Hello,
I am using Labview 8.2 and I am using a USB-6009. I would like to be able to detect the presence of the USB-6009 device at the beginning of the
program, so that I can disable/enable the options that use the USB-6009 if the system has it or not.
So how do I determine if the USB-6009 exists?
08-31-2011 08:19 AM
Hi Kaspar,
You can use the DevNames property of a DAQmx System Property Node which returns an array containing names of all DAQ devices currently in the system. You can search through this list to determine if the USB-6009 is in the system. The DAQmx System node can be found in the following pallette: Measurement I/O>>DAQmx>>DAQmx Advanced>>System Setup.
Thanks
Eric
08-31-2011 08:19 AM - edited 08-31-2011 08:20 AM
Two ways I've used:
1) Ask for data from it. If it does not return an error, it's connected.
2) Better: the unit has a reference voltage on one of the outputs. You can perform a "wrap-back" and tell that the unit is connected and functioning. In other words, wire the reference voltage output to an unused AI, and check that AI at startup.