0
0
SimulinkHow-ToBeginner · 3 min read

How to Use Step Input in Simulink: Simple Guide

In Simulink, use the Step block from the Sources library to create a step input signal. Configure its parameters like Step time, Initial value, and Final value to define when and how the signal changes during simulation.
📐

Syntax

The Step block has key parameters:

  • Step time: The simulation time when the signal changes.
  • Initial value: The signal value before the step time.
  • Final value: The signal value after the step time.

These parameters control the shape of the step input signal.

text
Step block parameters:
- Step time: 1.0
- Initial value: 0
- Final value: 5
💻

Example

This example shows how to add a step input to a simple model and simulate it.

It demonstrates a step signal that changes from 0 to 5 at 1 second.

text
1. Open Simulink and create a new model.
2. Drag the <code>Step</code> block from the <code>Sources</code> library.
3. Set <code>Step time</code> to 1, <code>Initial value</code> to 0, and <code>Final value</code> to 5.
4. Connect the <code>Step</code> block output to a <code>Scope</code> block from the <code>Sinks</code> library.
5. Run the simulation for 2 seconds.
6. Open the <code>Scope</code> to see the step input signal rising at 1 second.
Output
Scope shows a flat line at 0 from 0 to 1 second, then jumps to 5 and stays constant until 2 seconds.
⚠️

Common Pitfalls

Common mistakes when using the Step block include:

  • Setting Step time outside the simulation time range, so the step never occurs.
  • Confusing Initial value and Final value, which reverses the expected signal behavior.
  • Not connecting the Step block output to any sink like Scope, so you cannot see the signal.
text
Wrong setup example:
- Step time: 5 (simulation runs only 2 seconds)
- Initial value: 5
- Final value: 0

Right setup example:
- Step time: 1
- Initial value: 0
- Final value: 5
📊

Quick Reference

ParameterDescriptionExample Value
Step timeTime when the step occurs1.0
Initial valueSignal value before step time0
Final valueSignal value after step time5

Key Takeaways

Use the Step block from Simulink Sources to create step input signals.
Set Step time within your simulation time to see the step effect.
Initial value is the signal before the step; Final value is after.
Connect the Step block to a Scope to visualize the signal.
Check parameters carefully to avoid no-change or reversed signals.