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

TheModel Infoblock displays model properties and text about a model on the mask of the block. Use theModel Infoblock 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 theEnter text and tokens to display on Model Info blockedit 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 textModel Info.

  • To display a model property on the block mask, select a property in theModel propertieslist and click the right arrow button.

    The block adds a token of the form%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 selectDescriptionin theModel propertieslist and click the right arrow button, then the token

      %

      appears in the right edit box.

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

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

    SeeAccess Model Information Programmatically为描述模型的属性。

If you are interested in source control information, for a flexible interface to source control tools, use a project. SeeSource 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™.

Version History

Introduced before R2006a