LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nisyscfg restart.vi

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

 

0 Kudos
Message 1 of 5
(2,825 Views)

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

Antoine Chalons

Message 2 of 5
(2,821 Views)

You might also want to look at this: Someone from NI already provided some code that does the job.

Message 3 of 5
(2,816 Views)

thanks a lot

0 Kudos
Message 4 of 5
(2,813 Views)

thanks a lot

0 Kudos
Message 5 of 5
(2,811 Views)