# EndSimulation

This block sets the time for a simulation to end.

## Library

ActivationOperations

## Description

This block sets the time for a simulation to end. If the simulation has not ended by the time specified in the block, the block ends the simulation by forcing the current time to jump to the final simulation time of the model.

## Parameters

NameLabelDescriptionData TypeValid Values

tf

Simulation end time

Simulation end time.

Scalar

NameValueDescription

always active

no

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no