Simulink.ModelAdvisor
R2026bRun Model Advisor from MATLAB file
Description
To run the Model Advisor, use instances of this object in MATLAB® programs. For example, you can perform a standard set of checks.
Many Simulink.ModelAdvisor object functions require or return IDs. An
ID is a unique identifier for a Model Advisor check, task, or group.
IDs must remain constant. A Simulink.ModelAdvisor object includes functions
that enable you to retrieve the ID or IDs for:
All checks, tasks, and groups
Checks belonging to groups and tasks
The active check
Selected checks, tasks, and groups
To find check IDs in the Model Advisor, use the check context menu.
| Find | Action |
|---|---|
| Check ID |
|
| Check IDs for selected checks in a folder |
|
If you have a Simulink®
Check™ license, consider using the ModelAdvisor.run (Simulink Check) function instead of the Simulink.ModelAdvisor
runCheck or runTask functions.
Creation
Description
ma = Simulink.ModelAdvisor.getModelAdvisor(
creates an instance of the system)Simulink.ModelAdvisor object for the
specified model or subsystem. MATLAB creates an instance of this object for each model
that you open in the current MATLAB session. Your program can then use the Model Advisor
object functions to initialize and run the Model Advisor checks.