LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to load same vi in several subpanel ??

Hi,

Is-it possible to load same vi in several sub-panel on a vi ????
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 1 of 15
(3,977 Views)
Hi

I think it's not possible, because you get an error if you try to do this.

Maybe there is another solution. If you describe the reason why you want to do this, the community can help you.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 15
(3,963 Views)
Hi educhene,

Do you mean that you wish to place the same VI on the diagram panel of different VIs. The answer would be Yes.

Are this VI's called from the top-level VI?

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 15
(3,962 Views)
No, I want to put the same vi several time on a vi.

My application is a synoptic of a test bench : I have a vi which represent for example a graph or vumetre in which I can choose the channel to watch (depending on a countains of a database).
I want to put this vi several time on my synoptic in order to see values of channel num1 for example on the first sub-panel, and values of channel num2 on the second sub-panel.
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 4 of 15
(3,959 Views)
How many of these "views" would you need?

If you just have two graphs you could also put them directly on your main vi.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 15
(3,950 Views)
No, today, I don't know how many subpanel with same vi I will use (probably between 5 and 10).
More other, the vi's loaded in those sub-panels will be loaded dynamcally depending of what the operator want to see (graph, vumetre, values, other repesentations ...)
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 6 of 15
(3,948 Views)
But how do you handle the number of subpanel?

If you want to load the views dynamically, that should work (for just one instance of each view/vi). But you have to determine the number of subpanels during design-time. I don't know any way to insert any kind of control into the front panel.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 7 of 15
(3,944 Views)
Ok,

so consider I have ten subpanels on my vi in which operator can choose between five type of sub-vi to load in them. How to do that (load the same sub-vi in those ten subpanels) ??
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 8 of 15
(3,939 Views)
Well - as far as I know, that is not possible.

If you try it with just two subpanels and the same vi to place in the subpanel, you once get error 1145 (LabVIEW: Cannot open VI because it is already in a subpanel control.).

One way you could code a similar functionality was the usage of a tab-control. You could place your "views" on 5 tabs, make the tab-registers invisible and access the single tabs using a drop-down.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 9 of 15
(3,936 Views)
No Solutions ???????
Eddy DUCHENE
12 F Chemin de Boutary
69300 CALUIRE ET CUIRE

educhene@laposte.net
0 Kudos
Message 10 of 15
(3,928 Views)