Created
June 13, 2017 08:42
-
-
Save thorade/67d8af44fd9cf2f3c95f843a0fd322ab to your computer and use it in GitHub Desktop.
a Modlica model that uses inner/outer, for testing syntax highlighting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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