Engee documentation

Ramp

A generator of a linearly increasing or decreasing signal.

ramp

Description

The Ramp block generates a signal that starts at a specified time from a specified value and changes at a specified rate. The Slope, Start time and Initial output parameters define the characteristics of the output signal. All of them must have the same value (after scalars expansion).

Ports

Output

Port_1 - output signal
scalar | vector | matrix

Output signal specified by the parameters Slope, Start time and Initial output.

Data types: Float64.

Parameters

Slope - signal slope
1 (by default) | scalar | vector | matrix

The rate of change of the generated signal.

Usage in program code

Block parameter

slope

Values

scalar

By default

1

Start time - the moment when the signal change starts
0.0 (By default) | scalar

Sets the time at which the unit starts generating the changing signal.

Usage in program code

Block parameter

start

Values

scalar

By default

0.0

Initial output - initial output value
0.0 (by default) | scalar | vector | matrix

The initial value of the output signal.

Usage in program code

Block parameter

InitialOutput

Values

scalar

By default

0.0

Additional options

C code generation: Yes