Listed below are 3 options to prevent your Windows PC from going to sleep while your LabVIEW program runs:
The fastest and simplest way to solve this is to change the PC settings so that it never goes to sleep.
Go to Windows Settings>>System>>Power & Sleep and under Sleep, set both of the drop down boxes to Never as shown below:
This example program demonstrates how this is done, and includes a library of SubVIs that simplifies calling these functions.
There are a number of different 3rd party programs available that prevent a PC from sleeping. One of the more popular options for this is Caffeine, a program that simulates a key-press every minute to stop the PC from sleeping.The downside to this solution is that the user must remember to run the third party program before leaving the PC running. This program is also available on MacOS on the App Store.
How Can I Shutdown Windows from LabVIEW?
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.