Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Read USB device model & serial number.

 Is there a way to read a USB device serial number and or type for 6501 and 6509 devices with DAQ-mx?  I need to verify in a dot.net application that the customer has correct hardware attached.   If it is setup wrong the dot.net application can change the "DEV1" and "DEV2".  I am using VB2005.

 

I would would be nice to be able to access Data displayed in Max.

0 Kudos
Message 1 of 3
(5,582 Views)

Hi Nilkrub,

 

I understand that you want to determine the device information and eventually change the device name. Unfortunately, I haven't found a way of programmatically change the device name, but instead you could make your application dynamically account for the different device name set up.

You can determine the DAQmx devices present in your system. This discussion forum shows how to get the device information in vb; I think it pretty much answers your question. Although it is not posted there, you can obtain the serial number with the property d.SerialNumber with the DaqSystem.Local.LoadDevice(deviceName). I also found a knowledge base called "Programmatically Determining What DAQ Devices Are In My System" which may be helpful in your application.  It can be found here.

 

Regards,

Ana P
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(5,557 Views)

Works just great. 

 

Thank You

 

0 Kudos
Message 3 of 3
(5,536 Views)