Main Content

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")
To open the Upgrade Advisor, on the Modeling tab, select Model Advisor > Upgrade Advisor.

Select and Run Upgrade Checks

Use the Upgrade Advisor to run all selected checks.

  1. Select the Upgrade Advisor node.

  2. Click Run Selected Checks.

Upgrade Advisor tool with the Upgrade Advisor node selected in the left pane and Run Selected Checks button in the right pane

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.

Report section in the Upgrade Advisor showing the date and time of the last run and a summary of the checks Pass, Fail, Warning and Not Run

To run one individual check, select the check, then click Run This Check.

Upgrade Advisor with one check selected in the left pane and Run This Check button in the right pane.

Save Results in Report

You can save the results of all checks you run in a report.

  1. Select the Upgrade Advisor node.

  2. In the Report section, click Save As...

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

Report section in the Upgrade Advisor showing the date and time of the last run and a summary of the checks Pass, Fail, Warning and Not Run

To investigate and fix a warning or a failure in a check, follow these steps:

  1. Select a check that did not pass.

  2. Inspect the Results section to view the analysis and the recommended fixes.

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

See Also

Related Topics