Marine systems simulation

Constant value signal.

+ Collaboration diagram for Constant:

A constant signal emitted on the outout port. The width of the output port is derived from the with of the provided value.

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Src/Constant"
Name = "const"
Value = "1,0,1"
/>

Input Ports

This function has no inputs.

Output Ports

Name Width Description
Out <PortWidth> The output signal

Configuration parameters

Name Width Description
Value <PortWidth> The output signal value. The size of the value determines the size of the output signal

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Src/Constant"
Name="C"
Value="33"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0, 5, 30"
LogStates ="1"
stepsize ="0"
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 Src/Constant