LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application window stays open after using EXIT VI

Hello,

i am working with LV 8.2 on a event-based application.

Basicly my entire application is based on:
* a while loop
* inside this while loop i have an event-structure (with about 70
event-cases)

One of the events is my EXIT button which asks if the user really
wants to quit the application and it the user chooses YES in the EXIT
dialog a true signal is connected to the NI EXIT VI.

That works almost as supposed, but i am wondering about one small
issue:
--
I would expect that the EXIT VI quits the application and the app-
window should be gone.
Unfortunaly my application ends BUT the window itself just changes its
style and does not disapear as expected.
Basicly the changed app-window then looks like a LabView window in
porogramming mode, but not like an running application window anymore.

Target:
--
EXIT button should end my app, as it does already, but the app-window
should REALLY disappear.

Might that behaviour be caused / related with a setting of the projekt-
main-vi ?
Or am i just mis-using the EXIT-VI itself ?


Any feedback is heavily appreciated.

Best regards in advance
florian
0 Kudos
Message 1 of 7
(4,101 Views)

Hi florian,

      I've never heard of a problem with the "Quit Labview" function, perhaps you could remove the other 69 event cases and submit the VI with just the quit case? (though, I suspect it will start working once you simplify it...)

 

Cheers!

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 7
(4,070 Views)

Florian wrote:
..a true signal is connected to the NI EXIT VI.

There is no "NI EXIT VI". Are you talking about the "Quit LabVIEW" primitive (which says "exit" on its icon)?

 

Yes, if possible please make a small mockup project, containing a VI with only the exit event and your build specifications so we can try to reproduce the problem.

Message 3 of 7
(4,050 Views)
solved it myself.

Florian schrieb:
> Hello,
>
> i am working with LV 8.2 on a event-based application.
>
> Basicly my entire application is based on:
> * a while loop
> * inside this while loop i have an event-structure (with about 70
> event-cases)
>
> One of the events is my EXIT button which asks if the user really
> wants to quit the application and it the user chooses YES in the EXIT
> dialog a true signal is connected to the NI EXIT VI.
>
> That works almost as supposed, but i am wondering about one small
> issue:
> --
> I would expect that the EXIT VI quits the application and the app-
> window should be gone.
> Unfortunaly my application ends BUT the window itself just changes its
> style and does not disapear as expected.
> Basicly the changed app-window then looks like a LabView window in
> porogramming mode, but not like an running application window anymore.
>
> Target:
> --
> EXIT button should end my app, as it does already, but the app-window
> should REALLY disappear.
>
> Might that behaviour be caused / related with a setting of the projekt-
> main-vi ?
> Or am i just mis-using the EXIT-VI itself ?
>
>
> Any feedback is heavily appreciated.
>
> Best regards in advance
> florian
0 Kudos
Message 4 of 7
(3,950 Views)

Hi Florian,

 

I have a similar problem with the QUIT LabVIEW (the EXIT icon) in a built application (LV8.2).

As you say, the application stops, but application window does not disappear.

My error is not connected to an event structure.

 

   Florian wrote:
solved it myself.

 

Can you share with us how you solved it yourself?

 

Thanks,

CB.

0 Kudos
Message 5 of 7
(3,925 Views)
Yeah, im having something similar come up and it would be nice to know how this got solved
0 Kudos
Message 6 of 7
(3,677 Views)

This can be done using a property node also.

 

Use Front Panel Open property node and feed inverse of the stop button status to this.

 

see the image.

Anil Punnam
CLD
LV 2012, TestStand 4.2..........
Message 7 of 7
(3,669 Views)