LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shutdown RT Safely Through LabVIEW Program

Hi, Friends
I need help on the following problem.

I have a LabVIEW program which I want to run depending upon the time specified by the user. Like if the user wants to run the program for the 8 hrs. I want a functionality in program which count the time (i.e. 8 Hrs) and after that the program execution should stop and the LabVIEW RT Chassis should be shut down by closing all open program with any user interaction.
can anybody have any idea about the standard method to shut down the RT just like our normal PC in which we can call the standard API function ShutDownEx() in windows environment to shutdown the PC?

Thanks in advance.......
mail id : sandeep.salunkhe@tatamotors.com
0 Kudos
Message 1 of 4
(3,401 Views)

Try the "Quit Labview.vi".  Just make sure that all hardware outputs are in the correct state before quitting.

Here are a couple of usefull links.

http://digital.ni.com/public.nsf/allkb/4B2CAA3159737AFD86256F2B00788A79

http://forums.ni.com/attachments/ni/170/139655/1/Exit%20EXE.vi

0 Kudos
Message 2 of 4
(3,380 Views)

Greetings !

  Quit LabVIEW as mentioned is very helpful. You are able to reboot the controller from the host using RT reboot controller VI and disconnect from the slave using the invokde node (Disconnect from slave). There is no direct way to shutdown the controller. Given that RT is an embedded / headless OS there is no use case for shutting it down, as long as you shut down the application or stop the application.

Thanks and hope this helps
Avi Harjani


0 Kudos
Message 3 of 4
(3,363 Views)
Thanks very much friends....

I have also got that same labview program from the NI App. engr. & this solves my problem of closing of my program safely.
But if there is way to shut down the RT engine then it would be very helpful, though we can directly switch it OFF by hard switch.
0 Kudos
Message 4 of 4
(3,361 Views)