Stopper Block

stopperHelp

Description

The Stopper block outputs the simulation stop time when a simulation replication ends normally. It can also be used to stop the current simulation replication with an input stopping signal.

In many simulation applications, the actual end time of the simulation replication is often not known ahead of time. However, certain processing steps (such as data collection and special-purposed computation) might need to occur right before the end of the simulation. To facilitate the modeling of this type of simulation task, the Stopper block also warns about the upcoming end of a simulation replication. When the end of the simulation replication is near, the number output port OutWarnTime delivers the current simulation time of the warning. This value can then be converted to a Boolean signal (for example) to trigger data collection before the actual end of the simulation.

If the simulation ends abnormally, either because of errors or user interference, the Stopper block does not provide the stop or warning time values.

Fixed Ports

InSignal

Input Boolean port that stops the current simulation replication with a true input value. A false input value is ignored.

OutWarnTime

Output number port for the simulation time when a warning of simulation ending occurs.

OutStopTime

Output number port for the simulation time when the current replication ends.