Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to distinguish two USB DAQs connected to the same PC?

Solved!
Go to solution

I'm now planning to make a system using two USB 6008. 

In this case, how can I distinguish two 6008s? I mean, which one becomes "dev1"?

Also, is there any way to fix the assignment of the physical channl name for each device?

 

If I could read the serial number (or machine id) of each DAQ, it would be helpful...

(I am using VB.NET).

 

Thanks in advance...

0 Kudos
Message 1 of 3
(3,365 Views)
Solution
Accepted by topic author ytaku

 

Dim Devices() As String = NationalInstruments.DAQmx.DaqSystem.Local.Devices
Dim DeviceInfo As NationalInstruments.DAQmx.Device

Dim X As Integer


For X = 0 To Devices.GetUpperBound(0)
DeviceInfo = NationalInstruments.DAQmx.DaqSystem.Local.LoadDevice(Devices(X))
MsgBox(DeviceInfo.DeviceID & " SN = " & DeviceInfo.SerialNumber.ToString)
Next

 

 

Make sure to add references to NationalInstruments.Common and NationalInstruments.DAQmx to the project.

 

There is other information in the DeviceInfo structure that me be helpfull as well

Message 2 of 3
(3,360 Views)

Thank you!! It worked very well!!

0 Kudos
Message 3 of 3
(3,343 Views)