Simulink Reference    
Stop Simulation

Stop the simulation when the input is nonzero

Library

Sinks

Description


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 in conjunction with the Relational Operator block to control when the simulation stops. For example, this model stops the simulation when the input signal reaches 10.

Data Type Support

A Stop Simulation block accepts real signals of type double or boolean.

Dialog Box

Characteristics

Sample Time
Inherited from driving block
Dimensionalized
Yes


  Step Subsystem, Atomic Subsystem