주요 콘텐츠

Back-to-Back Test Status Distribution for PIL Mode

R2026b
Since R2026b

Metric ID

modeltesting.pil.TestResultAnalysis[slcomp.B2BTestStatusDistribution]

Description

This metric returns the distribution of back-to-back test result statuses for each unit by comparing, at each time step, the outputs of the model simulation and the outputs of the code executed in processor-in-the-loop (PIL) mode. The metric compares the normal mode and PIL mode test runs from baseline, equivalence, and simulation tests.

Use this metric to assess the status of back-to-back translation validation for PIL testing in the unit.

Supported Artifacts

This metric collects metric results for Units in the project. To control what the dashboard classifies as a unit, see Categorize Models in Hierarchy as Components or Units.

Collection

To collect data for this metric, execute the metric engine with the metric ID.

metric_engine = metric.Engine;
results = execute(metric_engine,"modeltesting.pil.TestResultAnalysis[slcomp.B2BTestStatusDistribution]")

View the metric result values.

results(1).Value

To collect all metrics in the modeltesting.pil.TestResultAnalysis group at once, use the group name with empty brackets.

results = execute(metric_engine,"modeltesting.pil.TestResultAnalysis[]")
Use the MetricID property to distinguish results from different metrics in the group.

Results

The metric returns a metric.Result object for each unit in the project.

The Value property returns a structure with these fields:

  • Total — Total number of back-to-back tests for the unit.

  • Passed — Number of back-to-back tests that passed.

  • Failed — Number of back-to-back tests that failed.

  • NotRun — Number of back-to-back tests that have not been run.

See Also

Objects

Functions

Topics