11-04-2014 08:53 AM
Hey all,
I'm currently working on a user interface for a test facility. On the main screen you have all the data you want to see at a blink. However for a more detailed view I'd like to make pop up windows showing the details while still being able to control the mainVI.
I tried using a subVI with window appearance set to "Dialog Box", but this blocks the mainVI until the subVI is closed. Is there a way to have a subvi pop up like a dialog box, but without it blocking the main VI?
Thanks in advance. 🙂
Solved! Go to Solution.
11-04-2014 08:58 AM
11-04-2014 09:10 AM
Hey GerdW, thanks for the quick reply!
It didn't fix my problem though. I still can't use the controls on the mainVI like that.
I'm calling the subVI through an event value change of the button. Button is set to switch when released. Could it be that this is blocking it? (I would'nt see how, but who am I :D)
I've attached a picture and the subVI.
11-04-2014 09:18 AM
Hi dabrainz,
I cannot open your VI as stated in my signature…
Yes, when you call the subVI in an event case it will block the main VI by default.
You could either change the default settings of the event case to "do not block the UI". BUT: as you need to THINK DATAFLOW the subVI call will still block any DATAFLOW in your mainVI (regarding the event structure).
So the solution would be the one that is recommended in the LabVIEW help on the event structure: Don't call any items in an event case that will block your VI!
The subVI has to run in it's own parallel loop to not block the main VI. Use a proper programming scheme like the Consumer-Producer pattern!
11-04-2014 09:22 AM
There would have been a chance that you could open it, since your signature says [quote](sometimes even LV2014)[/quote] 😉
O.T. I put it in a separate loop from the main VI, but I'll leave out the event structure. Thanks for the help!