Ramp
Generate ramp signal
Description
Equations
Connections
Parameters
The Ramp component generates a continuous, real, ramp signal.
The boolean parameter Smooth corners selects whether the corners are smoothed, the smoothness parameter, which can be varied from 0 to 1, determine the smoothness. If smoothness is greater than 0, the output signal has a continuous derivative. The smoothing interval is equal to the smoothness factor times half the ramp time.
If Smooth corners is false, the output signal is
y=offset+height⁢{0t≤T0t−T0Trt≤T0+Tr1otherwise
If Smooth corners is true, it is
y=offset+height⁢{0t≤T0t−T0Tr2⁢2S⁢2−St≤T0+S⁢Tr212+t−T0−Tr2Tr⁢22−St≤T0+Tr−S⁢Tr21−t−T0−TrTr2⁢2S⁢2−St≤T0+Tr1otherwise
with
S=min⁡1,max⁡0,smoothnessandt=time
Name
Modelica ID
y
Real output signal
Default
Units
height
1
Height of ramp
Tr
s
Durations of ramp
duration
Smooth corners
false
True means enable the smoothness factor
smoothCorners
smoothness
Smoothness factor (0: sharpest, 1: smoothest)
offset
0
Offset of output signal
T0
Output = offset for time < startTime
startTime
See Also
Real Sources
Signal Blocks
Signal Sources
Download Help Document