Ramp
A linearly increasing signal after a start time.
- signal
- Gradara equations
- 1 port
- 2 parameters
rampLibrarySourcesDescription
Outputs zero until Start time, then rises in a straight line at Slope per second without limit.
Example
Signal sources The signal sources side by side: step, ramp, sine, pulse, and clock, plus a constant.
ConstantStepRampSinePulseClock
Ports
Outputs 1
-
y
Output signal: 0 before Start time, then Slope · (time − Start time).
Parameters
-
Slope
slope1 1/sRate of rise, in units per second. Negative values ramp down.
-
Start time
startTime0 s≥ 0
Time the ramp starts, in seconds. 0 or more.
Equations
Modelica
y = 0 for time < startTime y = slope · (time − startTime) for time ≥ startTime
Implementation
The block’s Modelica model
y = if time < startTime then 0 else slope*(time-startTime);
Assumptions and limitations
- The ramp never levels off. To stop it at a value, follow it with Saturation.
Used in
These larger examples use it too. Open them from Examples in the app.
- EV drivetrain
- 480 VAC → 24 VDC flyback
See also
Select a block in Gradara and press F1 to open its page offline.