LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shutdown, delay and turn back on

Hi all,

 

I require to shutdown or suspend a computer from labview, wait a set period of time and then resume the labview vi. Is this possible and if so can anyone help me out as to how?

 

Kind Regards,

 

Will

0 Kudos
Message 1 of 2
(2,274 Views)

Are you trying to use the shutdown/suspend just to pause the VI, or is there something else that you're testing that requires a shutdown/suspend. If it's the former, you could, for instance, simply write the VI to receive a "pause" signal so that it pauses what it's doing, rather than resorting to suspending/shutting down the computer.If it's the latter what determines whether you need to perform a shutdown as opposed to a suspend?

 

The specific answer to suspend/shutdown depends on what operating system you have, as well as what the capabilities of your actual computer are. Not all computers support certain shutdown/suspend/reactivate operations. It basically depends on what motherboard and BIOS you have. If you're running Windows there's the whole Windows API that you can use to program this. An alternative is to use scheduled tasks or command line commands. For instance, you can run "shutdown" from the command line to shutdown the PC. You can create a scheduled task to run at a specific time and wake the computer in order to run the task. You can use a command line command to create this scheduled task based on when you suspend the computer. Look at the at command or shtasks.

Message 2 of 2
(2,249 Views)