Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Hub Power Management LabView

Hello,

 

I am doing instrument control & Data Aquisition on several devices using one master Labview VI. The various devices are connectted via one external USB-hub. Windows XP power mangement system sometimes shuts the hub off to conserve power and communication between VI and the individual devices get lost and cannot be regained until labview is completely shut down and turned on again. How do I automatically shut this option off in Windows (via LabView), when start run my VI? Windows defaults the  "Allow the computer to turn off this device to save power" options as ON everytime it is rebooted.

 

Here is a picture of what I am talking about:

 

 

22328i3435B95FFCCC7BDE

 

Regards


huz

0 Kudos
Message 1 of 2
(3,954 Views)

Hi Huz,

 

You can likely accomplish this by modifying the registry through the LabVIEW registry functions.  Take a look at this article for a starting point on finding the correct registry key:

Microsoft KB - disabling power management on USB 2.0 Ports (method 2)

 

Once you find the correct key, take a look at this document for info on how to change the value programmatically in LabVIEW:

 

LabVIEW help - Registry VIs

 

Hope this helps!

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 2 of 2
(3,924 Views)