MATLAB Answers

Simulink code generation model global reset

1 view (last 30 days)
RuslanD on 5 Dec 2019
Simulink code generation produces multiple entry point functions, e.g. <void model_initialize(void)> and <void model_step(void)>. As the initialize function should not be used more than once (also interested to know specific reasons and potential consequences to use initialize as reset), is there a proper way to reset the model to its initial conditions considering the code is running on a real time system? Any suggestions on how to safely return to a fresh start are very welcome.


Sign in to comment.

Answers (0)