However, Simulink does not let you close the model (using the X button) unless the model has not stopped running. So, I'm not sure if I have understood your question correctly.
Feed the velocity signal into aCompare to Zero block. The output of the block will change from 0 to 1 when the velocity becomes less or equal to zero. You can then connect the output of that block to theStop Simulation block.
Best Answer