01-16-2018 07:44 PM
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!
01-17-2018 03:37 PM - edited 01-17-2018 03:38 PM
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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-17-2018 08:01 PM
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 #.