LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Repeatedly Launching Reentrant Front Panel

This may be a stretch here, just to warn everyone ahead of time.

Lets say I have a reentrant subVI that is a graph. You pass it data and on its seperate front panel it dynamically displays aquired data. Now I assume that if I want to be able to view 4 of these graphs in seperate windows at the same time I simply have to lay 4 of these subVIs in the main forms block diagram wire them and upon execution they will be displayed.

Now my question is there a way to make it so that if I wanted an indefinate amount of these graphs that I could simply create a subVI to pop open a new instance of this graph and every time it was invoked it would just launch a new instance?

I know this is a long shot but again It would be ver
y helpful for me not to have to just lay down X amount of these graphs.
0 Kudos
Message 1 of 6
(3,344 Views)
There are a few ways to do this, but the reentrant approach will not work, since all instances of reentrant VIs share the same Front Panel. Here are the possibilities:

(1) Create multiple copies of your GUI VI at edit time, and call them statically or dynamically.

(2) Copy new instances of your GUI VI at run time using the File Copy function and then invoke the GUI VI dynamically

(3) Change your GUI VI's file extension to .VIT so that it is a VI Template. Then open a VI server reference to it multiple times to get multiple instances of the VI and invoke dynamically, as in #2.

Regards,

-Jim
Message 2 of 6
(3,344 Views)
In method #2, will it be possible to pass different streams of data to each VI and have them all aquiring data from their respective sources simultaneously?
0 Kudos
Message 3 of 6
(3,344 Views)
Sure, it is possible assuming that there is no shared resource between them cannot be accessed concurrently.
0 Kudos
Message 4 of 6
(3,344 Views)
Would you happen to have or know where i can find any examples of this would you?
0 Kudos
Message 5 of 6
(3,344 Views)
Check this topic for an example of what I think you want...
0 Kudos
Message 6 of 6
(3,344 Views)