| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
Sinks
The Stop Simulation block stops the simulation when the input is nonzero.
The simulation completes the current time step before terminating. If the block input is a vector, any nonzero vector element causes the simulation to stop.
You can use this block with the Relational Operator block to control when the simulation stops. For example, this model stops the simulation when the input signal reaches 10.

You cannot use the Stop Simulation block to pause the simulation. To create a block that pauses the simulation, see Creating Pause Blocks in the Simulink documentation for more information.
The Stop Simulation block accepts real signals of type double or Boolean.

Sample Time | Inherited from driving block |
Dimensionalized | Yes |
![]() | Step | Subsystem, Atomic Subsystem, Nonvirtual Subsystem, CodeReuse Subsystem | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |