blockRamp
Generate ramp signal
Extends from Interfaces.PartialClockedSO (Block with clocked single output Real signal).
Information
The block is similar to the block in Modelica.Blocks.Sources.Ramp, but adapted to work in clocked partitions (by internal sampling of the continuous time variable).
The Real output y is a ramp signal:
Example
See model Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | height | 1 | Height of ramp |
| SI.Time | duration | Durations of ramp | |
| Real | offset | 0 | Offset of output signal |
| SI.Time | startTime | 0 | Output = offset for time < startTime |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealOutput | y (from PartialClockedSO) | Connector of clocked, Real output signal |