|On this page…|
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)
Numeric LED display— HH:MM, HH:MM:SS, IRIG Format, PlusMinus XX.XXX, VCR Clock
Custom controls — Generic Numeric LED
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.
|Change the number of digits in the display||Set Digits to the total number of digits.|
|Specify the number of digits after the decimal point||Set Decimals to the number of digits you want after the decimal point, and check the FixedDecimal check box.|
|Pad the display with leading zeros||Check the LeadingZeros check box.|
|Display a plus or minus sign||Check the LeadingPlusMinus check box.|
|Change the appearance of all digits||Use 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® signals||First 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.|
The table below lists some common ways to customize the Odometer block, using the General panel of its ActiveX Control Properties dialog box.
|Change the number of digits in the display||Set 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 instantaneously||Check 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.|