Ramp

signal.ramp

Rises in a straight line from 0 at time t0 to k at time t0 + T, then holds k.

Ports

NameDomainDirection
ysignalout

Parameters

NameUnitDefaultRangeDescription
k11Final value
t0s0Start of the ramp
Ts10 to ∞Duration of the ramp

Equations

y = if time < t0 then 0 else if time < t0 + T then k * (time - t0) / T else k