LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display subvi indicators on main front panel?

Hi, I have a vi that calls several subvi's in a sequence structure, how do I display the indicators of the subvi on the main calling program's front panel? Any examples? thanks - scottyb
0 Kudos
Message 1 of 8
(5,455 Views)
Avoiding globals, you can easily copy the sub vi's indicators and place them on the main front panel. In the subvi's front panel, wire the indicator(s) to the vi's terminals (right click the subvi's icon in the upper right corner and display the terminals - you may have to add additional ones). In the main program's diagram, wire the copied indicators to the output terminals of the subvi.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 8
(5,455 Views)
Another possibilities is use the Datasocket look at the LV example

:Program Files\National Instruments\LabVIEW 6.1\vi.lib\platform\dataskt.llb

Saw Naing Aye
0 Kudos
Message 3 of 8
(5,455 Views)
If you want the indicators to update while the sub-vi is running (and not after rutting), you can create the indicators in your main program, and then right click on them and create a reference. Pass the reference to the sub-vi, and in the sub-vi you can use property nodes to change the value of the indicator(s) on your main application.
Message 4 of 8
(5,455 Views)
This is good for up to date monitoring but can REALLY back log time critical subvi's, so I would suggest avoiding this if timing is of importance.


2006 Ultimate LabVIEW G-eek.

Message 5 of 8
(5,455 Views)
Can I display sub Vis on the front panel of main vi such that when I click on any one of the sub vi ,it starts to execute.
Please help me to do this.
0 Kudos
Message 6 of 8
(4,212 Views)
Did you look at how old this thread is?

You can display the front panel of a subVI in a subpanel. See the examples. Clicking on a subVI makes no sense. You click on front panel controls such as Booleans. An event structure would come in handy.
0 Kudos
Message 7 of 8
(4,203 Views)

I saw a presentation at the CLA Summit last year where someone had made a plugin architecture that showed the flow of data through acquisition / processing / analysis with the icons of the plugin VIs on the front panel.

 

I think he used the VI->VI Icon.Get as Image Data method to then display the VI icons of the plugins in a 2D Picture control and then use the event structure to pick up on clicks on the icons drawn on the picture control.

 

It was pretty neat!

 

A simpler solution would be just to display the VI names in a listbox.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 8 of 8
(4,197 Views)