within ; model EMsystem_cosim_white_noise Modelica.Blocks.Interfaces.RealOutput AMPLITUDE2 annotation (Placement(transformation(extent={{40,20},{60,40}}))); Modelica.Blocks.Interfaces.RealInput VELOCITY2 annotation (Placement(transformation(extent={{140,173},{100,131}}))); Modelica.Electrical.Analog.Basic.Resistor resistor(R=5) annotation (Placement(transformation(extent={{-78,106},{-58,126}}))); Modelica.Electrical.Analog.Basic.Inductor inductor(L=5e-5) annotation (Placement(transformation(extent={{-42,106},{-22,126}}))); Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage annotation (Placement(transformation(extent={{-10,106},{10,126}}))); Modelica.Electrical.Analog.Basic.Ground ground annotation (Placement(transformation(extent={{-110,30},{-90,50}}))); Modelica.Electrical.Analog.Sensors.CurrentSensor currentSensor annotation (Placement(transformation(extent={{0,56},{-20,76}}))); Modelica.Blocks.Math.Gain gain(k=3.14159) annotation (Placement( transformation( extent={{-10,-10},{10,10}}, rotation=180, origin={22,152}))); Modelica.Blocks.Math.Gain gain1(k=3.14159) annotation (Placement( transformation( extent={{10,-10},{-10,10}}, rotation=180, origin={16,30}))); Modelica.Electrical.Analog.Basic.Resistor resistor1( R=5) annotation (Placement(transformation(extent={{-78,-52},{-58,-32}}))); Modelica.Electrical.Analog.Basic.Inductor inductor1( L=5e-5) annotation (Placement(transformation(extent={{-42,-52},{-22,-32}}))); Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage1 annotation (Placement(transformation(extent={{-10,-52},{10,-32}}))); Modelica.Electrical.Analog.Basic.Ground ground1 annotation (Placement(transformation(extent={{-110,-128},{-90,-108}}))); Modelica.Electrical.Analog.Sensors.CurrentSensor currentSensor1 annotation (Placement(transformation(extent={{0,-102},{-20,-82}}))); Modelica.Blocks.Math.Gain gain2( k=3.14159) annotation (Placement( transformation( extent={{-10,-10},{10,10}}, rotation=180, origin={22,-6}))); Modelica.Blocks.Math.Gain gain3(k=3.14159) annotation (Placement( transformation( extent={{10,-10},{-10,10}}, rotation=180, origin={16,-128}))); Modelica.Blocks.Interfaces.RealOutput AMPLITUDE1 annotation (Placement(transformation(extent={{40,-138},{60,-118}}))); Modelica.Blocks.Interfaces.RealInput VELOCITY1 annotation (Placement(transformation(extent={{140,15},{100,-27}}))); Modelica.Blocks.Math.Gain gain4(k=1e-3) annotation (Placement(transformation( extent={{-10,-10},{10,10}}, rotation=180, origin={68,152}))); Modelica.Blocks.Math.Gain gain5(k=1e-3) annotation (Placement(transformation( extent={{-10,-10},{10,10}}, rotation=180, origin={70,-6}))); Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage2 annotation ( Placement(transformation( extent={{-10,10},{10,-10}}, rotation=-90, origin={-100,90}))); Modelica.Blocks.Interfaces.RealInput VOLTAGE annotation (Placement( transformation( extent={{-20,-20},{20,20}}, rotation=0, origin={-174,0}))); Modelica.Electrical.Analog.Sources.SignalVoltage signalVoltage3 annotation ( Placement(transformation( extent={{-10,10},{10,-10}}, rotation=-90, origin={-100,-70}))); equation connect(resistor.n, inductor.p) annotation (Line( points={{-58,116},{-42,116}}, color={0,0,255}, smooth=Smooth.None)); connect(inductor.n, signalVoltage.p) annotation (Line( points={{-22,116},{-10,116}}, color={0,0,255}, smooth=Smooth.None)); connect(signalVoltage.n, currentSensor.p) annotation (Line( points={{10,116},{46,116},{46,66},{0,66}}, color={0,0,255}, smooth=Smooth.None)); connect(gain.y, signalVoltage.v) annotation (Line( points={{11,152},{0,152},{0,123}}, color={0,0,127}, smooth=Smooth.None)); connect(currentSensor.i, gain1.u) annotation (Line( points={{-10,56},{-10,30},{4,30}}, color={0,0,127}, smooth=Smooth.None)); connect(gain1.y, AMPLITUDE2) annotation (Line( points={{27,30},{50,30}}, color={0,0,127}, smooth=Smooth.None)); connect(resistor1.n, inductor1.p) annotation (Line( points={{-58,-42},{-42,-42}}, color={0,0,255}, smooth=Smooth.None)); connect(inductor1.n, signalVoltage1.p) annotation (Line( points={{-22,-42},{-10,-42}}, color={0,0,255}, smooth=Smooth.None)); connect(signalVoltage1.n, currentSensor1.p) annotation (Line( points={{10,-42},{46,-42},{46,-92},{0,-92}}, color={0,0,255}, smooth=Smooth.None)); connect(gain2.y, signalVoltage1.v) annotation (Line( points={{11,-6},{0,-6},{0,-35}}, color={0,0,127}, smooth=Smooth.None)); connect(currentSensor1.i, gain3.u) annotation (Line( points={{-10,-102},{-10,-128},{4,-128}}, color={0,0,127}, smooth=Smooth.None)); connect(gain3.y, AMPLITUDE1) annotation (Line( points={{27,-128},{50,-128}}, color={0,0,127}, smooth=Smooth.None)); connect(VELOCITY2, gain4.u) annotation (Line( points={{120,152},{80,152}}, color={0,0,127}, smooth=Smooth.None)); connect(gain4.y, gain.u) annotation (Line( points={{57,152},{34,152}}, color={0,0,127}, smooth=Smooth.None)); connect(VELOCITY1, gain5.u) annotation (Line( points={{120,-6},{82,-6}}, color={0,0,127}, smooth=Smooth.None)); connect(gain5.y, gain2.u) annotation (Line( points={{59,-6},{34,-6}}, color={0,0,127}, smooth=Smooth.None)); connect(resistor.p, signalVoltage2.p) annotation (Line( points={{-78,116},{-100,116},{-100,100}}, color={0,0,255}, smooth=Smooth.None)); connect(signalVoltage2.n, ground.p) annotation (Line( points={{-100,80},{-100,50}}, color={0,0,255}, smooth=Smooth.None)); connect(currentSensor.n, ground.p) annotation (Line( points={{-20,66},{-100,66},{-100,50}}, color={0,0,255}, smooth=Smooth.None)); connect(VOLTAGE, signalVoltage2.v) annotation (Line( points={{-174,0},{-128,0},{-128,90},{-107,90}}, color={0,0,127}, smooth=Smooth.None)); connect(resistor1.p, signalVoltage3.p) annotation (Line( points={{-78,-42},{-100,-42},{-100,-60}}, color={0,0,255}, smooth=Smooth.None)); connect(signalVoltage3.n, ground1.p) annotation (Line( points={{-100,-80},{-100,-108}}, color={0,0,255}, smooth=Smooth.None)); connect(currentSensor1.n, ground1.p) annotation (Line( points={{-20,-92},{-100,-92},{-100,-108}}, color={0,0,255}, smooth=Smooth.None)); connect(VOLTAGE, signalVoltage3.v) annotation (Line( points={{-174,0},{-128,0},{-128,-70},{-107,-70}}, color={0,0,127}, smooth=Smooth.None)); annotation (uses(Modelica(version="3.2.1")), Diagram(coordinateSystem( preserveAspectRatio=false,extent={{-100,-100},{100,100}}), graphics)); end EMsystem_cosim_white_noise;