Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

determine usb port

Solved!
Go to solution

Hi,

I have a problem with this configuration:

 

wandlerProblemEng.gif

 

How can I determine which USB 6210 device is on USB 1 together with the USB to RS485 converter? I communicate with the converter via CreateFile().

thanx!!

0 Kudos
Message 1 of 5
(6,855 Views)

there is a way that i think it will work.. when you put usb in that port force labiew to send a little text file or something like this in that port then always send a file to the device that has this text .

don not connect both of them at once.

 

0 Kudos
Message 2 of 5
(6,820 Views)

thank you. i forgot to write that i do not use labview but c++.

0 Kudos
Message 3 of 5
(6,817 Views)
Solution
Accepted by topic author mael15

i solved this problem. just in case someone needs the solution: i was able to recursively loop through all usb hubs/devices using the winApi by tailoring this source code:

http://mtpretag.googlecode.com/svn-history/r3/trunk/c-source/jusbpmp_native_source/displayusb.c

Message 4 of 5
(6,787 Views)

😉 good job .

0 Kudos
Message 5 of 5
(6,779 Views)