Step
SourcesGenerates 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 , peak overshoot , settling time , and steady-state error ), evaluating closed-loop stability margins, and simulating instantaneous load disturbances.
Mathematical Model
The output trajectory is defined using the time-shifted Heaviside step operator :
where represents initialValue, represents finalValue, and represents stepTime.
In the Laplace domain (), the transform of the delayed step signal is:
For the canonical standard unit step starting at (), the transform simplifies to:
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 and damping ratio 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 (), rise time, and 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 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 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:
finalValuecan be configured lower thaninitialValueto 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 , 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.