Main Content

SIL and Model Test Statuses

Metric ID

slcomp.sil.SilMtTestStatus

Description

This metric returns the status of the software-in-the-loop (SIL) and simulation (model testing) test results.

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 untested if the test only ran in normal mode or processor-in-the-loop (PIL) mode.

Collection

To collect data for this metric, use getMetrics with the metric ID slcomp.sil.SilMtTestStatus.

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 one of these outputs:

  • 0 — The test results are incomplete.

  • 1 — Only the SIL test results failed.

  • 2 — Only the model test results failed.

  • 3 — Both the SIL and model test results failed.

  • 4 — Both the SIL and model test results passed.

Compliance Thresholds

This metric does not have predefined thresholds.

See Also

|

Related Topics