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

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? 

 채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 3월 4일
편집: MathWorks Support Team 2021년 5월 14일
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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Collect Coverage for Models에 대해 자세히 알아보기

제품

릴리스

아직 릴리스를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by