LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Run a VI when it is active?

Yes!! I got it to work! Thank you very much I also needed to set te client
VI's with the options floating and then i can switch forward and backward
trough my client VI's!

I just have one more question: Is there also a possibility to open more of
the same VI's with different data: for example: a Client VI with the name:
"data on waveform graph" and then have 4 of these VI's running with al the
same wave form graph but with different data on it?

Best regards,
Thijs Boer�e

"Greg McKaskle" schreef in bericht
news:QqVqc.652$9f6.56@fe2.texas.rr.com...
> > 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
>
0 Kudos
Message 11 of 12
(448 Views)
Thijs Boeree wrote:

> Yes!! I got it to work! Thank you very much I also needed to set te client
> VI's with the options floating and then i can switch forward and backward
> trough my client VI's!
>
> I just have one more question: Is there also a possibility to open more of
> the same VI's with different data: for example: a Client VI with the name:
> "data on waveform graph" and then have 4 of these VI's running with al the
> same wave form graph but with different data on it?

You want to create VI templates (*.vit) and open them with VI server.
There has been a lot of talk about this on Info-LabVIEW but I'm sure
there are documents here on Developer Exchange as well on VI Templates.

Rol
f Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 12 of 12
(448 Views)