Running code inspector with a For Loop Iterator
Hello,
I have a model running with a For Iterator (to read an Input Array and write some of its datas to another one shorter array).
The model must go through both Model Advisor and Code Inspector to be embedded in the calculator.
As for the Model Advisor everything is passed and generated code is about 120 lines, however when I try to run the code inspector, it runs for more than 2.5hrs (on the inspection only) and I am forced to kill the Matlab task afterward because it stops running. Here is a screenshot of the model.
Here is what I tried:
include the "add" and the "unitDelaty" inside the referenced model => it creates an algebraic loop
add the triggered block within a referenced model => impossible as it contain an "assignement" block and therefore cannot be referenced.
Simplify the referenced model to reduce load capacity of the model containg.
I can provide the generated C code if necessary
Thank you,Hello,
I have a model running with a For Iterator (to read an Input Array and write some of its datas to another one shorter array).
The model must go through both Model Advisor and Code Inspector to be embedded in the calculator.
As for the Model Advisor everything is passed and generated code is about 120 lines, however when I try to run the code inspector, it runs for more than 2.5hrs (on the inspection only) and I am forced to kill the Matlab task afterward because it stops running. Here is a screenshot of the model.
Here is what I tried:
include the "add" and the "unitDelaty" inside the referenced model => it creates an algebraic loop
add the triggered block within a referenced model => impossible as it contain an "assignement" block and therefore cannot be referenced.
Simplify the referenced model to reduce load capacity of the model containg.
I can provide the generated C code if necessary
Thank you, Hello,
I have a model running with a For Iterator (to read an Input Array and write some of its datas to another one shorter array).
The model must go through both Model Advisor and Code Inspector to be embedded in the calculator.
As for the Model Advisor everything is passed and generated code is about 120 lines, however when I try to run the code inspector, it runs for more than 2.5hrs (on the inspection only) and I am forced to kill the Matlab task afterward because it stops running. Here is a screenshot of the model.
Here is what I tried:
include the "add" and the "unitDelaty" inside the referenced model => it creates an algebraic loop
add the triggered block within a referenced model => impossible as it contain an "assignement" block and therefore cannot be referenced.
Simplify the referenced model to reduce load capacity of the model containg.
I can provide the generated C code if necessary
Thank you, simulink, code generation, code inspector MATLAB Answers — New Questions