04-26-2010 02:17 PM
Im trying to create a simple popup. However, it doesn't work. Meaning when you open up the main vi the popup vi shows automatically. And when you press the 'ok' button in the popup vi, everything freezes. Anyone??? Thanks!
04-26-2010 02:51 PM
You should not use an Event Structure (or in such a manner) within a popup VI.
You should display what you want and then click OK to stop the while loop.
Under VI Properties (within File menu), select Window Appearance and select Customize.
Select "show front panel when called" and "close afterwards if originally closed", which I think you have already done so.
04-26-2010 03:00 PM
Uncheck Lock Front Panel on the Event case editor.
Also, if you don't want your calling VI to wait for the subVI to finish, you can't call it statically. You'll have to open a reference to the VI and use a Run VI invoke node and tell it not to wait until done. Example here.
04-26-2010 08:54 PM
04-26-2010 08:58 PM
The event structure just sits there waiting for an event to happen. It is not polling.
You need it in a while loop if you want it to wait for a second event (and other later events) to occur after the first one occurred. Otherwise it just waits for the first event then the program ends after it is done executing.