Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

shutdown the pc using labview (*.vi)

i made a vi in which i want to use a labview function that shutdown the pc when call  it function.
any one who know plz tell me how to do it 
0 Kudos
Message 1 of 2
(6,591 Views)
Hello,
 
You would need to use the System Exec.VI that can be found on the function palette. Its located under Connectivity >> Libraries & Executables palette.
The specific command that you would need to use would be "shutdown".
You can test this command out by opening up the windows command windows (Start >> Run & type in "cmd"). Type "shutdown" to get more information on this command.
 
Regards,
Chetan Kap
Application Engineering
National Instruments
 
0 Kudos
Message 2 of 2
(6,574 Views)