Why do I get "File not included in Coverage Analysis due to instrumentation failure" error for model.c file ?

5 views (last 30 days)
I am trying to generate a Code Coverage report for my Simulink model using the SIL/PIL Manager app. When I look at the Generated Report, it displays this error below the report heading:
model.c File not included in Coverage Analysis due to instrumentation failure
And the report does not contain any coverage information. How do I resolve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Mar 2021
This may be due to a lack of write permissions in the directory where the model is, or not having a supported compiler installed.
Try the following troubleshooting steps:
  1. Ensure that you have write-access to the folder where the model is located.
  2. Try launching MATLAB as an admin (right click and run as admin) to see if the issue still persists.
  3. Install the MinGW compiler if it is not already installed, according to the instructions here:https://www.mathworks.com/matlabcentral/answers/313290-how-do-i-install-mingw-for-use-in-matlab

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!