stepsignal (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助