SIL Test Harness is not getting created.

4 Ansichten (letzte 30 Tage)
Anshul
Anshul am 11 Sep. 2024
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.

Antworten (1)

Abhinav Aravindan
Abhinav Aravindan am 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!

Kategorien

Mehr zu Test Model Components finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by