Jump to content

Is there a way to Prevent XP to Standby?


Recommended Posts

Hello,

I have a LabView application, that continuously acquires data. If the PC enters in a Standby mode, the acquisition is stopped by the system and an error is returned.

Is there a way directly from LabView, to prevent the system to enter in a Standby mode?

Thank you for your help!

Link to comment

I know the way by right clicking on the desktop, selecting "Settings", selecting tab "Screen Saver" and clicking the button "Energieverwaltung" (how was it in english :ninja: , don't remember). But this is done interactively.

If you were looking for an automated method, I'm sure there must be an API-call where you can get/set this property, make a seach in MSDN... good luck!

Link to comment
  • 3 weeks later...

The Win32 call SystemParametersInfo has stuff about the screen saver, power management and many other things...

http://msdn.microsoft.com/library/default....ametersinfo.asp

When I launch my monitoring VI, I extend the screen saver timeout using that call (I modified some spaghetti found on the NI boards for this purpose):

Download File:post-3022-1145046622.vi

Link to comment
The Win32 call SystemParametersInfo has stuff about the screen saver, power management and many other things...

http://msdn.microsoft.com/library/default....ametersinfo.asp

When I launch my monitoring VI, I extend the screen saver timeout using that call (I modified some spaghetti found on the NI boards for this purpose):

Download File:post-3022-1145046622.vi

Do you need to have administrator rights to change this setting?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.