LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I switch the USB ports on a USB hub on/off using labview?

I was wondering if anybody knows of a good way to be able to switch specific USB ports on a USB hub on/off using labview.  I need to implement this functionality in order to automate device switching on a system that has say 10 devices connected through a USB hub and be able to access them one at a time.  Thanks.
0 Kudos
Message 1 of 3
(3,108 Views)

Without knowing more about your application I dont know if this will work or not.  It seems to me that you could switch the data channels being read/written to from the USB instead of trying to physically switch USB channels off through the USB Hub.  It may be possible to run signals through a relay switch like this one and switch the data on and off.  Perhaps if you give more info about your setup we can give you better solutions.

Message 2 of 3
(3,095 Views)
Look into the DEVCON command line utility.  It gives you functionality similar to that in windows device manager.  Not sure if it will give you the control to disable a specific port on a hub but it should allow you to disable the device on the port, if you know what the id is.
Message 3 of 3
(2,969 Views)