LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I run a sub vi multiply at a same time?

I'm a newbie.
My VI has three buttons and those buttons are connected a sub VI of same
names.
I found that pressing a button invokes the sub-VI correctly, but pressing
another button doesnt open the panel of sub VI (same name as opened one)
while the previously opened sub-VI is running. After closing the previous
sub-VI, it is pened again corresponding to second button press.
Can I open two or more front panel simultaneously from one sub-VI, i.e.
pressing a key opens a front panel regardless of previously opened sub-VI
with same name.
Regards,

Byungin Bae
email : bibae@hitel.net
0 Kudos
Message 1 of 3
(2,584 Views)
Byungin Bae wrote:

> I'm a newbie.
> My VI has three buttons and those buttons are connected a sub VI of same
> names.
> I found that pressing a button invokes the sub-VI correctly, but pressing
> another button doesnt open the panel of sub VI (same name as opened one)
> while the previously opened sub-VI is running. After closing the previous
> sub-VI, it is pened again corresponding to second button press.
> Can I open two or more front panel simultaneously from one sub-VI, i.e.
> pressing a key opens a front panel regardless of previously opened sub-VI
> with same name.
> Regards,
>
> Byungin Bae
> email : bibae@hitel.net

In a word, No.
You can make the VI reentrant (multiple copies) BUT it will not
display it'
s panel at all.
To do this go to the VI setup (right click on the Icon) and Select
Reentrant From the Execution Menu.

If you want to DISPLAY the fronty panel then you must make multiple copies.
This can be done either statically (using file->save a copy as) or
dynamically
using the VI server.
In either case they will not share data unless you make some provision to do
so.
Hope this is less confusing than it sounds.
Kevin Kent
0 Kudos
Message 2 of 3
(2,584 Views)
Hi !

You can run a sub VI multiple times and display their front panel if You
copy the sub VI progammatically to a new name and call it by VI server and
delete it after run.

Byungin Bae schrieb in im Newsbeitrag:
TLGz4.87$p77.632@news.hananet.net...
> I'm a newbie.
> My VI has three buttons and those buttons are connected a sub VI of same
> names.
> I found that pressing a button invokes the sub-VI correctly, but pressing
> another button doesnt open the panel of sub VI (same name as opened one)
> while the previously opened sub-VI is running. After closing the previous
> sub-VI, it is pened again corresponding to second button press.
> Can I open two or more front panel simultaneously from one sub-VI, i.e.
> pressing a key opens a front pane
l regardless of previously opened sub-VI
> with same name.
> Regards,
>
> Byungin Bae
> email : bibae@hitel.net
>
>
>
>
0 Kudos
Message 3 of 3
(2,584 Views)