getMetrics
R2026bAccess metric results
Syntax
Description
returns metric results for the specified results = getMetrics(metricEngine,metricIDs)metric.Engine object for the
metrics that you specify in metricIDs. To collect metric results for
the metric.Engine, use the execute function. Then,
access the results by using getMetrics.
There is also a function getMetrics (Fixed-Point Designer)
in the Fixed-Point Designer™ documentation.
specifies options using one or more name-value arguments in addition to the input arguments
in previous syntaxes. For example, you can specify the results = getMetrics(metricEngine,metricIDs,Name=Value)ScopeId to get
metric results for a specific unit or component in your project.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Alternative Functionality
App
You can also view metric results by using the dashboard user interface.
For the model design metrics, use the Model Design Dashboard. For more information, see Model Design Metrics.
For the model maintainability metrics, use the Model Maintainability dashboard. For more information, see Monitor Design Complexity Using Model Maintainability Dashboard.
For the model testing metrics, use the Model Testing Dashboard. For more information, see Explore Status and Quality of Testing Activities Using Model Testing Dashboard.
For the code testing metrics, use the SIL Code Testing or PIL Code Testing dashboard. For more information see, View Status of Code Testing Activities for Software Units in Project.