Skip to content

Commit

Permalink
Add Evaluate=true.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jun 20, 2023
1 parent e5a8ea1 commit 996ffde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Modelica/Blocks/Sources.mo
Expand Up @@ -294,7 +294,8 @@ If parameter duration is set to 0.0, the limiting case of a Step signal is achie
annotation(Dialog(groupImage="modelica://Modelica/Resources/Images/Blocks/Sources/Sine.png"));
parameter SI.Frequency f(start=1) "Frequency of sine wave";
parameter SI.Angle phase=0 "Phase of sine wave";
parameter Boolean continuous = false "Make output continuous by starting at offset + amplitude*sin(phase)";
parameter Boolean continuous = false "Make output continuous by starting at offset + amplitude*sin(phase)"
annotation(Evaluate=true);
extends Interfaces.SignalSource;
equation
if continuous then
Expand Down Expand Up @@ -346,7 +347,8 @@ The Real output y is a sine signal:
annotation(Dialog(groupImage="modelica://Modelica/Resources/Images/Blocks/Sources/Cosine.png"));
parameter SI.Frequency f(start=1) "Frequency of cosine wave";
parameter SI.Angle phase=0 "Phase of cosine wave";
parameter Boolean continuous = false "Make output continuous by starting at offset + amplitude*cos(phase)";
parameter Boolean continuous = false "Make output continuous by starting at offset + amplitude*cos(phase)"
annotation(Evaluate=true);
extends Interfaces.SignalSource;
equation
if continuous then
Expand Down Expand Up @@ -605,7 +607,8 @@ and that the parameter <code>startTime</code> is omitted since the voltage can b
parameter Real amplitude=1 "Amplitude of sine wave"
annotation(Dialog(groupImage="modelica://Modelica/Resources/Images/Blocks/Sources/Sinc.png"));
parameter SI.Frequency f(start=1) "Frequency of sine wave";
parameter Boolean continuous = false "Make output (continuously) differentiable by starting at offset + amplitude rather than just offset";
parameter Boolean continuous = false "Make output (continuously) differentiable by starting at offset + amplitude rather than just offset"
annotation(Evaluate=true);
extends Interfaces.SignalSource;
protected
SI.Angle x=2*pi*f*(time - startTime);
Expand Down

0 comments on commit 996ffde

Please sign in to comment.