Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Stop Simulation - Stop simulation when 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 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.

Data Type Support

The Stop Simulation block accepts real signals of type double or Boolean.

Parameters and Dialog Box

Characteristics

Sample Time

Inherited from driving block

Dimensionalized

Yes

  


Related Products & Applications

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