Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Two USB6008 on different hubs - how to tell one from the other

Solved!
Go to solution

My PC supports two instruments where each instrument consists of a hub, a USB6008 DAQ, and another mfg's DAQ. The two hubs plug into two respective USB ports on the PC.

 

I have code that walks the USB tree and finds each hub, and then in turn finds each device. This allows me to "pair" the two USB devices on a per hub basis. Although I have the info from walking the USB tree, I do not know the device name (e.g. Dev1) from just the USB info, so I am unable to explicitly open that device. Is there some way I can open a device based on it's USB hub/port location? It seem that all the channel open calls require the device name.

 

Thanks for any ideas.

 

Mitch

 

 

0 Kudos
Message 1 of 3
(3,675 Views)
Solution
Accepted by topic author Mitch7

Read the serial number of the DAQ.  You should be then be able to find the name.  Maybe change the names from /dev1 to something more descriptive  when you set them up in MAX.

0 Kudos
Message 2 of 3
(3,645 Views)

Thanks Tom, I think that will work.

 

I was hoping for a more direct approach such as either opening a channel based on the serial number (which I can get from USB), or reading the device name from the USB info.

 

Mitch

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