> 1. I want one Main VI that allways runs, and in this main VI there are (for
> example) 2 buttons: Button A and Button B.
> 
> 2. If i click on "button A" a pop up window appears (a new VI) this VI runs
> on events (I allready know how to work with events).
> Then; while pop up window "from Button A" still is running (on events) I
> want to press (on the Main VI) on "Button B" and then another pop up windows
> should appear (a new VI).
> 
> 3. The Main VI keeps on running and the pop up windows are both there and i
> can close them and restart them by pressing the A or B button again.
> 

I'll narrow your choices for you.  In your event structure when 
responding to a button, use the VI Server to Open a VI reference using a 
path to the VI and nothing else.  Wire the output referece into an 
Invoke node and select the Run VI method.  Wire a FALSE to Wait until 
done, and return from the event structure.  Make another invoke node to 
Open the Panel and chain it to the end.  Your loop should then be able 
to handle additional events, make measurements, etc.

Your subVIs can have their own loop to process messages, do I/O, etc. 
If you want them to affect one other through similar buttons, add the VI 
server code to them as well, or add a user event that passes the request 
on to the Main VI.

To close a panel, get the reference and close the window.  You can also 
abort the VI if that is what you intend.

Greg McKaskle


Reply via email to