Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Refresh Model Blocks

Refreshing a Model block updates its internal representation to reflect changes in the interface of the model that it references.

Examples of when to refresh a Model block include:

  • Refresh a Model block that references model that has gained or lost a port.

  • Refresh all the Model blocks that reference a model whose interface has changed.

You do not need to refresh a Model block if the changes to the interface of the referenced model do not affect how the referenced model interfaces to its parent.

To update a specific Model block, from the context menu of the Model block, select Subsystem & Model Reference > Refresh Selected Model Block.

To refresh all Model blocks in a model (as well as linked blocks in a library or model), in the Simulink® Editor select Diagram > Refresh Blocks. You can also refresh a model by starting a simulation or generating code.

You can use Simulink diagnostics to detect changes in the interfaces of referenced models that could require refreshing the Model blocks that reference them. The diagnostics include:

See Also

Blocks

Related Topics

Was this topic helpful?