LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel close discarded and VI not stopping

Hi!

 

I am trying to manage panel close events and I am having some problems.

 

My program has a main event structure/while loop with several cases, one of which containing another event case/while loop.

 

I need to avoid the VI being closed if the inner structure is running, so I set a "Panel Close?" event with the Discard? enabled.

I need the VI to shut down properly if the outer structure is running, so I set a "Panel Close" event with a TRUE constant wired to the while loop condition.

 

The inner one seems to be working, while for the other one the program keeps running and the front panel is locked (but for the esternal "Panel Close" event I checked that the lock was not selected).

 

I attach a test version of this loops, it is a useless VI but the event structures work in the same way of the real program.

 

Thank you for your help!

MikeNuke, PhD

Politecnico di Milano
Department of Energy, Nuclear Engineering Division
0 Kudos
Message 1 of 2
(2,338 Views)

Rule of thumb:

Never nest event structures.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(2,330 Views)