09-28-2010 01:07 PM
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
Solved! Go to Solution.
09-30-2010 08:03 AM - edited 09-30-2010 08:08 AM
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.
09-30-2010 08:15 AM
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