Skip to content

Commit

Permalink
Added globalSeed to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
akloeckner committed Jun 25, 2014
1 parent 3a84684 commit 328ac20
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Noise/Examples/Actuator/ActuatorPRNGNoise.mo
Expand Up @@ -2,6 +2,8 @@ within Noise.Examples.Actuator;
model ActuatorPRNGNoise
extends Actuator(controller(redeclare Noise.Examples.Actuator.Parts.PRNG
noiseModel));
inner GlobalSeed globalSeed
annotation (Placement(transformation(extent={{60,60},{80,80}})));
annotation (
experiment(
StopTime=8,
Expand Down
2 changes: 2 additions & 0 deletions Noise/Examples/Analysis.mo
Expand Up @@ -17,6 +17,8 @@ model Analysis "Shows how to analyze a noise signal"
annotation (Placement(transformation(extent={{20,-40},{40,-20}})));
Noise.Utilities.Analysis.Corr corr
annotation (Placement(transformation(extent={{20,-80},{40,-60}})));
inner Noise.GlobalSeed globalSeed
annotation (Placement(transformation(extent={{60,60},{80,80}})));
equation
connect(prng.y, mu.u) annotation (Line(
points={{-59,50},{18,50}},
Expand Down
2 changes: 2 additions & 0 deletions Noise/Examples/ComparePDF.mo
Expand Up @@ -24,6 +24,8 @@ model ComparePDF "Compares different PSDs"
Noise.PRNG DiscreteDistribution(useSampleBasedMethods=false, redeclare
function PDF = Noise.PDF.PDF_Discrete)
annotation (Placement(transformation(extent={{20,30},{40,50}})));
inner Noise.GlobalSeed globalSeed
annotation (Placement(transformation(extent={{70,70},{90,90}})));
annotation (
experiment(StopTime=100, Interval=0.001),
Documentation(revisions="<html>
Expand Down
2 changes: 2 additions & 0 deletions Noise/Examples/ComparePSD.mo
Expand Up @@ -18,6 +18,8 @@ model ComparePSD "Compares different PSDs"
useSampleBasedMethods=false,
redeclare function PDF = Noise.PDF.PDF_Uniform (interval={-1,1}))
annotation (Placement(transformation(extent={{-40,-50},{-20,-30}})));
inner Noise.GlobalSeed globalSeed
annotation (Placement(transformation(extent={{60,60},{80,80}})));
annotation (
experiment(StopTime=100, Interval=0.001),
Documentation(revisions="<html>
Expand Down
2 changes: 2 additions & 0 deletions Noise/Examples/CompareRNG.mo
Expand Up @@ -21,6 +21,8 @@ model CompareRNG
blockType=Parts.Modelica_LinearSystems2.Controller.Types.BlockType.Discrete,
sampleTime=0.01)
annotation (Placement(transformation(extent={{-80,70},{-60,90}})));
inner GlobalSeed globalSeed
annotation (Placement(transformation(extent={{60,68},{80,88}})));
annotation (Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{100,100}}),
graphics={Rectangle(
Expand Down
2 changes: 2 additions & 0 deletions Noise/Examples/SystemNoiseInteraction/PRNGNoise.mo
Expand Up @@ -18,6 +18,8 @@ model PRNGNoise "Shows the modelling of a noisy sensor"
n=50,
initType=Modelica.Blocks.Types.Init.InitialState)
annotation (Placement(transformation(extent={{60,-10},{80,10}})));
inner GlobalSeed globalSeed
annotation (Placement(transformation(extent={{-70,-10},{-50,10}})));
equation
connect(prng.y, criticalDamping.u) annotation (Line(
points={{-17,0},{58,0}},
Expand Down

0 comments on commit 328ac20

Please sign in to comment.