取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
2,634 次查看
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 项奖励
2 条消息(共 3 条)
2,625 次查看
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 项奖励
3 条消息(共 3 条)
2,619 次查看