User`s guide

23 Check Systems Programmatically
23-10
You can review additional results in the Command Window by calling the
DisplayResults parameter when you run the Model Advisor. For example, run the
Model Advisor as follows:
SysResultObjArray = ModelAdvisor.run('sldemo_auto_climatecontrol/Heater Control',...
'Configuration','slvnvdemo_mdladv_config.mat','DisplayResults','Details');
The results displayed in the Command Window are:
Running Model Advisor
Running Model Advisor on sldemo_auto_climatecontrol/Heater Control
============================================================
Model Advisor run: 29-Oct-2012 16:30:00
Configuration: slvnvdemo_mdladv_config.mat
System: sldemo_auto_climatecontrol/Heater Control
System version: 8.1
Created by: The MathWorks Inc.
============================================================
(1) Warning: Check model diagnostic parameters [check ID: mathworks.maab.jc_0021]
------------------------------------------------------------
(2) Warning: Check for fully defined interface [check ID: mathworks.iec61508.RootLevelInports]
------------------------------------------------------------
(3) Pass: Check for unconnected objects [check ID: mathworks.iec61508.UnconnectedObjects]
------------------------------------------------------------
(4) Pass: Check for blocks not recommended for C/C++ production code deployment
[check ID: mathworks.iec61508.PCGSupport]
------------------------------------------------------------
Summary: Pass Warning Fail Not Run
2 2 0 0
============================================================
Systems passed: 0 of 1
Systems with warnings: 1 of 1
Systems failed: 0 of 1
Summary Report
To display the results in the Command Window after loading an object, use the
viewReport function.
View Results in Model Advisor Command-Line Summary Report
When you run the Model Advisor programmatically, a Summary Report link is displayed
in the Command Window. Clicking this link opens the Model Advisor Command-Line
Summary report. The following graphic is the report that the Model Advisor generates
for run_configuration.