LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic system standby generation and resume after few seconds?

Any outcomes?
 
Am using LabVIEW 8.5 running under WinXP.
 
Thanks,
Mathan
Message 1 of 47
(4,360 Views)
Hi mathan,
try this API call:
 
SendMessage(Handle, WM_SYSCOMMAND, SC_SCREENSAVE, 1);
 
Mike
Message 2 of 47
(4,354 Views)

Mike,

But which dll i have to use.

I guessed and tried kernel32.dll but there is no function 'sendmessage'.

Thanks,

Mathan

0 Kudos
Message 3 of 47
(4,349 Views)
That just starts the screensaver, as far as I can tell.

What are you trying to do?
Message 4 of 47
(4,345 Views)
Hi mathan,
SendMessage is in User32.dll. If this is not what you need, then try this: http://msdn.microsoft.com/en-us/library/aa373201(VS.85).aspx
Mike
Message 5 of 47
(4,340 Views)

Dears,

I forgot to mention that standby in the sense i need to hibernate the PC and resume it automatically after say some 30 seconds.

Thanks,

Mathan

0 Kudos
Message 6 of 47
(4,336 Views)

Dear mike,

The link u provided is too good and i will try it out. But once if system enters hibernate mode, then how to resume from that state?

Mathan

0 Kudos
Message 7 of 47
(4,327 Views)
Hi mathan,
i´m not sure, maybe "wake on lan". Smiley Happy
Mike
0 Kudos
Message 8 of 47
(4,321 Views)

Dear mike, Smiley Happy

Am sorry i can't able to get you. Smiley Sad

What you mean by "wake on lan"? Smiley Surprised

Thanks,

Mathan Smiley Very Happy

0 Kudos
Message 9 of 47
(4,317 Views)
Look at the API functions CreateWaitableTimer and SetWaitableTimer. Take a look at this VB code.
Message 10 of 47
(4,310 Views)