Replace blocks from previous releases with latest versions
AnalysisResult = slupdate('
blocks in model
sys from a previous release
of Simulink® software with the latest versions. The
alone cannot perform all upgrade checks on your model. Use the Upgrade
Advisor to access the
slupdate checks and also
advice and fixes for all other upgrade checks. See Model Upgrades.
Best practice is to first open the model, and press CTRL+D to
update the model, before you call
whether to prompt you before replacing a block. If
the command prompts you before replacing the block. The prompt asks
whether you want to replace the block. Valid responses are
Replace the block (the default).
Do not replace the block.
Replace this and all subsequent obsolete blocks without further prompting.
the command replaces all obsolete blocks without prompting you.
In addition to replacing obsolete blocks,
Reconnects broken links to masked blocks in libraries provided by MathWorks to ensure that the model reflects changes made to the blocks in this release. This will overwrite any custom changes you made to the masks of these blocks.
Updates obsolete configuration settings for the model.
AnalysisResult = slupdate(' performs only the analysis
portion without updating or changing the model. This command analyzes
referenced models, linked libraries, and S-functions, and then returns
a data structure with the following fields:
Message — string containing
a message summarizing the results
blockList — cell array listing
blocks that need to be updated
blockReasons — cell array
listing reasons for updating the corresponding blocks
modelList — cell array listing
referenced models and the parent model
libraryList — cell array
listing non-MathWorks libraries referenced
configSetList — for internal
sfunList — cell array listing
sfunOK — logical array representing
S-function status, where
false indicates that an
S-function needs updating and
true indicates otherwise
sfunType — cell array listing
apparent S-function type (e.g.,