Upgrade Models Using Upgrade Advisor
This example shows you how to fix your Simulink® models and upgrade them to the current release by using Upgrade Advisor. The Upgrade Advisor tool runs checks, fixes errors, and incorporates new Simulink functionality.
Open Upgrade Advisor
Open the model you want to upgrade.
openExample("vdp")
Select and Run Upgrade Checks
Use the Upgrade Advisor to run all selected checks.
Select the Upgrade Advisor node.
Click Run Selected Checks.
Tip
For models with no hierarchy, by default, the Upgrade Advisor selects and runs all checks except the Analyze model hierarchy and continue upgrade sequence check.
For model hierarchies, use the Analyze model hierarchy and continue upgrade sequence check to guide you through upgrade checks. 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. For more information, see Analyze model hierarchy and continue upgrade sequence.
The Upgrade Advisor runs the selected checks and shows a summary in the Report section.
To run one individual check, select the check, then click Run This Check.
Save Results in Report
You can save the results of all checks you run in a report.
Select the Upgrade Advisor node.
In the Report section, click Save As...
Specify the name of the report.
Tip
When you fix a check with warnings or failures, rerun the check before you create an Upgrade Advisor report.
Investigate and Fix Check Warnings and Failures
Inspect the summary of the checks you run. In this example, two checks show a warning.
To investigate and fix a warning or a failure in a check, follow these steps:
Select a check that did not pass.
Inspect the Results section to view the analysis and the recommended fixes.
Fix the warning or failure manually by following the recommended steps. In some cases, you can fix issues automatically by clicking the button in the Action section.
Tip
For more information on individual upgrade advisor checks, see Model Upgrades.