Signal Source

Signal generator: generates a variety of waveforms.

Supports an output of type complex, float, int, and short

Parameters
(R): Run-time adjustable


 * Sample Rate (R)
 * default: samp_rate


 * Waveform (R)
 * options: [Constant, Sine, Cosine, Square, Triangle, Saw Tooth]
 * For selection with a variable, the following values should be used:

constant = 100 sine = 101 cosine = 102 square = 103 triangle = 104 sawtooth = 105


 * Frequency (R)
 * frequency of the waveform (default: 1000)


 * Amplitude (R)
 * amplitude of the output (default: 1)


 * Offset (R)
 * offset from zero (default: 0)


 * Initial Phase (Radians) (R)
 * default: 0

Messages
The 'freq' message port has been  in favor of the 'cmd' message port.

The 'cmd' message port accepts message pairs.
 * 'freq' . float value
 * 'ampl' . float value
 * 'phase' . float value
 * 'offset' . float value

Example Flowgraph
This flowgraph is for version 3.9+.



Example Output
Types of Waveforms:

Cosine (complex):



Constant:



Square:



Triangle:



Sawtooth:



Source Files

 * C++ files
 * TODO


 * Header files
 * TODO


 * Public header files
 * TODO


 * Block definition
 * TODO