Is it possible to use SiL/PiL manager directly in test harness model for SiL studies without generating code for main model?

When we are using SiL/PiL manager for SiL studies for test harness model, is it necessary to generate code for main model and then use SiL/PiL manager in test harness for SiL or we can directly use SiL/PiL manager in test harness and generate SiL code coverage report?

Réponses (1)

Hello,
On running SIL/PIL Manager (even from a test harness), it automatically generates and runs the code as part of the simulation.SIL and PIL Simulations - MATLAB & Simulink
You can directly use the test harness and SIL/PIL Manager to run SIL simulations and generate code coverage reports. SIL/PIL Manager - Verify generated code - MATLAB
The coverage is for generated code, not the SIL block itself. SIL Verification for a Subsystem - MATLAB & Simulink
So your workflow is valid directly from the test harness, no separate code generation step needed.
Hope this helps.

Catégories

Produits

Version

R2025b

Commenté :

le 17 Juin 2026

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by