Documentation Center

  • Trial Software
  • Product Updates

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:

Was this topic helpful?