diff --git a/Modelica/Blocks/Sources.mo b/Modelica/Blocks/Sources.mo
index 8fbd5f270a..99b77f17d7 100644
--- a/Modelica/Blocks/Sources.mo
+++ b/Modelica/Blocks/Sources.mo
@@ -244,13 +244,13 @@ The Real output y is a step signal:
block Ramp "Generate ramp signal"
parameter Real height=1 "Height of ramp"
annotation(Dialog(groupImage="modelica://Modelica/Resources/Images/Blocks/Sources/Ramp.png"));
- parameter SI.Time duration(min=0.0, start=2)
- "Duration of ramp (= 0.0 gives a Step)";
+ parameter SI.Time duration(min=Constants.small, start=2)
+ "Duration of ramp";
extends Interfaces.SignalSource;
equation
- y = offset + (if time < startTime then 0 else if time < (startTime +
- duration) then (time - startTime)*height/duration else height);
+ y = smooth(0, offset + (if time < startTime then 0 else if time < (startTime +
+ duration) then (time - startTime)*height/duration else height));
annotation (
Icon(coordinateSystem(
preserveAspectRatio=true,
@@ -281,10 +281,6 @@ The Real output y is a ramp signal:
-
-
-If parameter duration is set to 0.0, the limiting case of a Step signal is achieved. -