Ramp - Generate constantly increasing or decreasing signal

Library

Sources

Description

The Ramp block generates a signal that starts at a specified time and value and changes by a specified rate. The block's Slope, Start time, and Initial output parameters determine the characteristics of the output signal. All must have the same dimensions after scalar expansion.

Data Type Support

The Ramp block outputs 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 online Simulink® documentation for details.

Slope

The rate of change of the generated signal. The default is 1.

Start time

The time at which the signal begins to be generated. The default is 0.

Initial output

The initial value of the signal. The default is 0.

Interpret vector parameters as 1-D

If you select this option and the other parameters are one-row or one-column matrices, after scalar expansion, the block outputs a 1-D signal (vector). Otherwise, the output dimensionality is the same as that of the other parameters. See Determining the Output Dimensions of Source Blocks.

Characteristics

Sample Time

Inherited from driven block

Scalar Expansion

Yes

Dimensionalized

Yes

Zero Crossing

Yes

  


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