From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-29-2015 11:04 AM
Is there a way to monitor if a computer shuts down, restarts, hibernates, sleeps or logs off?
I need to do something if either of these events occur.
If this is possible, please tell me how to do this, and if you could give me some code I will appreciate it.
Thanks.
01-30-2015 03:05 AM
searching for LabVIEW Help
Here's an example.
The System Exec.vi is located on the Functions Palette under Connectivity >> Libraries & Executables.
01-30-2015 03:22 AM
correction just type "shutdown -s" in command line
01-30-2015 04:35 AM
@syrpimp wrote:
correction just type "shutdown -s" in command line
That causes a shutdown. The OP is looking for a way to check if the computer is shutting down.
02-01-2015 01:29 PM
The following link may help you:
Ending LabVIEW Program Before Windows Shuts Down:
http://digital.ni.com/public.nsf/allkb/66659ACE17C686418625736000606A64?OpenDocument