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!