Consult the Upgrade Advisor
Use the Upgrade Advisor to help you upgrade and improve models with the current release. The Upgrade Advisor can identify cases where you can benefit by changing your model to use new features and settings in Simulink®. The Advisor provides advice for transitioning to new technologies, and upgrading a model hierarchy.
The Upgrade Advisor can also help identify cases when a model will not work because changes and improvements in Simulink require changes to a model.
The Upgrade Advisor offers options to perform recommended actions automatically or instructions for manual fixes.
You can open the Upgrade Advisor in the following ways:
From the Model Editor, on the Modeling tab, select Model Advisor > Upgrade Advisor
From the MATLAB® command line, use the
Alternatively, from the Model Advisor, click Upgrade Advisor. This action closes the Model Advisor and opens the Upgrade Advisor.
In the Upgrade Advisor, you create reports and run checks in the same way as when using the Model Advisor.
Select the top Upgrade Advisor node in the left pane to run all selected checks and create a report.
Select each individual check to open a detailed view of the results in the right pane. View the analysis results for recommended actions to manually fix warnings or failures. In some cases, the Upgrade Advisor provides mechanisms for automatically fixing warnings and failures.
When you fix a warning or failure, rerun all checks to update the results of all checks. If you do not rerun all checks, the Upgrade Advisor might report an invalid check result.
You must run upgrade checks in this order: first the checks that do not require compile time information and do not trigger an Update Diagram, then the compile checks. To guide you through upgrade checks to run both non-compile and compile checks, run the check Analyze model hierarchy and continue upgrade sequence. See Analyze model hierarchy and continue upgrade sequence.
For models with no hierarchy, select and run all checks except the Analyze model hierarchy and continue upgrade sequence check.
For more information on individual checks, see
Model Upgrades for upgrade checks only
Simulink Checks for all upgrade and advisor checks
To analyze and upgrade models programmatically, use the
function. See Programmatically Analyze and Upgrade Model.
For an example showing how to upgrade a whole project programmatically, see Upgrade Simulink Models Using a Project.
Upgrade Advisor Checks
For advice on upgrading and improving models with the current release, use the following Model Advisor checks in the Upgrade Advisor.
Identify Model Info blocks that can interact with external source control tools
Identify masked blocks that specify tabs in mask dialog using MaskTabNames parameter
Identify Variant blocks using Variant objects with empty conditions
Identify configurable subsystem blocks for converting to variant subsystem blocks
Check and update masked blocks in library to use promoted parameters
Check and update mask image display commands with unnecessary imread() function calls
Check Rapid accelerator signal loggingCheck get_param calls for block CompiledSampleTime
Check model for block upgrade issues requiring compile time information
Check Delay, Unit Delay and Zero-Order Hold blocks for rate transition
Check model settings for migration to simplified initialization mode
Identify Variant Model blocks and convert those to Variant Subsystem containing Model block choices
Check for case mismatches in references to models and libraries
Check configuration parameters for generation of inefficient saturation code (Embedded Coder)
Check model for RF Blockset Divider blocks using Wilkinson power divider component with broken connections