Using Simulink Previous page   Next Page

The Model Advisor

The Model Advisor checks a model or subsystem for conditions and configuration settings that can result in inaccurate or inefficient simulation of the system represented by the model or generation of inefficient code from the model. It produces a report that lists all the suboptimal conditions or settings that it finds, suggesting better model configuration settings where appropriate.

Launching the Model Advisor

You can use any of the following methods to launch the Model Advisor.

The Model Advisor Window

The Model Advisor window appears below, showing a report for the vdp demo model.

The left pane lists the checks that the Model Advisor performs. The check boxes displayed in this pane allow you to select some or all of the checks. To perform the checks, select the Check System button at the top of the pane. The Model Advisor displays the results of the checks in the right pane.

Checking Code-Generation Targets

Before running the Model Advisor on a model, select the target you plan to use in the Real-Time Workshop pane of the Configuration Parameters dialog box (see The Configuration Parameters Dialog Box). The Model Advisor works most effectively with ERT and ERT-based targets (targets based on the Real-Time Workshop Embedded Coder).

Model Advisor Demo Models

The Real-Time Workshop includes demos that illustrate usage of the Model Advisor. To run the demos, select the following links:

You can also access these demos by opening the general Real-Time Workshop demo package (rtwdemos) and navigating to the Model Advisor-related models in the "Optimizations" group. You can also run these demos from the MATLAB command line. For example, the command

launches the rtwdemo_advisor1 model. Note that demo models rtwdemo_advisor2 and rtwdemo_advisor3 require Stateflow and Fixed-Point Toolbox.


Previous page  Working with Data Stores Managing Model Versions Next page

© 1994-2005 The MathWorks, Inc.