Display model properties and text in model
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.
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 will replace the token with the value of the property.
For example, if you select Model Version in the Model properties list and click the right arrow button, then the token
appears in the right edit box.
You could add some explanatory text before the model property, e.g. "Model version is:".
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 like this example:
Model version is: 1.6
See Version Information Properties for descriptions of the model properties.
Caution Using third-party source control tool keyword expansion within model properties tokens might corrupt your model files when you submit them. See Register Model Files with Source Control Tools.
If you save your model in SLX format, third-party tools cannot perform keyword substitution. Any information in the model file from such third-party tool keyword substitution is cached when you first save the MDL file as SLX, and is never updated again. The Model Info block shows stale information from then on, so remove third-party tool keyword substitution from Model Info blocks to ensure up-to-date displays.
The Configuration manager properties field is enabled only if you previously specified an external configuration manager for this model on the MATLAB® Preferences dialog box for the model. The field lists version control information maintained by the external system that you can include in the Model Info block. To include an item from the list, select it and then click the adjacent arrow button.
Note: The selected item does not appear in the Model Info block until you check the model in or out of the repository maintained by the configuration manager and you have closed and reopened the model.
If you save your model in SLX format, keyword substitution of version information is not available and you cannot add new configuration manager properties in the Model Info block. For existing Configuration manager properties, the block detects the problem, removes stale version information and instead displays: "Not available in SLX model file format".
For a more flexible interface to source control tools, use the Simulink Project Tool instead of the Model Info block. See Simulink Projects.