SDA Exp.4
SDA Exp.4
2. Task to be done:
Design a virtual function generator using case structure adding different case statements
of a) sine b) sawtooth c) triangular d) square signals.
Add knobs of amplitude, frequency, and phase control blocks in the front panel to control the
working of the function generator.
5. Theme/Interests definition:
----N/A----
7. Observations/Discussions:
The comparison between for-loop, while-loop and case structure are illustrated below: -
Function generator: A function generator is a specific form of signal generator that is able
to generate waveforms with common shapes. It can create repetitive waveforms with a
number of common shapes. In addition to producing sine waves, function generators may
typically produce other repetitive waveforms including sawtooth, triangular waveforms,
square waves, and pulses. Another feature included on many function generators is the
ability to add a DC offset.
----N/A----
----N/A----
1. Sine wave:
2. Triangle wave:
3. Square Wave:
4. sawtooth:
Learning outcomes (What I have learnt):
Evaluation Grid: