Simulink.ModelReference.refresh
R2026bRefresh Model block to reflect changes to referenced model
Description
Simulink.ModelReference.refresh(
refreshes the Model block specified by mdlblk)mdlblk to
reflect changes to the referenced model.
When you modify a referenced model and the parent model is loaded but not open, this function lets you refresh a Model block without compiling, simulating, or generating code for the model hierarchy.
Examples
Input Arguments
Tips
To refresh all variants, linked blocks, and Model blocks in a model, use the
Simulink.BlockDiagram.refreshBlocks function.
Alternative Functionality
Select a Model block. In the Simulink® Toolstrip, on the Model Block tab, click
Refresh
.
Version History
Introduced in R2020a