Main Content

PIL Test Status

Since R2023a

Metric ID

slcomp.pil.TestStatus

Description

This metric returns the status of the processor-in-the-loop (PIL) test result. A PIL test can have a status of either passed, failed, disabled, not run, or untested.

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.

Computation Details

The metric:

  • Includes only tests in the project that test the model or subsystems in the unit for which you collect metric data.

  • Shows tests as not run if the test only ran in normal mode or software-in-the-loop (SIL) mode.

Collection

To collect data for this metric, use getMetrics with the metric ID slcomp.pil.TestStatus.

Collecting data for this metric loads the model file and test result files and requires a Simulink® Test™ license.

Results

For this metric, instances of metric.Result return Value as a struct with a Status field of either:

  • 'Failed' — The test ran and returned a fail result.

  • 'Passed' — The test ran and returned a pass result.

  • 'Disabled' — The test is intentionally excluded from execution and will not run.

  • 'Not run' — The test has not run.

  • 'Untested' — The test ran, but no verification was performed. This occurs if no verify statements or other criteria were specified, or if the criteria were specified but not executed.

Compliance Thresholds

This metric does not have predefined thresholds.

See Also

Objects

Functions

Topics