Documentation

Run Model Checks

Check that model simulates accurately and efficiently

The Model Advisor checks a model or subsystem for conditions and configuration settings that can result in inaccurate or inefficient simulation. You can specify the conditions and settings to check. See Select Checks and Run Model Advisor.

Functions

modeladvisor Open Model Advisor
sldiagnostics Display diagnostic information about Simulink system
Simulink.BlockDiagram.getChecksum Return checksum of model
Simulink.SubSystem.getChecksum Return checksum of nonvirtual subsystem

Classes

Simulink.ModelAdvisor Run Model Advisor from MATLAB file
ModelAdvisor.Preferences Set Model Advisor window preferences by specifying which folders and tabs to display

Model Checks

Identify unconnected lines, input ports, and output ports
Check root model Inport block specifications
Check optimization settings
Check for parameter tunability information ignored for referenced models
Check for implicit signal resolution
Check for optimal bus virtuality
Check for calls to slDataTypeAndScale
Check for Discrete-Time Integrator blocks with initial condition uncertainty
Identify disabled library links
Identify parameterized library links
Identify unresolved library links
Identify model reference variants and variant subsystems that override variant choice
Identify configurable subsystem blocks for converting to variant subsystem blocks
Check usage of function-call connections
Runtime diagnostics for S-functions
Check if read/write diagnostics are enabled for data store blocks
Check Data Store Memory blocks for multitasking, strong typing, and shadowing issues
Open the Upgrade Advisor
Check for non-continuous signals driving derivative ports
Check structure parameter usage with bus signals
Check for potentially delayed function-call subsystem return values
Identify block output signals with continuous sample time and non-floating point data type
Check usage of Merge blocks
Check usage of Outport blocks
Check usage of Discrete-Time Integrator blocks
Check model settings for migration to simplified initialization mode
Check data store block sample times for modeling errors
Check for potential ordering issues involving data store access
Identify questionable operations for strict single-precision design
Check model for foreign characters
Check Model History properties

Topics

Select Checks and Run Model Advisor

This example shows how to select checks and run the Model Advisor.

Save Model Analysis Time

If you consistently run the same set of checks on your model, to save analysis time, use the Model Advisor dashboard.

Run Model Checks in Background

If you have a Parallel Computing Toolbox™ license, you can run the Model Advisor in the background.

Run Model Checks Programmatically

If you have a Simulink® Verification and Validation™ license, you can create scripts and functions that run the Model Advisor programmatically.

Address Model Check Results

After a Model Advisor analysis, you can highlight the results and fix check warnings.

Save and View Model Advisor Reports

The Model Advisor generates an HTML report of the check results.

Consulting the Model Advisor

Use the Model Advisor to check a model or subsystem for conditions and configuration settings that you select, including conditions that cause inaccurate or inefficient simulation.

Selecting Model Checks

Use the check documentation and Model Advisor window to determine which checks to run.

Model Advisor Limitations

When you use the Model Advisor to check your model, some limitations apply.

Was this topic helpful?