Documentation Center

  • Trial Software
  • Product Updates


Verify Model Syntax

Verify model can be simulated accurately and efficiently

Start Here

The Model Advisor checks a model or subsystem for conditions and configuration settings that can result in inaccurate or inefficient simulation. See Consult the Model Advisor.


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
addterms Add terminators to unconnected ports in model


Simulink.ModelAdvisor Run Model Advisor from MATLAB file
Simulink.Preferences Set Model Advisor preferences

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
Check signal logging save format
Check and update masked blocks in library to use promoted parameters
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 for partial structure parameter usage with bus signals
Check bus usage
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 consistency of initialization parameters for Outport and Merge blocks
Check data store block sample times for modeling errors
Check for potential ordering issues involving data store access
Check file for foreign characters
Check Model History properties

Related Information

Was this topic helpful?