⏫

Step

Sources
Run the live example Free · no sign-up · runs in your browser

Generates a step function (Heaviside step signal) that abruptly transitions from an initial value to a final value at a designated simulation timestamp. Serves as the universal benchmark excitation in control engineering, widely deployed for evaluating transient response performance metrics (including rise time trt_r, peak overshoot MpM_p, settling time tst_s, and steady-state error esse_{ss}), evaluating closed-loop stability margins, and simulating instantaneous load disturbances.

Mathematical Model

The output trajectory is defined using the time-shifted Heaviside step operator H(t−tstep)H(t - t_{\text{step}}):

y(t)=y0+(y1−y0)⋅H(t−tstep)={y0,if t<tstepy1,if t≥tstepy(t) = y_0 + (y_1 - y_0) \cdot H(t - t_{\text{step}}) = \begin{cases} y_0, & \text{if } t < t_{\text{step}} \\ y_1, & \text{if } t \ge t_{\text{step}} \end{cases}

where y0y_0 represents initialValue, y1y_1 represents finalValue, and tstept_{\text{step}} represents stepTime.

In the Laplace domain (ss), the transform of the delayed step signal is:

Y(s)=y0s+y1−y0se−ststepY(s) = \frac{y_0}{s} + \frac{y_1 - y_0}{s} e^{-s t_{\text{step}}}

For the canonical standard unit step starting at t=0t = 0 (y0=0,y1=1,tstep=0y_0 = 0, y_1 = 1, t_{\text{step}} = 0), the transform simplifies to:

Y(s)=1sY(s) = \frac{1}{s}

Inputs & Outputs

Direction ID Label Type Status
← Out out Output number Output

Parameters

Parameters Label Type Default Description
stepTime Step Time number 1
initialValue Initial Value number 0
finalValue Final Value number 1

Usage Examples

Example 1: Closed-Loop Transient Response Benchmarking

To measure the natural frequency ωn\omega_n and damping ratio ζ\zeta of a second-order feedback loop, connect a Step block with stepTime = 1.0 s, initialValue = 0.0, and finalValue = 1.0 to the setpoint input. Feeding the resulting plant response into an automated metrics block extracts peak overshoot percentage (MpM_p), 10%−90%10\%-90\% rise time, and 2%2\% settling time.

Example 2: Sudden Mechanical Load Disturbance Rejection

In servomotor drive development, a motor runs at steady rated speed until a sudden physical cutting load engages at t=2.5t = 2.5 s. Wiring a Step block with stepTime = 2.5 s, initialValue = 0.0 N·m, and finalValue = 15.0 N·m into the motor torque summing junction simulates a sudden external load impact, allowing engineers to verify speed dip recovery times.

Remarks & Best Practices

  • Zero-Crossing Discontinuity Handling: The step transition at t=tstept = t_{\text{step}} introduces a derivative jump, automatically signaling the simulation engine's adaptive solvers (such as RK45) to refine local step sizes and capture the transition without numerical overshoot.
  • Pure Source Block: Requires zero input connections; evaluates purely as an explicit function of elapsed simulation time.
  • Arbitrary Directional Steps: finalValue can be configured lower than initialValue to model step drops (e.g. electrical power supply dropouts or emergency braking demands).
  • Broadband Spectral Excitation: Because the frequency spectrum of a step decays as 1/ω1/\omega, the sharp edge excites all high-frequency dynamics and resonant poles simultaneously.

Related Components

  • Ramp: Linearly increasing signal source with configurable slope.
  • PulseGenerator: Periodic square-wave pulse train source.
  • Constant: Injects fixed numeric values without time transitions.
  • Switch: Multiplexes between two continuous signals based on logic conditions.