Ramp

This block generates a signal that starts at a specified time and value and increases by a specified rate.

    Ramp

Library

Activate/SignalGenerators

Description

The Ramp block generates a signal that starts at a specified time and value and changes by a specified rate (slope).

The block's Slope, Start time and Initial output parameters determine the characteristics of the output signal.

Slope, Start Time and Initial Output parameters can be either scalar or vectors (generates multiple signals).

Parameters

Ramp_0

NameLabelDescriptionData TypeValid Values

slope

Slope

The rate of change for the signal. Can be a scalar or a vector. Default value: 1.

Matrix

startt

Start time

The start time, when the signal begins to follow the slope. Can be a scalar or a vector. Default value: 0.

Matrix

initout

Initial output

Initial value of the signal (before the slope starts). Can be a scalar or a vector. Default value: 0.

Matrix

zc

Apply zero-crossing

Turn on zero crossing detection.

Scalar

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Advanced Properties

NameValueDescription

always active

yes

direct-feedthrough

no

zero-crossing

yes

Zero-crossing depends on the block parameters.

mode

no

continuous-time state

no

discrete-time state

no

See Also