Engee documentation

Constant Ramp

A linear signal generator with varying length depending on the input values.

blockType: Constant Ramp

Path in the library:

/Signal Operations/Signal Operations/Constant Ramp

Description

Block Constant Ramp generates a linearly varying signal:

Where — the slope specified by the scalar parameter Slope, and — intersection with the axis , set by the scalar parameter Offset.

For an undirected vector at the Input, — this is the length of the input vector. For -dimensional array of input signals, the length of the output linear signal is equal to the length of the input signal with the value set by the parameter Ramp length equals number of or Dimension.

The output of y is always an undirected vector.

Ports

Input

Port_1 — input signal
scalar | vector | matrix | multidimensional array

The input signal used to generate a linear signal is given in the form of a scalar, vector, matrix, or - dimensional array.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool

Output

Port_1 — output signal
vector

The output signal is specified as an undirected vector. The block determines the length of the output signal based on the length of the input signal and the parameter Ramp length equals number of or Dimension.

Data types: Float64

Support for complex numbers: Yes

Parameters

Ramp length equals number of — the value for determining the length of the linear signal
Rows (by default) | Columns | Elements in specified dimension

Options for selecting values for determining the length of a linear signal:

  • `Rows' — the length of the sequence is equal to the number of rows.

  • `Columns' — the length of the sequence is equal to the number of columns.

  • `Elements in specified dimension' — the length of the sequence is set in the Dimension parameter.

Dimension — length of the pass sequence:q[<br>] 1 (by default) | positive integer

Specify the length of the sequence.

Dependencies

To use this parameter, set the Ramp length equals number of parameter to `Elements in specified dimension'.

Slope — slope of the pass signal:q[<br>]1 (by default) | scalar

The slope of the signal in the form of a real scalar.

Offset — the intersection point of the linear signal with the y pass axis:q[<br>] 0 (by default) | scalar

The intersection point of the linear signal with the y axis, specified as a real scalar.