주요 콘텐츠

Model Advisor Edit-Time Checks

R2026b

You can use the Simulink® Check™ Model Advisor to check that your model or subsystem complies with a variety of modeling guidelines. You use edit-time checking to identify modeling issues while you build or modify your model. Edit-time checks run automatically in the background and provide immediate feedback without requiring you to run the full Model Advisor. Only a subset of Model Advisor checks supports edit-time execution. These checks are selected to balance performance and usefulness during active model editing.

Default Edit-Time Checks

Edit-time checking includes a predefined set of checks that are enabled by default. These default checks focus on common modeling issues that you can detect quickly as the model changes. By enabling a limited and curated set of checks, edit-time checking provides timely feedback while maintaining acceptable performance during model editing.

Customize Default Edit-Time Checks

The set of edit-time checks that runs by default depends on the Model Advisor configuration that you load. To change which edit-time checks are enabled by default, you use the Model Advisor Configuration Editor.

In the Model Advisor Configuration Editor, you select the checks that you want to enable and save the configuration. When you load this configuration, the selected checks appear enabled by default for edit-time checking.

For details on creating and modifying configurations, see Use Model Advisor Configuration Editor to Customize Model Advisor.

Edit-Time Checks Enabled by Default

These checks are enabled by default for edit-time checking.

Model Advisor Checks for MAB and JMAAB Modeling

Model Advisor CheckCheck ID
Check subsystem namesmathworks.jmaab.jc_0201
Check operator order of Product blocksmathworks.jmaab.jc_0610
Check port block namesmathworks.jmaab.jc_0211
Check length of block namesmathworks.jmaab.jc_0247
Check length of Inport and Outport namesmathworks.jmaab.jc_0244
Check for unconnected signal lines and blocksmathworks.jmaab.db_0081
Check character usage in block namesmathworks.jmaab.jc_0231
Check length of subsystem namesmathworks.jmaab.jc_0243
Check if tunable block parameters are defined as named constantsmathworks.jmaab.jc_0645

Model Advisor Checks for Early Detection

Model Advisor CheckCheck ID
Check for reference model configuration parameter mismatchmathworks.earlydetection.ModelRefModelConfigMismatch
Check usage of For and While Iterator subsystemsmathworks.earlydetection.IteratorSubsystem
Check for Algebraic loops in modelsmathworks.earlydetection.algebraicLoop
Check usage of Lookup Table blocksmathworks.earlydetection.LookUpTableUsage

Model Advisor Checks for Code Generation

Model Advisor CheckCheck ID
Check for blocks not recommended for C/C++ production code deploymentmathworks.codegen.PCGSupport

Edit-Time Checks Disabled by Default

The following checks support edit-time execution but are disabled by default. You can enable these checks by updating the Model Advisor configuration.

Model Advisor Checks for High-Integrity Systems Modeling

Model Advisor Checks for MAB and JMAAB Modeling

See Also