Code Inspector shows the code is Partially processed/ Unable to process
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 9 de Jul. de 2018
Respondida: MathWorks Support Team
el 14 de Dic. de 2018
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.
Respuesta aceptada
MathWorks Support Team
el 9 de Jul. de 2018
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulink Code Inspector en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!