RESPITE: The CASA Toolkit Page: Documentation: Block Library Index:SawtoothWave


SawtoothWave

SawtoothWave is a periodic signal generator block that generates a regular sawtooth wave function. There are 5 controlling parameters: SAMPLE_RATE, DURATION, FREQ, AMP, and PHASE.

SAMPLE_RATE is in units of samples per second, DURATION is measured in seconds, and FREQ in cycles per second. The sawtooth wave has maximum and minimum values of +AMP and -AMP. The initial PHASE is specified in radians where the one complete cycle of the wave has 2 Pi radians (see diagram below).

Inputs Meaning Sample 1-D frame $\ge$2-D frame
No inputs

Outputs Meaning
out1 generated signal

Parameters Type Default Meaning
SAMPLE_RATE Float - Number of samples per second
DURATION Float - Duration in seconds of signal to generate
FREQ Float - The sawtooth wave frequency
AMP Float 1.0 The sawtooth wave amplitude
PHASE Float 0.0 The initial phase in radians

Figure:
\begin{figure}
\begin{center}
\psfig {figure=graphics/sawtoothwave.eps,width=0.9\columnwidth}\end{center}\vspace{-4mm}
\end{figure}



Documentation for CTKv1.1.4 - Last modified: Thu Jun 28 14:52:48 BST 2001