I have a MATLAB/Simulink software which is converted to C code, to be applied as an embedded application.
Inside this Simulink model I have a few stateflow with function call charts. These subsystems refer to some base workspace parameters to do their calculations, as follows:
Whenever I try to simulate this model, stimulating the inputs and reading the outputs, I get the following 'glitch' - the workspace defined variable 'multiplies', and the model simulation crashes because these new parameters have no defined values:
If I try to run the model again, more clones are created (4, 5 ,6 ...).
Do anyone has any clue on this?
Thanks!