| Contents | Index |
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 refresh all Model blocks in a model (as well as linked blocks in a library or model), in the Model Editor select Edit > Links and Model Blocks > Refresh. You can also refresh a model by starting a simulation or generating code.
To update a specific Model block, select Refresh from the context menu of the Model block.
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:
![]() | Inheriting Sample Times | Using S-Functions with Model Referencing | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |