LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pop-up in event structure halts execution

Solved!
Go to solution

If I place a pop-up subVI in an event case of an event structure and this pop-up subVI contains a while loop and a stop button that would stop this while loop (thereby closing the subVI), will other events declared in the event structure be handled only after the user clicked the stop button of the subVI? If yes, is there a way for other events to be handled while the pop-up subVI is still running? 

0 Kudos
Message 1 of 3
(2,225 Views)
Solution
Accepted by topic author Fagenhauser

Yes, it will stop everything in you rmain VI until the popup VI returns. The events will still be buffered, but they won't be handled by the event structure, until your pop up is closed (assuming your pop up is non-modal). If it's modal, the user won't be able to click anything at all, except controls on the pop up itself.

 

If you still want the user to be able to interact with your front panel while the pop up is showing, and have the FP respond, you will want to launch the popup dynamically in its own parallel process. If you are using LV 2012 you can use the start asynchronous call node. If you are using an earlier version of LabVIEW, you will have to use the "Run" method with an invoke node.

0 Kudos
Message 2 of 3
(2,224 Views)

thank you. i have come across the invoke nodes using subpanels but the start asynchronous call nodes are new to me, i'll have a look at them.

0 Kudos
Message 3 of 3
(2,210 Views)