MATLAB Answers

RuslanD
0

Simulink code generation model global reset

Asked by RuslanD
on 5 Dec 2019 at 0:55
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.

  0 Comments

Sign in to comment.

0 Answers