I would like to know if it is possible to make a message appear after the end of a simulation. This message should tell which "stop simulation" block (among the many) made the simulation stop.
Thanks in advance!
Best Answer
Of course it is possible. Let me give you a starting point about it. Go toFile->Model Properties->Model Properties and go toStopFcn. Write the following line:
warndlg('Simulation ended with success')
Everytime the simulation ends with success, this message will pop up. Assume that simulation time is 10 seconds and you can add an if statement of simulation time like
Best Answer