Main Content

Model Info

Display model properties and text in model

  • Library:
  • Simulink / Model-Wide Utilities

    HDL Coder / Model-Wide Utilities

  • Model Info block

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®将属性名称替换为模型中属性的当前值。

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.

    该块添加了表单的令牌%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 selectDescription在里面Model propertieslist and click the right arrow button, then the token

      %

      appears in the right edit box.

    2. 您可以在模型属性之前添加一些解释性文本,例如“Model description:”.

    3. When you clickApply或者好的, 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

块特征

Data Types

Direct Feedthrough

Multidimensional Signals

Variable-Size Signals

Zero-Crossing Detection

Extended Capabilities

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

Introduced before R2006a