02-07-2019 04:22 AM
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.
Solved! Go to Solution.
02-07-2019 04:34 AM
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
02-07-2019 04:38 AM
As suspected, changing it to a dynamic event solves the problem, so it's related to the static event handling.
/Y
02-07-2019 05:03 AM
Hi, thanks so much for your feedback. I can use this implementation.