Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

VB6 with USB-6211, DAQmx

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.

0 Kudos
Message 1 of 2
(6,660 Views)

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.

Best regards,
Rohan B
0 Kudos
Message 2 of 2
(6,649 Views)