ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with Unresponsive Popup SubVi

Solved!
Go to solution

Hello,

I have long been contending with a bug with dynamically opened subvi windows not being responsive when opened 3 times (first two times are fine).
I attach a simple example demonstrating this bug, where "popUp.vi", when run, can dynamically open the SubVI by clicking on "Open Pop-Up":

Gryffin_0-1741278267817.png

Gryffin_4-1741278392205.png

 

The SubVI (popUp2.vi) is simply a button you press to close it:

Gryffin_2-1741278362137.png

Gryffin_3-1741278377565.png

The third time you go to press the "Continue With Bug Demo" button, it will be unresponsive.

 

Any explanation as to why this is occurring would be greatly appreciated. I have managed to get other dynamically opened subVIs to work without freezing up, I'm not sure why this one is.

 

 

Download All
0 Kudos
Message 1 of 3
(718 Views)
Solution
Accepted by Gryffin

Seems I just didn't toy around enough....

All that is required is to add an "Unregister for Events" in the subVi:

 

Gryffin_0-1741278848209.png

 

Message 2 of 3
(717 Views)

There's also no need to do a dynamic registration for a button, but maybe you're just testing things out.

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(615 Views)