Code Inspector shows the code is Partially processed/ Unable to process
조회 수: 12 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 7월 9일
답변: MathWorks Support Team
2018년 12월 14일
The Matlab Function block is listed as a block that supports code inspector, however I am having trouble getting a model consisting of a Matlab function block to pass Code Inspector. I can get CI to show as warning instead of failed, but I need some help getting it to pass. The model consists of some inports, outports, a constant block and a Matlab function block. Code Inspector seems to either partially process or not process all lines of the Matlab function code.
채택된 답변
MathWorks Support Team
2018년 7월 9일
For the Code Inspector to pass correctly, we need to make sure that the model is compatible for the inspection process. We can do this using the option 'Check this model' in the Simulink Code Inspector Dialog box. If the model passes all the checks in the Model Advisor, only then the model is compatible for code inspection. If the model is not compatible, the report would show the warnings 'Unable to process' or 'Partially processed'.
At my end, the check 'Check usage of Code in MATLAB Functions' shows a warning 'unsupported MATLAB code was found in MATLAB functions'. In the warning message, it also shows which parts of the MATLAB Function are not compatible. I would recommend modify the MATLAB Function in the model such that it is compatible with the Code Inspection.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Code Inspector에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!