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.

If changes to a referenced model interface do not affect how the referenced model interfaces to its parent, you do not need to refresh a Model block .

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


Related Topics

Was this topic helpful?