Main Content

SIL Test Status

Metric ID



This metric returns the status of the software-in-the-loop (SIL) test result. A SIL test can have a status of either:

  • Passed

  • Failed

  • Disabled

  • Untested

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.


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

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


For this metric, instances of metric.Result return Value as one of these integer outputs:

  • 0 — The test failed.

  • 1 — The test passed.

  • 2 — The test is disabled.

  • 3 — The test is untested.

Compliance Thresholds

This metric does not have predefined thresholds.

See Also


Related Topics