Simulink.ModelAdvisor
Run 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 or the Advisor.Application
(Simulink Check)
run
(Simulink Check) function instead of the Simulink.ModelAdvisor
runCheck
or runTask
functions.
Consider using Advisor.Application
object if you have a large model with
subsystems and model references. If you want to run checks on multiple independent models that
are not in a model reference hierarchy or you want to leverage parallel processing, use
ModelAdvisor.run
to run Model Advisor checks on your model.
Creation
Description
MATLAB creates an instance of this object for each model that you open in the current
MATLAB session. To get a handle to a model's Model Advisor object, execute this command:
where system is the name of the model or subsystem that you want to check. Your program
can then use the Model Advisor object functions to initialize and run the Model Advisor
checks. ma
= Simulink.ModelAdvisor.getModelAdvisor(system
)
Input Arguments
Properties
Object Functions
Version History
Introduced in R2006a