08-19-2010 12:22 PM
I'm using VB6 and a USB-6211. The application I've written will be used on many users computers and they may not always be using the same USB-6211 device.
Is there a way from VB6 to determine what the name of the device is? For instance, the first time you plug in a USB-6211 it will be name "Dev1", if you remove it and plug in a different USB-6211 it will be named "Dev2". My program uses functions like DAQmxCreateAIVoltageChan that require the name of the device. How can I find the name of the currently plugged in device with out asking the user to find it?
Thanks for the help.
08-20-2010 09:26 AM
Hi ScottK,
You can get a list of the devices on your system using the following property call: DAQmxGetSysDevNames.
The best reference would be the NI-DAQmx C Reference Help, which is in the Start->All Programs->National Instruments->NI-DAQ->Text-based Code Support folder on your computer. Let me know if you have any further questions.