- First, check your model's configuration by going to Model Configuration Parameters > Code Generation and ensure the System target file is set to an ERT-based target.
- Next, verify that Embedded Coder is installed by typing ver in MATLAB. If it's not listed, you'll need to install and license it.
- After ensuring these prerequisites, switch your model to SIL/PIL mode by right-clicking on the model block, selecting C/C++ Code > SIL/PIL Simulation > Set Mode, and choosing SIL or PIL.
SIL and PIL simulation mode.
2 views (last 30 days)
Show older comments
Currenly i am working in block level simulink model verification and my test case running in "Normal" simulation mode. I want to generate code coverage report for the model/design simulation.
I read some where that SIL or PIL Simulation mode can support the model code coverage report based on applied inputs to model and generate code/model coverage report summary.
While i tried to run my simulation in SIL or PIL mode got the following compilation error
"It is either configured for a target that is not ERT-based, or (if the target is ERT-based) Embedded Coder is
not installed or licensed"
Can someone please explain the meaning of this error statement ?
How can i used my Normal mode level test suite/test_bench in SIL or PIL mode?
Is there any otherway to generate model coverage report for Normal mode simulation mode ?
0 Comments
Answers (1)
Sameer
on 3 Dec 2024
The error indicates a configuration or licensing issue with SIL or PIL modes in Simulink.
Generating Coverage in Normal Mode
If you prefer to use Normal mode, you can generate coverage reports with Simulink Coverage. Ensure Simulink Coverage is installed and licensed. Then, enable coverage by opening your model, going to Analysis > Coverage > Settings, and enabling the desired coverage options. Finally, run your simulation in Normal mode to generate a coverage report.
Hope this helps!
0 Comments
See Also
Categories
Find more on Verification 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!