Marine systems simulation
Chirp signal

Generate normally distributed Chirpsignal numbers.

+ Collaboration diagram for Chirp signal:

A chirp signal is a periodic signal (i.e sinusoid) with a frequency that changes continuously with time. This specific function generates a chirpsignal with a linearly increasing frequency.

A chirp function with a linearly increasing frequency.
Author
Benjamin Scholz
Karl Gunnar Aarsæther
Date
11.09.2007 BSC: Initial version.
19.07.2011 KGA: Updated to FhSim 2.0 and documented

Example configuration excerpt

<Lib
LibName = "fhsim_base"
SimObject = "Src/Chirpsignal"
Name = "chirp"
PortWidth = "1"
StartFrequencyHz = "1"
StopFrequencyHz = "10"
TargetTime = "12"
/>

Input Ports

This function has no inputs.

Output Ports

Name Width Description
Out <PortWidth> The output signal
OutDot <PortWidth> The derivative of the output signal

Configuration parameters

Name Width Description
PortWidth 1 The number of elements in the signal.
StartFrequencyHz <PortWidth> The initial frequency of the signal (Hz)
StartFrequencyRads <PortWidth> The initial frequency of the signal (rad)
StopFrequencyHz <PortWidth>

The final frequency reached at the specified target time. [Hz]

StopFrequencyRads <PortWidth> The initial frequency of the signal (rad)
TargetTime <PortWidth>

The time when the signal reaches the final frequency [sec]

Initial conditions

There are no initial conditions for this function.

Full example file

<Contents>
<OBJECTS>
<Lib
LibName="base"
SimObject="Src/Chirpsignal"
Name="A"
StartFrequencyHz="0"
StopFrequencyHz="30"
TargetTime="30"
/>
</OBJECTS>
<INTERCONNECTIONS>
<Connection
/>
</INTERCONNECTIONS>
<INITIALIZATION>
<InitialCondition
/>
</INITIALIZATION>
<INTEGRATION>
<Engine
IntegratorMethod="2"
NumCores="1"
TOutput="0, 0:1:10, 100"
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/Chirpsignal