LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect computer power states

I want to know how to detect when a computer is shutdown, restarted, put to sleep or hibernate in linux.

I wish to do something before these events occur.

Can someone please tell me how to do this in labview?

If you could please give me an example, I would really appreciate it.

Thanks.

0 Kudos
Message 1 of 4
(3,284 Views)

Related to this post.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(3,244 Views)

The following link has an example that uses Windows API to detect a Shutdown Status, It may help you:

 

Get Windows Shutdown Status (win API):

https://decibel.ni.com/content/docs/DOC-14649

 

Best Regards

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 Kudos
Message 3 of 4
(3,202 Views)

Hi David, he mentions Linux in his post as with all the other posts from the same user.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 4
(3,184 Views)