Simulink.ModelReference.refresh
Description
Simulink.ModelReference.refresh(
updates the specified Model block, modelBlock
)modelBlock
, to
reflect changes to the referenced model. The block updates even when the Model
block version mismatch or Port
and parameter mismatch configuration parameter is set to
error
.
Examples
Input Arguments
Tips
To refresh all variants, linked blocks, and Model blocks in a model, use
the Simulink.BlockDiagram.refreshBlocks
function. With this function, the
Model blocks update only when the Model
block version mismatch and Port
and parameter mismatch configuration parameters are set to
none
or warning
. The
Model blocks do not update when either configuration parameter is set to
error
.
Alternative Functionality
Select a Model block. In the Simulink® Toolstrip, on the Model Block tab, click Refresh .
Version History
Introduced in R2020a