Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

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


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit