setAnalysisRoot
Class: slmetric.Engine
Namespace: slmetric
(To be removed) Specify model or subsystem for metric analysis
The Metrics Dashboard user interface, metricdashboard function, slmetric package API, and corresponding customizations will be removed in a future release. For more information, see Migrating from Metrics Dashboard to Model Maintainability Dashboard.
Syntax
Description
Specify the model or subsystem for slmetric.Engine
metric object analysis.
setAnalysisRoot(
specifies the metric analysis root.metric_engine,'Root',root)
For an slmetric.Engine object, before you set the
ModelReferencesSimulationMode and
AnalyzeLibraries properties, specify the
setAnalysisRoot method. The
setAnalysisRoot method persists between model runs. If you
change these property values and then apply the setAnalysisRoot
method, the original values override the new values. For example, for one run,
suppose you set these
values:
openExample('simulink_general/VanDerPolOscillatorExample'); metric_engine = slmetric.Engine(); setAnalysisRoot(metric_engine,'Root','vdp'); metric_engine.ModelReferencesSimulationMode = 'AllModes'; metric_engine.AnalyzeLibraries = true;
ModelReferencesSimulationMode or the
AnalyzeLibraries properties, be sure to first specify the
setAnalysisroot
method:openExample('simulink_general/VanDerPolOscillatorExample'); metric_engine = slmetric.Engine(); setAnalysisRoot(metric_engine,'Root','vdp'); metric_engine.AnalyzeModelReferences = false; metric_engine.AnalyzeLibraries = false;
setAnalysisRoot(
specifies the metric analysis root by using metric_engine,'Root',root,Name,Value)Name,Value
pairs.