FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
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>
<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:1:10, 100" Select="objects:all"/>
</OBSERVERS>
</Contents>

This SimObject is referred to as Src/Chirpsignal