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.

  1. Right-click the ring control and select Edit Items... from to display the Edit Items page of the Ring Properties dialog box.
  2. Remove the checkmark from the Sequential values checkbox.
  3. Double-click in the cell in the Values column that contains the numeric value you want to change.
  4. 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.
  5. Repeat steps 3 and 4 for each numeric value you want to change.
  6. Click OK.

You also can use the Strings And Values [] property to assign specific numeric values programmatically.