Skip to content

Instantly share code, notes, and snippets.

@tbeu

tbeu/M.mo Secret

Created October 21, 2016 09:59
Show Gist options
  • Save tbeu/c2643d8f8a11b4a64ffc9f6ff92b96ee to your computer and use it in GitHub Desktop.
Save tbeu/c2643d8f8a11b4a64ffc9f6ff92b96ee to your computer and use it in GitHub Desktop.
model M
Modelica.Blocks.Math.Gain gain1(k=combiTimeTable1.t_min) annotation(Placement(transformation(extent={{-105,55},{-85,75}})));
Modelica.Blocks.Sources.Clock clock1 annotation(Placement(transformation(extent={{-140,55},{-120,75}})));
Modelica.Blocks.Sources.CombiTimeTable combiTimeTable1(table=[0.5,1;1,2]) annotation(Placement(transformation(extent={{-70,55},{-50,75}})));
equation
connect(clock1.y,gain1.u) annotation(Line(
points={{-119,65},{-114,65},{-112,65},{-107,65}},
color={0,0,127}));
annotation(uses(Modelica(version="3.2.1")));
end M;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment