LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Populating a combo box

Is it possible to populate a combo box located in a main.vi from a subvi using refnum? I've been able to do it within the same VI using the property node 'String[]' but this property is not available when used with control refnum. Any tips to do this from a subvi?
0 Kudos
Message 1 of 3
(2,938 Views)
Hi Martin,

I think you are having this problem because the control reference input terminal on your subVI is the incorrect class. You can easily create a control reference control that is the right class by dropping a control refnum from the Controls > Refnum palette on the front panel, then ctrl-dragging a combo box into that refnum control. This will create a control refnum control of the appropriate class for you to use in your subVI.

Good luck,
-D
Message 2 of 3
(2,938 Views)
Hi Darren,

Thank you for this. I did not mention in my first post that the combo box was in a cluster. I've been able to do what I want by using a vi that is new to me: 'To more specific class' and attaching a Combo Box Refnum constant as target.
Thanks again.
0 Kudos
Message 3 of 3
(2,938 Views)