LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting items in menu rings

Hello,

I need to create a menu ring where options can be selected and these options correspond to numbered values that are sent thru a serial port-connected linear actuator.  I do not know how to go about having the text options from the menu ring correspond to numbered values that can then be sent to the serial port.  Any help would be greatly appreciated.

Thanks,

Eric
0 Kudos
Message 1 of 4
(3,281 Views)
The output of a menu ring control is a number itself (u16).  If you were wondering how to make that number correspond to a different number to  be sent to your serial port, you can wire the output of the menu ring to a case structure selector input, and then for each menu case you can have a corresponding case structure case, in which you can specify your particular output.

Hope this helps.
Message 2 of 4
(3,274 Views)
Right click on the ring control and select Edit Items. Uncheck the box that says Sequential Values. Type the value you want for each item. The values are integers by default but you can make the control a dbl and have values of that type.
Message 3 of 4
(3,270 Views)
Thanks to both of you! Smiley Happy
0 Kudos
Message 4 of 4
(3,263 Views)