- Ensure that you have write-access to the folder where the model is located.
- Try launching MATLAB as an admin (right click and run as admin) to see if the issue still persists.
- 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
Why do I get "File not included in Coverage Analysis due to instrumentation failure" error for model.c file ?
5 views (last 30 days)
Show older comments
MathWorks Support Team
on 4 Mar 2021
Answered: MathWorks Support Team
on 9 Mar 2021
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
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:
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler 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!