LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically restart Windows with LabVIEW?

Is it possible to restart MS Windows from LabVIEW? Any examples would be greatly appreciated.

Thanks!
0 Kudos
Message 1 of 10
(5,610 Views)
Check out the answer from flo - includes VIs that will let you shut down, restart og log off:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000BF6A0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=Shut+down+computer&USEARCHCONTEXT_QUESTION_S=0
0 Kudos
Message 2 of 10
(5,607 Views)
Hi,
here was such a question some time ago. Follow this link:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000DF700000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

As I understand now you may have some troubles with restarting Windows under NT like OS (Win NT, 2000, XP).

Good luck.

Oleg Chutko.
0 Kudos
Message 3 of 10
(5,609 Views)
Is there a new directory I can find this thread in?
0 Kudos
Message 4 of 10
(5,373 Views)
Is there an updated URL that I can find this in?
0 Kudos
Message 5 of 10
(5,373 Views)
Have a look here

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 6 of 10
(5,364 Views)
Thy this one http://forums.ni.com/ni/board/message?board.id=170&message.id=81740&requireLogin=False


Regards,


Wiebe.
0 Kudos
Message 7 of 10
(5,333 Views)

I think this is the easiest way to do it in Windows XP...

This is the System Exec.vi

Message Edited by Troy K on 07-27-2007 08:12 PM

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Download All
0 Kudos
Message 8 of 10
(5,327 Views)
I've seen PC's where shutdown wasn't available. Don't know if it's always there on XP.


Regards,


Wiebe.
0 Kudos
Message 9 of 10
(5,310 Views)
A side suggestion is to always use a batch file when launching external tools/programs. This will give you the possibility to change your mind later without affecting your application.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 10 of 10
(5,308 Views)