LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve USB device location information (port # and hub #)

How in LabVIEW can you retrieve the USB device's location information - its port # and hub #? Pulling up the device properties from Windows' Device Manager shows the Location along with the Device Type and Manufacturer. See the attached screenshot.

 

Thanks in advance!

0 Kudos
Message 1 of 3
(3,205 Views)

My only suggestion is to look into calling DevCon.exe to try to get this information.  Here is one article talking about this command line program from Microsoft.

 

EDIT:  Here are a few more links talking about Devcon

https://forums.ni.com/t5/Example-Programs/Devcon-Device-Control-Using-LabVIEW/ta-p/3504765

https://forums.ni.com/t5/LabVIEW/Using-System-exec-vi-to-run-devcon/td-p/3582199

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

Hi, I've tried devcon.exe but I couldn't find the right command to have it print out the usb device's location information, the port # and hub #.

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