Main Content

Model Info

Display model properties and text in model

  • Model Info block

Libraries:
Simulink / Model-Wide Utilities
HDL Coder / Model-Wide Utilities

Description

The Model Info block displays model properties and text about a model on the mask of the block. Use the Model Info block dialog box to specify the content and format of the text that the block displays. You can select model properties to display on the block. In the text displayed on the block mask, the software replaces the property name with the current value of the property in the model.

Examples

Parameters

expand all

Specify the text and properties to display on the block mask. Edit the default text Model Info.

To display a model property on the block mask:

  1. Select a property in the Model properties list.

  2. Click the right arrow button.

    The block adds a token of the form %<modelpropertyname> to the box. In the text the block mask displays, the software replaces the token with the value of the property.

For example, if you select Description in the Model properties list and click the right arrow button, the token %<Description> appears in the box to the right. You can add explanatory text before the model property, for example, “Model description:”. When you click Apply or OK, the software displays the updated text and the current value of the model property on the block mask.

For descriptions of the model properties, see Access Model Information Programmatically.

If you are interested in source control information, for a flexible interface to source control tools, use a project. See Source Control in Projects.

Specify where to align the text on the block mask horizontally.

Specify whether to display the block frame, which is a border around the block mask.

Block Characteristics

Data Types

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

Version History

Introduced before R2006a