LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I output custom values for items in a menu ring control?

Hi,
I want to use a menu ring type of control, but I need the numeric output of the control to be configurable. For example, if I have three items in the menu ring, "itemA", "itemB", and "itemC", the numeric output of the menu ring is 0, 1, and 2. Can I change the numeric output to different numbers, like 10, 20, and 30?
0 Kudos
Message 1 of 3
(2,951 Views)
I think the only way is to use some mathematics or case structure, to manage your outputs as you want.
Good luck
0 Kudos
Message 2 of 3
(2,951 Views)
As Gorka just said in his answer, there is no direct way of doing this.

However, one solution could be that you programatically set up a an array with the custom values you want to use for the menu selection (10, 20,30, ...). Then use the output from the menu ring (0,1, 2, ...) as an index to that array and you'll get the number you want for each selection. Hope this helps. /Mikael
Message 3 of 3
(2,951 Views)