02-14-2011 12:37 AM
Hello
I want to provide hibernate option in my VI which is running on Windows Embedded Standard 7 operationg system.
So please suggest me the feasible solutions If any.
Solved! Go to Solution.
02-14-2011 01:46 AM
Use System Exe.vi in LabVIEW to call the command Powercfg-h on
Make sure you run this command as admin.
This example shows how to programmatic use command prompt with System Exe.vi, although it is used to invoke windows volume control so changes will be required for your app.
02-14-2011 01:54 AM
For the complete commands that will be required to hibernate see here.
02-14-2011 05:48 AM
Thank you Dear!!!
It's working well.
02-15-2011 07:22 PM
Hi Devang Gandhi,
There are a couple more ways to do it: you can use a .NET invoke node to call Application::SetSuspendState or use a call library function node to call the SetSuspendState method directly (though the latter may require enabling the SE_SHUTDOWN_NAME privilege).
Brad