MATLAB: Run simulink until trigger

simulinktime

Hello,
I am looking for a way to run my simulink system until a certain trigger is initiated.
That is I want my simulation time to go on all the way until an event occurs, and then stop the simulation at that event.
Thanks in advance!

Best Answer

Use the "Stop Simulation" block in Simulink->Sinks