FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
SimObj-Switch_in.xml
1<Contents>
2 <OBJECTS>
3 <Lib
4 LibName="base"
5 SimObject="Signal/Switch"
6 Name="Gt"
7 SwitchType="gt"
8 />
9 <Lib
10 LibName="base"
11 SimObject="Signal/Switch"
12 Name="Lt"
13 SwitchType="lt"
14 />
15 <Lib
16 LibName="base"
17 SimObject="Signal/Switch"
18 Name="Eq"
19 SwitchType="eq"
20 />
21 <Lib
22 LibName="base"
23 SimObject="Signal/Switch"
24 Name="Ne"
25 SwitchType="ne"
26 />
27 <Lib
28 LibName="base"
29 SimObject="Src/Pulse"
30 Name="Pulse"
31 Amplitude="1"
32 Period="1"
33 Width="0.5"
34 Delay="0"
35 Bias="0"
36 />
37 </OBJECTS>
38
39 <INTERCONNECTIONS>
40 <Connection
41 Gt.In1="1"
42 Gt.In2="Pulse.Out"
43 Gt.In3="3"
44 Lt.In1="1"
45 Lt.In2="Pulse.Out"
46 Lt.In3="3"
47 Eq.In1="1"
48 Eq.In2="Pulse.Out"
49 Eq.In3="3"
50 Ne.In1="1"
51 Ne.In2="Pulse.Out"
52 Ne.In3="3"
53 />
54 </INTERCONNECTIONS>
55
56 <INITIALIZATION>
57 <InitialCondition
58 />
59 </INITIALIZATION>
60
61 <SIMULATION>
62 <Timing TStart="0" TEnd="3.0"/>
63 <Integrator Method="RK45_i" NumCores="1" LogStates="1" UseRSSNorm="0">
64 <StepControl StepMax="0.002" StepMin="0.00000001" AbsTol="1e-3" RelTol="1e-3"/>
65 </Integrator>
66
67 </SIMULATION>
68
69<OBSERVERS>
70 <FileOutput TOutput="0, 0:0.5:2, 30" Select="objects:all"/>
71 </OBSERVERS>
72</Contents>