From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

# Step Function (G Dataflow)

Generates the step function for any real number.

A real number.

## step(x)

Value of the step function for the given value of x.

## Algorithm for Calculating the Step Function

The following equation defines the step function.

$\mathrm{step}\left(x\right)=\left\{\begin{array}{cc}0& \text{if}\text{x}<0\\ 1& \text{elsewhere}\end{array}$

The following illustration shows the graph for step(x) + spike(x) in the interval (-4.0, 4.0).

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application