06-12-2012 06:01 AM
Dear NI
can i restart my windows machine using nisyscfg restart.vi (is it nisyscfg is for realtime machines?)
i have tried by using session in as localhost, but the following error occured.
code : -2147220368
source : nisyscfg.lvlib:Restart.vi:1<APPEND>
<b>Complete call chain:</b>
nisyscfg.lvlib:Restart.vi:1
restart.vi
thanks in advance for time and help.
regards
06-12-2012 06:08 AM
Hi,
No, You can only restart NI RT targets with this VI.
If you want to restart the Windows computer on which you run your VI, one way is to use the User32.dll with the function "ExitWindowsEx".
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-12-2012 06:23 AM
You might also want to look at this: Someone from NI already provided some code that does the job.
06-12-2012 06:50 AM
thanks a lot
06-12-2012 06:50 AM
thanks a lot