Main Content

LCD Screen

Display text and numerical value on specified line of LCD screen

Add-On Required: This feature requires the Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller add-on.

  • LCD Screen block

Libraries:
Simulink Coder Support Package for ARM Cortex-based VEX Microcontroller/LCD

Description

The LCD Screen block displays a static label and a value from the block input on the LCD screen. You can also choose to display only the label and not to display the value.

A maximum of 16 characters are displayed for a label or a combination of label and its value. Any output on the LCD screen more than 16 characters is truncated.

For example, if you select only a label to be displayed, the label can have maximum length of 16 characters. If you select a combination of label and its value, the maximum length of the characters displayed for both is 16.

Using this block, select a line on which you want to display the label and value, and then turn the LCD backlight on or off.

Ports

Input

expand all

When you send 0 to this port, the LCD backlight turns off. Otherwise it turns on.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Value to display on the LCD screen.

A maximum of 16 characters are displayed for a combination of label and its value. Any output on the LCD screen more than 16 characters is truncated.

Dependencies

This port becomes available only when you clear the Display only text parameter.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean

Parameters

expand all

Select the UART port number on the microcontroller to which the LCD Display Module is connected.

  • off— Display a combination of the label and its value on the LCD screen.

  • on— Display only the label on the LCD screen.

    When you select this parameter, the Val port is not available and the Precision parameter is hidden.

Specify a label to display on the LCD screen. The block displays the label to the left of the input value. For example, if you are displaying the state of an LCD button, specify Button:.

A maximum of 16 characters are displayed for a label. Any output on the LCD screen more than 16 characters is truncated.

Select the line on which to display the label or a combination of the label and its value.

Select the number of digits after the decimal point to display for an input value.

Dependencies

This parameter appears only when you clear the Display only text parameter.

Version History

Introduced in R2017a