LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have replaced an index array numerical control with a menu ring. Is it possible to programmatically populate the ring menu?

LabVIEW 7.1 Developer
I have replace the numerical control on the array index with a menu ring. I would like to know if it is possible to programmatically populate the menu ring text when it is used as the index selector ?

Ryan
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 1 of 7
(3,209 Views)
Yes, create an array of strings and feed them to the "strings[]" property of the ring. See attached example (LabVIEW 7.0)
0 Kudos
Message 2 of 7
(3,194 Views)
Hi Ryan,

I would like to know how you replaced just the index of terminal an array with a ring control. Did you mean to say that instead of using the array index terminal you used a seperate ring control with which you changed the array index?
KAliDas
0 Kudos
Message 3 of 7
(3,186 Views)
That was the easy part. I found out how to replace the Array Index (which is a numerical control) from another thread on this development board, http://forums.ni.com/ni/board/message?board.id=170&message.id=16296&requireLogin=False

The next thing I wanted to do was to populate this menu ring control with text I am getting from somewhere else.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 4 of 7
(3,166 Views)
With the control being attached to the Array - it won't let me create the property node for the menu ring.

I think I will try and populate the type def of the menu ring that is used in the new edited control that I created and see if that works. I will make sure I have AutoUpdate from TypeDef enabled.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 5 of 7
(3,166 Views)
I think that menu ring typedefs will not get updated if you add/delete items in the parent control. You may have to use enum, but I tried it seems that one cannot replace array index terminal with an enumerated control.
KAliDas
0 Kudos
Message 6 of 7
(3,145 Views)
I tried it and it did not work.

I worked around it with simple code to do the same thing as I was trying with the Ring Menu embedded in the Array control. Thanks for the replies everyone.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 7 of 7
(3,123 Views)