Package: ModelAdvisor
Run Model Advisor checks on systems
SysResultObjArray = ModelAdvisor.run(SysList,CheckIDList,Name,Value)
SysResultObjArray = ModelAdvisor.run(SysList,'Configuration',FileName,Name,Value)
runs
the Model Advisor on the systems provided by SysResultObjArray
= ModelAdvisor.run(SysList
,CheckIDList
,Name,Value
)SysList
with
additional options specified by one or more optional Name,Value
pair
arguments. CheckIDList
contains cell array of
check IDs to run.
runs
the Model Advisor on the systems provided by SysResultObjArray
= ModelAdvisor.run(SysList
,'Configuration',FileName
,Name,Value
)SysList
.
The list of checks to run is specified using a Model Advisor configuration
file, specified by FileName
.
|
Cell array of systems to run. |
|
Cell array of check IDs to run. For details on how to find check IDs, see Find Model Advisor Check IDs.
|
|
Name of the Model Advisor configuration file. For details on creating a configuration file, see Use the Model Advisor Configuration Editor to Customize the Model Advisor. |
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
|
Setting
Setting Default: |
|
Setting Default: |
|
Setting Default: |
|
Setting Default: |
|
Setting Default: |
|
Cell array of |
|
Array of |
Runs the Model Advisor checks Check model diagnostic
parameters and Check for fully defined interface on
the sldemo_auto_climatecontrol/Heater Control
and sldemo_auto_climatecontrol/AC
Control
subsystems:
% Create list of checks and models to run. CheckIDList ={'mathworks.maab.jc_0021',... 'mathworks.iec61508.RootLevelInports'}; SysList={'sldemo_auto_climatecontrol/Heater Control',... 'sldemo_auto_climatecontrol/AC Control'}; % Run the Model Advisor. SysResultObjArray = ModelAdvisor.run(SysList,CheckIDList);
Runs the Model Advisor configuration file slvnvdemo_mdladv_config.mat
on
the sldemo_auto_climatecontrol/Heater Control
and sldemo_auto_climatecontrol/AC
Control
subsystems:
% Identify Model Advisor configuration file. % Create list of models to run. fileName = 'demoConfiguration.json'; SysList={'sldemo_auto_climatecontrol/Heater Control',... 'sldemo_auto_climatecontrol/AC Control'}; % Run the Model Advisor. SysResultObjArray = ModelAdvisor.run(SysList,'Configuration',fileName);
If you have a Parallel Computing Toolbox license
and a multicore machine, Model Advisor can run on multiple systems
in parallel. You can run the Model Advisor in parallel mode by using ModelAdvisor.run
with 'ParallelMode'
set
to 'On'
. By default, 'ParallelMode'
is
set to 'Off'
. When you use ModelAdvisor.run
with 'ParallelMode'
set
to 'On'
, MATLAB® automatically
creates a parallel pool.
Use the Model Advisor GUI to run each system, one at a time.
Create a script or function using the Simulink.ModelAdvisor
class
to run each system, one at a time.
ModelAdvisor.lookupCheckID
| ModelAdvisor.summaryReport
| view
| viewReport