Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Repeating Sequence - Generate arbitrarily shaped periodic signal

Library

Sources

Description

The Repeating Sequence block outputs a periodic scalar signal having a waveform that you specify. You can specify any waveform, using the Time values and Output values parameters. The Time values parameter specifies a vector of sample times. The Output values parameter specifies a vector of signal amplitudes at the corresponding sample times. Together, the two parameters specify a sampling of the output waveform at points measured from the beginning of the interval over which the waveform repeats (the period of the signal). By default, the Time values and Output values parameters are both set to [0 2]. This default setting specifies a sawtooth waveform that repeats every 2 seconds from the start of the simulation and has a maximum amplitude of 2. The Repeating Sequence block uses linear interpolation to compute the value of the waveform between the sample points you specify.

Data Type Support

The Repeating Sequence block outputs real signals of type double.

Parameters and Dialog Box

Opening this dialog box causes a running simulation to pause. See Changing Source Block Parameters During Simulation in the Simulink documentation for details.

Time values

A vector of monotonically increasing time values. The default is [0 2].

Output values

A vector of output values. Each element corresponds to the time value in the same column. The default is [0 2].

Characteristics

Sample Time

Continuous

Scalar Expansion

No

Dimensionalized

No

Zero-Crossing Detection

No

See Also

Repeating Sequence Interpolated, Repeating Sequence Stair

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS