From 09:00 PM Friday, August 7 - 10:30 AM CST Saturday, August 8, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

stepsignal (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: waveform generation

Requires: MathScript RT Module

Syntax

u = stepsignal(t)

u = stepsignal(t, t0)

Legacy Name: stepfun

Description

Generates a unit step waveform defined as 0.0 for t < t0 and as 1.0 for t >= t0.

Examples

Inputs

Name Description
t Specifies the times at which to compute the unit step waveform. t is a vector.
t0 Specifies the transition time of the step function. t0 is a real, double-precision scalar. The default is 0.0.

Outputs

Name Description
u Returns the step wave at times t with the step transition at t0.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

X = -1:0.1:1;
Y = stepsignal(X);
Y2 = stepsignal(X, 0.4);
plot(X, Y, X, Y2);

Related Topics

gensignal
sawtooth
square

WAS THIS ARTICLE HELPFUL?

Not Helpful