Is it possible to use SiL/PiL manager directly in test harness model for SiL studies without generating code for main model?
Show older comments
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?
Answers (1)
Isha
on 16 Jun 2026
0 votes
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.
1 Comment
Aneeshsingh
on 17 Jun 2026
Categories
Find more on Test Execution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!