Documentation

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

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. For more information, see Data Types Supported by Simulink in the Simulink® documentation.

Parameters

Slope

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

Start time

Specify the time at which the block begins generating the signal. The default is 0.

Initial output

Specify the initial value of the output 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 in the Simulink documentation.

Examples

The following Simulink examples show how to use the Ramp block:

Characteristics

Data Types

Double

Sample Time

Inherited from downstream block

Multidimensional Signals

No

Variable-Size Signals

No

Zero-Crossing Detection

Yes

Code Generation

Yes

Introduced before R2006a


Was this topic helpful?