SIL Test Harness is not getting created.
11 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Abhinav Aravindan
2024-9-13
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Test Model Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!