Department of Electronics & Communication Engineering Laboratory Manual - R18 Ec362-Digital Signal Processing Lab
Department of Electronics & Communication Engineering Laboratory Manual - R18 Ec362-Digital Signal Processing Lab
DEPARTMENT OF
ELECTRONICS & COMMUNICATION ENGINEERING
LABORATORY MANUAL - R18
EC362-DIGITAL SIGNAL PROCESSING LAB
Course Objectives:
Course Outcomes:
List of Experiments
Experiment 1:
Generating a Waveform Signal and Acquiring a same Signal using myDAQ
Requirements:
1. LabVIEW 2017 or Later
2. myDAQ with MSP Connector
3. Wires
Procedure:
myDAQ Connection: Connect AO0 -> AI0(+) then AI0(-) -> AGND
VIVA Questions:
1. What does DAQ mean?
Data acquisition (DAQ) is the process of measuring an electrical or physical phenomenon such as
voltage, current, temperature, pressure, or sound with a computer. A DAQ system consists of
sensors, DAQ measurement hardware, and a computer with programmable software.
A complete data acquisition system consists of DAQ hardware, sensors and actuators, signal
conditioning hardware, and a computer running DAQ software. A sensor, which is a type of
transducer, is a device that converts a physical property into a corresponding electrical signal (e.g.,
strain gauge, thermistor).
The DAQ Assistant is an easy-to-use graphical interface for configuring measurement tasks and
channels and for customizing timing, triggering, and scales without programming.
All data acquisition systems consist of three essential elements – Sensor, Signal Conditioning, and
Analog-to-Digital Converter (ADC).
EC362 -Digital Signal Processing Lab
Since the intention is to collect data from a DAQ card (hardware) the Hardware Input and Output
folder has been chosen followed by DAQmx, Analog Measurements and voltage. DAXmx is the
method LabVIEW communicates with the hardware. It is a low level language which sits
between LabVIEW and the hardware.
NI-DAQmx is an NI instrument driver that controls every aspect of your DAQ system, including
signal conditioning, from configuration to programming in LabVIEW to low-level OS and device
control
Data acquisition (DAQ) is the process of measuring an event in terms of voltage, current, pressure,
temperature or sound. A DAQ system includes high-speed data acquisition measurement hardware
(a DAQ card or module), input devices such as sensors, and a computer or processor.
EC362 -Digital Signal Processing Lab
Experiment 2: Generating Multiple Waveform Signals and Acquiring a same Signal using
myDAQ
Requirements:
1. LabVIEW 2017 or Later
2. myDAQ with MSP Connector
3. Wires
Procedure:
1. Launch NI LabVIEW 2017 or Later
2. Press Ctrl+N for New VI and Toggle the window using Ctrl+T
3. For Generating a waveform Signal follow the below Steps
Right Click on Block Diagram-> Signal Processing-> Waveform
Generation->Basic Function Generator
Enter Frequency, Amplitude, Offset, Phase and Create Enum Control
for Signal Type (Sine, Square, Triangle and Sawtooth)
Based on the user Selection Signal type Waveform Will be Generated and Acquired
4. For Passing the Waveform Signal to myDAQ follow the below Steps
Right Click on Block Diagram->Measurement I/O-> NI DAQmx-> DAQAssistant
Place DAQ Assistant on Block Diagram then Generate Signal->Analog Output-
>Voltage->myDAQ 2-> Select AO0 then Finish
Set Generating Mode as Continuous Samples and Tap OK
5. For Acquiring the Same Signal follow the below Steps
EC362 -Digital Signal Processing Lab
.
Figure 2.1 FrontPanel
myDAQ Connection: Connect AO0 -> AI0(+) then AI0(-) -> AGND
EC362 -Digital Signal Processing Lab
Experiment3:
Audio Equalizer using myDAQ
Requirements:
1. NI LabVIEW 2017 or later
2. NI myDAQ
3. 3.5mm AUX Cable and Ear Phone
Procedure:
1. Launch LabVIEW 2017 or Later
2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To configure DAQ Assistant Follow these Steps
Right Click on Block diagram-> Measurement I/O-> NI DAQmx-> Select DAQAssistant
Place DAQ Assistant on Block Diagram then Select Acquire Signal-> Analog Input-
> Voltage->myDAQ 2-> Select Audio Input Left and Audio Input Right then Finish.
Select Acquisition mode as Continuous Sample and Set Samples to Read as 12k and Rate
as 32kHz
Select Voltage input as +2V and -2V for Both Channels
4. To remove Noise in the Acquired Signal use filtering techniques.
Right Click on Block Diagram-> Express-> Signal Analysis->Filter
5. Take 3 Filter Function with Low Filter with 400Hz as Cutoff Frequency, for 2nd filter as Band
Pass Filters Set Lower Cutoff frequency as 500 and Higher Cutoff Frequency as 2500 and
for 3rd filter select band pass filter with frequency range of 3000 to10000.
6. For Generate the Acquired signal.
Place DAQ Assistant on Block Diagram then Select Generate Signal-> Analog Output-
> Voltage->myDAQ 2-> Select Audio Output Left and Audio output Right then Finish.
Select Acquisition mode as Continuous Sample and Set Samples to Write as 100 and
Rate as 44.1kHz
Select Voltage input as +2V and -2V for Both Channels and Tap Ok
7. Connections: Connect AUX cable one end in Mobile to Audio IN
(myDAQ) Connect Ear phone in Audio Out(myDAQ)
EC362 -Digital Signal Processing Lab
VIVA Questions:
1. What is difference between bass and treble?
The treble is the highest sound in music while the bass is the lowest sound in music. The treble is
located on the line in the staff that is a space higher than the bass while the bass is located on the line in
the staff that is a space lower than the treble.
Bass and Treble is a two-band Equalizer. The Bass control is a low-shelf filter with the half gain
frequency at 250 Hz. The Treble control is a high-shelf filter with the half gain frequency at 4000 Hz.
All slider controls have a gain range of +/- 30 dB.
EC362 -Digital Signal Processing Lab
Equalization, or EQ for short, means boosting or reducing (attenuating) the levels of different
frequencies in a signal. The most basic type of equalization familiar to most people is the treble/bass
control on home audio equipment. The treble control adjusts high frequencies, the bass control adjusts
low frequencies.
EC362 -Digital Signal Processing Lab
Experiment 4:
Generating a Signal and adding Noise to the Signal and removing the noise using Filters
Requirements:
1. NI LabVIEW 2017 or Later
Procedure:
1. Launch LabVIEW 2017 or Later
2. Create a New VI by Pressing Ctrl+N and Toggle using Ctrl+T
3. To Generate Signal with Noise Select Simulate Signal with Add Noise from Block
Diagram-> Express-> Input-> SimulateSignal
4. To remove Noise in the Acquired Signal use filtering techniques.
1.1. Right Click on Block Diagram-> Express-> Signal Analysis-> Filter
5. Take Filter Function with Low Filter with 100Hz as Cutoff Frequency
Requirements
Procedure:
VIVA Questions:
3. What is the relation between power spectrum density and auto-correlation function?
Power spectrum density is basically Fourier transform of auto-correlation function of power signal. This
property is helpful for calculating power of any power signal.
the property is -
of signal at t=0.
If Rff is Real and Even then itsPower spectrum density( PSDf) also Real and Even .
sxx(w) = sxx(−w)
EC362 -Digital Signal Processing Lab
Requirements
Procedure:
VIVA Questions:
1. What is modulation?
Modulation is the process of changing any one parameter (amplitude, frequency or phase) of a relatively
high frequency carrier signal in proportion with the instantaneous value of the modulating signal or message
signal.
2. Define amplitude Modulation.
Amplitude Modulation is the process of changing the amplitude of a relatively high frequency carrier signal
in proportion with the instantaneous value of the modulating signal.
3. Define Modulation index and percent modulation for an AM wave.
Modulation index is a term used to describe the amount of amplitude change present in an AM waveform.
It is also called as coefficient of modulation.
Mathematically modulation index is m=Em/Ec
where m= Modulation coefficient,
Em = Peak change in the amplitude of the output waveform voltage.
Ec = Peak amplitude of the unmodulated carrier voltage.
4. Give the bandwidth of AM?
Bandwidth (B) of AM DSBFC is the difference between highest upper frequency and lowest lower side
frequency. fm(max) – maximum modulating signal frequency.
EC362 -Digital Signal Processing Lab
5. Give the expression for modulation index in terms of Vmax and Vmin.
m = Vmax – Vmin / Vmax + Vmin
EC362 -Digital Signal Processing Lab
Requirements
Procedure:
VIVA Questions:
1. What is the difference between coherent & non-coherent digital modulation techniques.
Coherent systems need carrier phase information at the receiver and they use matched filters to detect and
decide what data was sent , while non coherent systems do not need carrier phase information and use
methods like square law to recover the data.
2. What does amplitude shift keying mean?
Amplitude-shift keying (ASK) is a form of amplitude modulation that represents digital data as variations
in the amplitude of a carrier wave. In an ASK system, the binary symbol 1 is represented by transmitting
a fixed-amplitude carrier wave and fixed frequency for a bit duration of T seconds
3. What is meant by frequency shift keying?
Requirements
Procedure:
VIVA Questions:
1. What are the two methods used for the sectional convolution?
The two methods used for the sectional convolution are 1) Overlap-add method and 2) Overlap-save
method.
2. What is difference between correlation and convolution?
convolution is a technique to find the output of a system of impulse response h(n) for an input x(n) so
basically it is used to calculate the output of a system, while correlation is a process to find the degree of
similarity between two signals.
Convolution, for discrete-time sequences, is equivalent to polynomial multiplication which is not the same
as the term-by-term multiplication. ... The key point of Fourier analysis is that term-by-
term multiplication in one domain is the same as convolution in the other domain.
EC362 -Digital Signal Processing Lab
The circular convolution, also known as cyclic convolution, of two aperiodic functions (i.e. Schwartz
functions) occurs when one of them is convolved in the normal way with a periodic summation of the
other function. That situation arises in the context of the circular convolution theorem
Convolution sum and product of polynomials— The convolution sum is a fast way to find the coefficients
of the polynomial resulting from the multiplication of two polynomials
Experiment 10:
Design and Simulate a low pass filter having the following specifications: pass band
response=0.1dB, pass band frequency=1200Hz,Stop band attenuation=30dB,stop band
frequency=2200Hz,and sampling rate=8000Hz.
Requirements
Procedure:
12. Similarly connect the block diagram for IIR filter(But in the configuration dialog box select design
method as Butterworth)
VIVA Questions:
2. FIR filter
The IIR filters are of recursive type, whereby the present output sample depends on the present input,
past input samples and output samples. The FIR filters are of non recursive type, whereby the present
output sample depends on the present input sample and previous input samples.
2. Distinguish between FIR filters and IIR filters.
FIR filter These filters can be easily designed to have perfectly linear phase. FIR filters can be realized
recursively and non-recursively. Greater flexibility to control the shape of their magnitude response.
Errors due to round off noise are less severe in FIR filters, mainly because feedback is not used. IIR filter
These filters do not have linear phase. IIR filters are easily realized recursively. Less flexibility, usually
limited to specific kind of filters. The round off noise in IIR filters is more.