LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get my application to go away when it stops running?

Hi.
 
So, I've build and application, and when I programmatically exit from my program, it stops running as expected, but the main top-level panel is still there, allowing me to run it again by pressing the run arrow.  I want double-clicking the executable icon to be the only way the user can run the program.
 
Is there anyway of doing this?
 
Thanks...
-Umar.
 
0 Kudos
Message 1 of 4
(3,223 Views)
Have you tried the 'Quit LabView' .vi?  LV 8.2.1 example attached.

I usually test for the application kind, so that the development system doesn't exit but the built application does.

Matt
0 Kudos
Message 2 of 4
(3,215 Views)
On Nov 12, 9:40 am, umars <x...@no.email> wrote:
> Hi.
> &nbsp;
> So, I've build and application, and when I programmatically exit from my program, it stops running as expected, but the main top-level panel is still there, allowing me to run it again by pressing the run arrow.&nbsp; I want double-clicking the executable icon to be the only way the user can run the program.
> &nbsp;
> Is there anyway of doing this?
> &nbsp;
> Thanks...
> -Umar.
> &nbsp;

The top-level VI can be terminated with the "Quit LabVIEW" VI from the
Application Control menu.

0 Kudos
Message 3 of 4
(3,184 Views)
Another option is to use the Close FP method on the VI. The run-time engine will close if there are no open front panels. Note that you probably do not want to wire the error input to this invoke node. If there is an error on the error input, it will not execute.
0 Kudos
Message 4 of 4
(3,150 Views)