This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Model Info

Display model properties and text in model

  • Library:
  • 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, Simulink® replaces the property name with the current value of the property in the model.

Parameters

expand all

Use the Enter text and tokens to display on Model Info block edit box to specify the text and properties to display.

  • In the edit box, enter any text you want to display on the block mask. Edit the default text Model Info.

  • To display a model property on the block mask, select a property in the Model properties list and click the right arrow button.

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

    1. For example, if you select Description in the Model properties list and click the right arrow button, then the token

      %<Description>

      appears in the right edit box.

    2. You could add some explanatory text before the model property, e.g. “Model description:”.

    3. When you click Apply or OK, Simulink displays your new text and the current value of the model property on the block mask in the Model Editor.

    See Version Information Properties for descriptions of the model properties.

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

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™.

Introduced before R2006a