Assigning Specific Numeric Values to Ring Control Items

When you configure the list of items for a ring control, you can assign a specific numeric value to each item. If you do not assign specific numeric values to the items, LabVIEW assigns sequential values that correspond to the order of the items in the list, starting with a value of 0 for the first item.

Complete the following steps to assign a specific numeric value to an item in a ring control.

  1. Right-click the ring control and select Edit Items from the shortcut menu 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.
  1. Repeat steps 3–4 for each numeric value you want to change.
  2. Click the OK button.

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