Stop simulation if right signal.
The simulation is stopped if one of the elements in the input vectors is equal or greater than 1.
- Author
- Benjamin Scholz
- Date
- 11.09.2007 BSC: Initial version.
-
31.07.2013 KGA: Ported to FhSim 2.0.
Example configuration excerpt
<Lib
LibName = "fhsim_base"
SimObject = "Sink/Exit"
Name = "E"
NumInput = "2"
InPortWidth0 = "1"
InPortWidth1 = "2"
/>
...
<Connection
E.In0 = "Some.Out"
E.In1 = "0.1,0.99"
/>
Input Ports
Name | Width | Description |
In0, .. In<n-1> | InPortWidth0, .. InPortWidth<n-1> | Input vectors. |
Output Ports
This SimObject does not contain any outputs.
Configuration parameters
Name | Width | Description |
NumInput | 1 | Number of input vectors, \(n\). |
InPortWidth0, .. InPortWidth<n-1> | 1 | Port width of each input signal In0 , .. In\<n-1\> . |
Initial conditions
This SimObject does not contain any initial conditions.
Full example file
<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Sink/Exit"
Name="E"
NumInput="1"
InPortWidth0="1"
/>
<Lib
LibName="base"
SimObject="Src/Step"
Name="S"
StartValue="0"
StopValue="1"
StartTime="5"
StopTime="21"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
E.In0="S.Out"
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0:0.1:10, 21"
LogStates ="1"
stepsize ="0.1"
HMax="0.002"
HMin="0.00000001"
AbsTol="1e-3" RelTol="1e-3"
UseRSSNormInsteadOfInfNorm="0"
FileOutput="objects:all"
/>
</INTEGRATION>
</Contents>
This SimObject is referred to as Sink/Exit