Assigning Specific Numeric Values to Ring Control Items
- Updated2026-05-29
- 1 minute(s) read
You can assign unique numeric values to items in a ring control. Use this functionality to present real-world values to users of a VI and to pass values that your program expects without translation.
By default, LabVIEW assigns sequential values that correspond to the order of the ring items in the list, starting with a value of 0 for the first item. When you configure the list of items for a ring control, you can instead assign a specific numeric value to each item.
To assign a specific numeric value to an item in a ring control, complete the following steps.
- Right-click the ring control and select Edit Items... from to display the Edit Items page of the Ring Properties dialog box.
- Remove the checkmark from the Sequential values checkbox.
- Double-click in the cell in the Values column that contains the numeric value you want to change.
-
Enter the numeric value you want to use on the block diagram when the user selects the
corresponding label in the control.
Each item in the ring control must have a unique numeric value.Note The value you enter must be a valid value for the numeric representation of the ring control. For example, if the representation of the ring control is 16-bit unsigned integer, you cannot enter a negative value.
- Repeat steps 3 and 4 for each numeric value you want to change.
- Click OK.
You also can use the Strings And Values [] property to assign specific numeric values programmatically.
Related Information
- Editing Items in Ring Controls and Enumerated Type Controls
Once you create a ring or enum control, you need to add the items to the control that a user can select from. Edit the contents, order, and status of items in the control.