Skip to content

Instantly share code, notes, and snippets.

@thorade
Created June 13, 2017 08:42
Show Gist options
  • Save thorade/67d8af44fd9cf2f3c95f843a0fd322ab to your computer and use it in GitHub Desktop.
Save thorade/67d8af44fd9cf2f3c95f843a0fd322ab to your computer and use it in GitHub Desktop.
a Modlica model that uses inner/outer, for testing syntax highlighting
model UniformNoise
"Demonstrates the most simple usage of the UniformNoise block"
extends Modelica.Icons.Example;
output Real uniformNoise2_y = uniformNoise2.y;
inner Modelica.Blocks.Noise.GlobalSeed globalSeed
annotation (Placement(transformation(extent={{-20,40},{0,60}})));
Modelica.Blocks.Noise.UniformNoise uniformNoise1(
samplePeriod=0.02,
y_min=-1,
y_max=3) annotation (Placement(transformation(extent={{-60,20},{-40,40}})));
Modelica.Blocks.Noise.UniformNoise uniformNoise2(
samplePeriod=0.02, y_min=-1, y_max=3,
useAutomaticLocalSeed=false,
fixedLocalSeed=10)
annotation (Placement(transformation(extent={{-60,-20},{-40,0}})));
end UniformNoise;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment