Skip to content

Commit

Permalink
Updated example with new FMUs generated from new models, with correct…
Browse files Browse the repository at this point in the history
… voltage sign.
  • Loading branch information
Dag Brück committed Feb 16, 2024
1 parent b785c2f commit c8d39b8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 17 deletions.
Binary file modified examples/DC-Motor2023.ssp
Binary file not shown.
5 changes: 1 addition & 4 deletions examples/DC-Motor2023/DC-motor-mechanic.ssd
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@
<ssv:Parameter name="Voltage_step.offset" description="Offset of output signal y">
<ssv:Real value="0.0"/>
</ssv:Parameter>
<ssv:Parameter name="gain.k" description="Gain value multiplied with input signal">
<ssv:Real value="1.0" unit="1"/>
</ssv:Parameter>
<ssv:Parameter name="MLoad.k" description="Constant output value">
<ssv:Real value="-1.0" unit="N.m"/>
<ssv:Real value="1.0" unit="N.m"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.startTime" description="Output y = offset for time &lt; startTime">
<ssv:Real value="0.0" unit="s"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,7 @@
<ssv:Real value="1.0" unit="N.m"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.height" description="Height of step">
<ssv:Real value="-48.0" unit="V"/>
</ssv:Parameter>
<ssv:Parameter name="gain.k" description="Gain value multiplied with input signal">
<ssv:Real value="1.0" unit="1"/>
<ssv:Real value="48.0" unit="V"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.startTime" description="Output y = offset for time &lt; startTime">
<ssv:Real value="0.0" unit="s"/>
Expand Down
12 changes: 3 additions & 9 deletions examples/DC-Motor2023/SystemStructure.ssd
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,14 @@
<ssv:ParameterSet version="1.0" name="Parameter-Set">
<ssv:Parameters>
<ssv:Parameter name="Voltage_step.height" description="Height of step">
<ssv:Real value="-48.0" unit="V"/>
<ssv:Real value="48.0" unit="V"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.offset" description="Offset of output signal y">
<ssv:Real value="0.0"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.startTime" description="Output y = offset for time &lt; startTime">
<ssv:Real value="0.0" unit="s"/>
</ssv:Parameter>
<ssv:Parameter name="gain.k" description="Gain value multiplied with input signal">
<ssv:Real value="1.0" unit="1"/>
</ssv:Parameter>
<ssv:Parameter name="MLoad.k" description="Constant output value">
<ssv:Real value="1.0" unit="N.m"/>
</ssv:Parameter>
Expand Down Expand Up @@ -470,14 +467,11 @@
<ssv:Real value="0.0"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.height" description="Height of step">
<ssv:Real value="-48.0" unit="V"/>
<ssv:Real value="48.0" unit="V"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.startTime" description="Output y = offset for time &lt; startTime">
<ssv:Real value="0.0" unit="s"/>
</ssv:Parameter>
<ssv:Parameter name="gain.k" description="Gain value multiplied with input signal">
<ssv:Real value="1.0" unit="1"/>
</ssv:Parameter>
<ssv:Parameter name="MLoad.k" description="Constant output value">
<ssv:Real value="1.0" unit="N.m"/>
</ssv:Parameter>
Expand Down Expand Up @@ -514,7 +508,7 @@
<ssv:Real value="1.0" unit="N.m"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.height" description="Height of step">
<ssv:Real value="-48.0" unit="V"/>
<ssv:Real value="48.0" unit="V"/>
</ssv:Parameter>
<ssv:Parameter name="Voltage_step.startTime" description="Output y = offset for time &lt; startTime">
<ssv:Real value="0.0" unit="s"/>
Expand Down
Binary file modified examples/DC-Motor2023/resources/edrive_mass.fmu
Binary file not shown.
Binary file modified examples/DC-Motor2023/resources/emachine_model.fmu
Binary file not shown.
Binary file modified examples/DC-Motor2023/resources/stimuli_model.fmu
Binary file not shown.

0 comments on commit c8d39b8

Please sign in to comment.