Skip to content

Commit

Permalink
applied an equivalent change to Sampler (as to ZeroOrderHold)
Browse files Browse the repository at this point in the history
  • Loading branch information
AHaumer committed Sep 22, 2022
1 parent 023175c commit 05783cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modelica/Blocks/Discrete.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ package Discrete
extends Modelica.Icons.Package;

block Sampler "Ideal sampling of continuous signals"
extends Interfaces.DiscreteSISO;
extends Interfaces.DiscreteSISO(y(start=0, fixed=true));

equation
when {sampleTrigger, initial()} then
y = u;
y = if time>=startTime then u else pre(y);
end when;
annotation (
Icon(
Expand Down

0 comments on commit 05783cf

Please sign in to comment.