08-26-2020 02:53 PM - edited 08-26-2020 02:54 PM
I have a DAQ program I need to run continuously for over a week, when I run my software alone, it will work for about 6 hours and then log out my account (presumably for inactivity). However, if I also open VLC and play a video on loop, the DAQ works without issue for the whole test.
How can I get my compiled code to run in the same way VLC runs when it is playing a video (preventing windows sleep ) ?
Solved! Go to Solution.
08-26-2020 03:04 PM - edited 08-26-2020 03:05 PM
You can check out this knowledge base:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Y44SAE&l=en-US
Essentially there is some Windows APIs you can call into that can do this. In that KB there is a link to some examples: