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
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.