09-05-2012 07:59 AM
Hi,
I have developed a simple application which is running a while loop. I have used a command button to terminate the loop and have also hooked up this button to STOP VI function. It is working fine however when i press command button, the VI stops and goes into edit mode (i.e the screen still remains visible). What i want is when i press the command button, the VI stops and also closes.
Since i need to create an executable file for the client, i dont want the edit mode to appear once that command button is pressed.
Please advice.
Turri
09-05-2012 08:03 AM - edited 09-05-2012 08:04 AM
09-05-2012 08:17 AM - edited 09-05-2012 08:17 AM
..or call "Quit Labview":
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/quit_labview/
Marco
09-05-2012 08:19 AM
You really should avoid using the Stop and Exit LabVIEW functions. They are the same as hitting the abort button. Make sure the VI can close appropriately and then close the front panel as the final action and you will be fine.
09-05-2012 09:45 AM
Thanks everyone. Close FP property did the trick.
09-05-2012 10:10 AM
I tack this on the end of any vi that I want to exit on completion. This has the added benefit that it does not close if run on a development system, only when it is compiled and run as an executable
Written in LabVIEW 2009
Ken