LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Restart my application?

Is there a way for my application to shut itself down and restart itself?
0 Kudos
Message 1 of 2
(2,903 Views)
It depends on what you mean. If you want to actually stop the process and restart it, then no you can't. At least not without starting another process that respawns the original. Some process that you write has to be running to relaunch the process. If you are wanting to "shut down" the process from the user's perspective and an operation perspective, that's pretty simple. Just call QuitUserInterface() and setup your main to relaunch the UI later or when some event occurs. Also, if you have continuous functions going on, then just have them checking a flag and go to sleep.

I'm not sure if that was what you were wanting, but I hope that helps.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,903 Views)