LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass control appearance from subVI

I have a subVI that is called in my main VI and acts as a prompt. It has 5 controls, and these controls can change color and name, depending on user input. It may be also possible that fewer than 5 are selected. At any rate, the values of these 5 controls are clustered and sent out of the subVI prompt to the main VI, where they are displayed. Is there any way to pass the properties of the control itself to the main VI? My thought is it would be nice to not only display the values of the subVI controls but also the color, name, etc. I was hoping that there is some way to pass the control, and not have a lot of properties being sent as outputs of the VI.
 
Michael
0 Kudos
Message 1 of 3
(2,524 Views)
I think that you don't have the choice to send the properties as output... or use a global (which does not reduce the task either).
0 Kudos
Message 2 of 3
(2,515 Views)
All you have to do is pass a control reference to the subVI and write to the properties of the controls in the subVI. No need to return anything from the subVI except the values. Check the shipping examples for control references and search the forum for examples.
0 Kudos
Message 3 of 3
(2,509 Views)