SIL Test Harness is not getting created.

4 visualizaciones (últimos 30 días)
Anshul
Anshul el 11 de Sept. de 2024
Respondida: Abhinav Aravindan el 13 de Sept. de 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.

Respuestas (1)

Abhinav Aravindan
Abhinav Aravindan el 13 de Sept. de 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!

Categorías

Más información sobre Test Model Components en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by