LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass list box to a sub vi

Hi,
I have a main vi that has a list-box in it.
i want to pass this list-box as rerference to a sub-vi and let the sub-vi change its properties (like item Names) and to see the changes in the
main vi.
 
???
 
thanks in advance
0 Kudos
Message 1 of 3
(2,864 Views)

Hi

You already have the solution in your question. You want to pass a reference of the list-box to a sub-vi to change the properties - so just pass it to the sub-vi.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 3
(2,859 Views)
Right click on the terminal of the listbox and from the context menu select create->reference. Then right click on the reference and click create->control. Copy the reference control onto the front panel of your subvi and after you have saved the subvi, drop it on the block diagram and wire the reference to it.
0 Kudos
Message 3 of 3
(2,859 Views)