blockMultipleRamps
Generate multiple ramp signals
Extends from Modelica.Blocks.Interfaces.SO (Single Output continuous control block).
Information
This model extends the Ramp included in the Modelica Standard Library (MSL). The Real output y the MultipleRamps model is superpsition by several ramp signals:
If on element of the parameter duration is set to 0.0, the limiting case of a step signal is achieved.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | n | 1 | Number of ramps |
| Real[n] | height | ones(n) | Height of ramps |
| Modelica.Units.SI.Time[n] | duration | Duration of ramp (= 0.0 gives a Step) | |
| Real | offset | 0 | Offset of output signal |
| Modelica.Units.SI.Time[n] | startTime | zeros(n) | Output = offset for time < startTime |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) | Connector of Real output signal |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Ramp[n] | ramp | ||
| Modelica.Blocks.Math.Sum | sum1 |