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

rectpulse (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

c = rectpulse (a)

c = rectpulse (a, b)

Legacy Name: rectpuls

Description

Generates a rectangular wave that consists of zeros and ones. If b is the width of the rectangular pulse, the wave is 1 in the interval [-b/2, b/2] and 0 elsewhere.

Examples

Inputs

Name Description
a Specifies the sampling time. a is a real array.
b Specifies the width of the rectangle. b is a positive number. The default is 1.

Outputs

Name Description
c Returns the sampled rectangle.

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.02:1;
Y = rectpulse(X, 1);
plot(X, Y)

Related Topics

chirp
dirichlet
gaussmonopulse
gausspulse
pulsetrain
sawtooth
sinc
square
tripulse
vco


 

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