Integrates signal.
The integrator performs the mathematical operation known as integration on the input signal.
- Author
- Karl-Johan Reite
-
Benjamin Scholz
- Date
- 13.08.2007 KJR: Initial version.
-
20.07.2011 KGA: Ported to FhSim 2.0.
-
25.07.2011 KGA: Added documentation.
Example configuration excerpt
<Lib
LibName = "fhsim_base"
SimObject = "Math/Integrator"
Name = "A"
PortWidth = "2"
/>
...
<Connection
A.In = "1,2.1"
/>
Input Ports
Name | Width | Description |
In | <PortWidth> | The input signal. |
Output Ports
Name | Width | Description |
Out | <PortWidth> | The integral of the input. |
Configuration parameters
Name | Width | Description |
PortWidth | 1 |
The number of elements in the input and output ports
|
Initial conditions
Name | Width | Description |
State | <PortWidth> | |
Full example file
<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Math/Integrator"
Name="A"
/>
<Lib
LibName="base"
SimObject="Src/Clock"
Name="S"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
A.In="S.SimTime"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0:1:5, 30"
LogStates ="1"
stepsize ="0"
HMax="0.002"
HMin="0.00000001"
AbsTol="1e-3" RelTol="1e-3"
UseRSSNormInsteadOfInfNorm="0"
FileOutput="object.A:port.Out"
/>
</INTEGRATION>
</Contents>
This SimObject is referred to as Math/Integrator