FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Signal list

Piecewise constant signal list with transition times.

+ Collaboration diagram for Signal list:

A picewise constant signal is emitted from the output port. The signal value and transition times are defined by the parameters

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Src/SignalList"
Name = "const"
Values = "1,0,2"
Times = "0,20,30"
/>

Input Ports

This function has no inputs.

Output Ports

Name Width Description
Out <PortWidth> The output signal

Configuration parameters

Name Width Description
Values <N> The output signal values, one scalar per time point. With PortWidth > 1 each scalar is broadcast to all elements of the output at its time point.
Times <N> The output signal time points. N is taken from the size of this parameter.
PortWidth 1 Width of the output port (Default: 1).

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName = "base"
SimObject = "Src/SignalList"
Name = "SL"
Values = "1,2,3,4"
Times = "0,5,10,15"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<SIMULATION>
<Timing TStart="0" TEnd="30"/>
<Integrator Method="RK45_i" NumCores="1" LogStates="1" UseRSSNorm="0">
<StepControl StepMax="0.002" StepMin="0.00000001" AbsTol="1e-3" RelTol="1e-3"/>
</Integrator>
</SIMULATION>
</Contents>

This SimObject is referred to as Src/SignalList