SIL Test Harness is not getting created.
10 views (last 30 days)
Show older comments
Hello everyone,
I am trying to create SIL test Harness for a subsystem.
i followed "https://in.mathworks.com/help/sltest/ug/silpil-verification-for-a-subsystem.html", and tried to create test harness.
i have used model setting according to the example provided in the above link.
The issue is test harness is not getting created , i am getting the below error.
Error : 'Software-in-the-loop (SIL)' and 'Processor-in-the-loop (PIL)' verification modes require the 'Generate code only' option on the code generation target to be off. Please uncheck this option and try again.
If i change the verification mode to "Generate code only", test harness is getting created.
my aim is to perform SIL testing, using SIL test harness.
Any help to resolve this would be greatly appreciated.
0 Comments
Answers (1)
Abhinav Aravindan
on 13 Sep 2024
Hi Anshul
The "Generate code only" option in "Configuration Parameters > Code Generation > Build Process" is unchecked by default in the mentioned example.
The "Verification Mode" setting in "Test Harness" has three options: "Normal," "Software-in-the-Loop (SIL)," and "Processor-in-the-Loop (PIL)." Enabling the "Generate code only" option in "Configuration Parameters" does not create an executable program and instructs the code generator to stop the build process after generating the code and hence the SIL simulation cannot be executed resulting in the error.
Please find below the relevant documentation for your reference
Hope this answers your question!
0 Comments
See Also
Categories
Find more on Test Model Components 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!