Changing Data Ranges of Numeric Controls and Indicators

You can limit intermediate values to certain increments. For example, you might limit word integers to increments of 10 or single-precision floating-point numbers to increments of 0.25. If you change either the limits or the increment, you also should decide what to do if the user attempts to set a value outside the range or off the increment. You also can use the In Range and Coerce function to determine if a value falls within a range and coerce the value to fall within the range.

Complete the following steps to designate other limits within the natural minimum and maximum data range limits.

  1. Right-click a numeric control and select Data Range to display the Data Range dialog box.
  2. Remove the checkmark from the Use Defaults checkbox.
  3. In the Minimum field, set the low value limit then select either to Ignore or Coerce the data.
  4. In the Maximum field, set the high value limit then select either to Ignore or Coerce the data. In the Increment field, set the incremental value then select either to Ignore, Coerce to Nearest, Coerce Up, or Coerce Down the data.

    Ignore LabVIEW does not change or flag invalid values. Clicking the increment and decrement buttons changes the value by the increment you set, but the value does not go beyond the minimum or maximum values.
    Coerce to Nearest LabVIEW increments to the nearest value. For example, if the minimum is 3, the maximum is 10, and the increment is 2, valid values are 3, 5, 7, 9, and 10. LabVIEW coerces the value 0 to 3, the value 6 to 7, and the value 100 to 10.
    Coerce Up LabVIEW increments the value up one.
    Coerce Down LabVIEW increments the value down one.