Documentation Center

  • Trial Software
  • Product Updates

Numeric Displays Library

Library Overview

The Numeric Displays library contains controls that display the numerical values of their input signals. Controls differ in numerical range and display elements. The Odometer block uses a specialized dialog box. The library provides:

  • Display elements — Digit count, decimals, leading zeros, plus or minus, gradual transition (odometer only)

  • Preconfigured controls

    • Numeric LED display— HH:MM, HH:MM:SS, IRIG Format, PlusMinus XX.XXX, VCR Clock

    • Odometer display—Odometer

  • Custom controls — Generic Numeric LED

Customizing Numeric LED Displays

The table below lists some common ways to customize any block in the Numeric Displays library, except the Odometer block, using the General panel of its ActiveX® Control Properties dialog box.

TaskDescription
Change the number of digits in the displaySet Digits to the total number of digits.
Specify the number of digits after the decimal pointSet Decimals to the number of digits you want after the decimal point, and check the FixedDecimal check box.
Pad the display with leading zerosCheck the LeadingZeros check box.
Display a plus or minus signCheck the LeadingPlusMinus check box.
Change the appearance of all digitsUse the ItalicsOffset property to control the slanting angle of digits. Use the Segment Width and Segment Separation properties to control the width of the line segments that compose each digit and the spacing between the line segments, respectively. Use the two Spacing properties to control the padding around each digit.
Avoid using nonnumeric characters such as a colon in the display, making the block easier to use with Simulink® signalsFirst set DisplayMode to 0 - Numeric. Then open the block's Block Parameters dialog box by double-clicking the block's border, and set Input property to Value.

Customizing the Odometer Block

The table below lists some common ways to customize the Odometer block, using the General panel of its ActiveX Control Properties dialog box.

TaskDescription
Change the number of digits in the displaySet Digits to the total number of digits. Set Decimals to the number of digits after the decimal point. The block does not display a decimal point character, but digits that represent proper fractions appear with inverted colors.
Make the display change gradually from old to new values, instead of registering the change instantaneouslyCheck the Transition Enabled check box. Set the Steps value to the number of steps in the gradual transition. Use the Rate value to control the speed of the transition, where larger values indicate a slower transition.

Was this topic helpful?