From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot close subVI containing a Panel Close? event if caller VI is running

Solved!
Go to solution

For the sake of documenting, the following issue was reported in CAR #707892 back in August 2018. The issue was reproduced both in LV 2017 and 2018:

The front panel of a subVI, which contains an Event Structure configured with a Panel Close? event, cannot be closed if opened when the VI that contains its call is running. If the subVI Event Structure is instead configured with a Panel Close event, it can be closed one time, but if reopened, it cannot be closed a second time.

The attached example reproduces the issue.

---
SergioR
Message 1 of 4
(3,684 Views)

Additional info: It's the same if you open it from the project or double click it in Mains "unused" state. I would guess the event registers but since the subvi never runs it can't trigger and dequeue the event. Is it related to how Modal VI's behaves when not running?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(3,677 Views)
Solution
Accepted by topic author SergioR

As suspected, changing it to a dynamic event solves the problem, so it's related to the static event handling.

Dynamic close event.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 4
(3,672 Views)

Hi, thanks so much for your feedback. I can use this implementation.

---
SergioR
Message 4 of 4
(3,654 Views)