Instrumentation Failure error when generating coverage report for model containing S-function

3 views (last 30 days)
I'm using an S-function in my model and looking to generate a coverage report. When I proceed to generate the report, I see the following error message:
ERROR: <S-function file name>: File not included in Coverage Analysis due to instrumentation failure
Why do I get this error? 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Mar 2021
Edited: MathWorks Support Team on 14 May 2021
In the S-function source code, you may have declared a method without specifying a return type. The compiler used by the coverage report has more stringent checks than the one used to build the S-function, thus resulting in the coverage analysis failing to include the S-function in the report.
In general, if you see a similar error while attempting to include S-functions in a coverage report, please verify the S-function source code and ensure it is free of syntax and compiler errors.

More Answers (0)

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Products


Release

No release entered yet.

Community Treasure Hunt

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

Start Hunting!