08-04-2008 01:47 PM
08-04-2008 01:59 PM - edited 08-04-2008 02:01 PM
08-04-2008 01:59 PM
08-04-2008 03:05 PM
To clarify,
I am not hitting the abort button to stop the program. I am not hitting the X on the window before stopping the program progrmatically. I do have sub-vi's that can be called based on user imput and others that do not open the front pannel at all during the execution of the program.
The program executes fine, when the stop button is pressed it goes to a programmed shut down procedure and as the last step this procedure has the "Stop VI". At this point the program can be started again by pressing the white arrow (run) button or the window can be closed. I have not called the "quit labview" vi but I'm wondering if I should do it as a last step in the shutdown procedure. The way I close the program front pannel (again, after stoping the program programatically) is by hitting the X in the upper right hand corner of the window. But the program instance remains listed in the windows task bar and when I go to the task manager it is also listed there. So the only way to completely quit the program is by ending the task in the task manager. Other wise the program remains in memory and can not be re-started either.
I hope this clarifies my problem.
thanks,
08-04-2008 04:02 PM
ChillyWilly wrote:
when the stop button is pressed it goes to a programmed shut down procedure and as the last step this procedure has the "Stop VI". At this point the program can be started again by pressing the white arrow (run) button or the window can be closed.
DO NOT. This may solve your problem, but it should never be used in exe files. Find which vi remains in memory, to solve your problem.
ChillyWilly wrote:I have not called the "quit labview" vi but I'm wondering if I should do it as a last step in the shutdown procedure.
08-04-2008 11:14 PM
Close the front panel programmatically of this VI (the method FrontPanel.Close).
@ChillyWilly wrote:
To clarify,
The program executes fine, when the stop button is pressed it goes to a programmed shut down procedure and as the last step this procedure has the "Stop VI". At this point the program can be started again by pressing the white arrow (run) button or the window can be closed.
08-05-2008 11:10 AM
04-29-2009 09:27 AM
ChillyWilly, did you ever resolve this issue, and if so, what did the problem turn out to be? I am experiencing what appears to be the same problem, built executables are staying in the "processes" list in Windows task mgr, but are removed from the "applications" list and from the taskbar. Each time the .exe is run another remnant copy is left in the processes list, until the system is rebooted.
Can someone explain why the "Exit Labview" VI shouldn't be used in an executable? That seems the obvious way to exit...
- Brian
04-29-2009 09:37 AM
Brian,
your question is answered in the link TonP has in his post.
I have to disagree with Pnt in his statement "DO NOT. This may solve your problem, but it should never be used in exe files.".
But i have to admit, that the "Quit LabVIEW" function has its backdraft just as stated by Jim Kring in his KB. This is absolutly true. But if you can make sure, that this function is the last one called in your application, it is valid to use it. If you can't, listen to Pnt....
hope this helps,
Norbert