FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Constant

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>
<SIMULATION>
<Timing TStart="0" TEnd="11.0"/>
<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>
<OBSERVERS>
<FileOutput TOutput="0, 0, 5, 30" Select="objects:all"/>
</OBSERVERS>
</Contents>

This SimObject is referred to as Src/Constant