Professional Documents
Culture Documents
Lab Rubrics Generalized FINAL
Lab Rubrics Generalized FINAL
Lab Rubrics Generalized FINAL
Digital Signal
Processing
EE-325
Lab Manual
2. Clothing
When handling dangerous substances, wear gloves, laboratory coats, and safety shield
or glasses. Shorts and sandals should not be worn in the lab at any time. Shoes are
required when working on the machine shops
If you have long hair and loose clothes, then make sure that it is tied back or
confined.
Keep the work area clear of all materials except those needed for your work.
3. Disposal
Students are responsible for the proper disposal of used material if any inappropriate
containers.
4. Equipment Failure
If a piece of equipment faces while being used, report it immediately to the lab
engineer/assistant. Never try to fix the problem yourself because you could harm
yourself and others.
If leaving a lab unattended, turn off all ignition sources and lock the doors.
Clean up your work area before leaving.
Wash hands before leaving the lab and before eating.
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
5. Electricity
Obtain permission by the safety coordinator before operating any high voltage
equipment.
Maintain an unobstructed access to all electrical panels.
Avoid using extension cords whenever possible.
Never, ever modify or otherwise change any high voltage equipment.
Before attracting the power supply to your setup make sure there no ‘’live’’ wires
which can be touched.
When attaching a high voltage power supply ALWAYS switch off the supply.
6. Fire
If a person’s clothing catches on fire, he/she needs help.
Prevent him/her from running.
Make him/her lie down and smother the flame by rolling, wrapping with lab coats,
blankets, towels, etc.
Never turn a carbon dioxide extinguisher on a person.
If a fire breaks out, (if time allows) turn off all burners and remove solvents, place the
chemical and equipment safely to the nearest possible table/bench, exit the building
calmly.
If you do not use the fire extinguisher, leave the room immediately to a safer place
possible outside. There is a carbon dioxide extinguisher in the building and the
position and operation of these should be known.
Point the extinguisher at the base of the flames.
Very small fires can be put out with a damp towel by smothering.
Only after the safety of all is assured the matter of the extinguisher the fire is
considered.
Because a few seconds delay can result in very serious injury, Laboratory staff will guide
you on what to do and how to exit during the case of such an emergency.
8. In Case of emergency
Report the location of the emergency; give your name, telephone number, and
building and floor number.
Report the nature of the emergency whether an explosion has occurred and whether
there has been a chemical or electrical fire.
RESCUE: 1122
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
submission
deadline.
The result and The result and The result and Unable to submit the
conclusion are stated conclusion are conclusion are lab report.
Data and reflect the complete stated and reflect stated but reflect
2 Presentation knowledge of the acceptable little of experiment
(CLO 4) experiment. Eachstep is knowledge ofthe detail and not
(C3) fully explained. experiment. Each properly explained.
step is somehow
explained.
(Lab Viva)
Sr. Performance Exemplary Satisfactory Unsatisfactory
No. Indicator (2) (1) (0)
(CLO 4)
(C3)
Level of Demonstration of full knowledge At least with content No grasp of the information.
understanding of the subject with explanations and able to elaborate No knowledge of the subject
of the learned and elaboration and explain to some matter. No questions are
2 skill degree. answered. No interpretation
made
(CLO 1)
(P3)
Understanding Has an excellent ability to Has a good ability to Has a poor ability to identify
different types identify and differentiate identify and and differentiate between
of lab between different types of lab differentiate between different types of lab
equipment/tool equipment/tools/software different types of lab equipment/tools/software
3
s/software’s equipment/tools/
Software
(CLO 2)
(P3)
Is very confident and explains Is confident to some Doesn’t have the confidence
Confidence the details properly. Proper eye extent with quite less to explain and deliver the
4 contact is maintained all the time eye contact and topic properly. No eye contact
(CLO 3) with proper presentational presentational and presentational gestures
(A3) gestures. gestures. were used.
made.
Students answer Student shows some The student tries to The student does not
the question prior knowledge and answer the question know how to answer
correctly and may use but does not show the question.
completely. terminology to evidence of any
Solution
Student answer the question. previous knowledge
2. incorporates The student does not to assist in answering.
(CLO 4)
information from use appropriate A student may reveal
(C3)
the text or lab information from misconceptions about
notes into the the text or lab notes concepts.
answer. to answer the
question.
A raw phenomenon is provided to the student. The student chooses the problem to explore
3 develop a procedure for investigating the problem decides what together and interprets the
data to propose viable solutions.
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
CLO1: (P3)
Realize the experiment by following instructions by the teacher.
CLO2: (P3)
Collect data from the experiment and analyze it in the view of theoretical understanding
developed during the class.
CLO3: (A3)
CLO4: (C3)
LAB #1
Task-1: Generate a Continuous time cosine signal and plot it.
Task-3: Generate the following sequences using step and impulse sequence.
a) x[n] = u[n] – u[n-10]
b) b. x[n] = anu[n]
c) c. ∑an δ[n-k] , k = -10 to 10
for I = 1: L
if x (i) < 0
x (i) = -1;
end
end.
Ans:This program make array or index of I. this array show the length of the I
which is less than zero or equal to -1. In this function we also use the for loop to
write the program or fulfill our requirement.
Task-6: Write a program to compute the variance and mean of a signal x. The
variance σ isdefined to be:
σ=1
N∑(xi − x̅ )N
1=1
where ‘ m ’ is the mean value of the signal x. For signal x, use all the integers from 1
to 1000.
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Lab#2
Task-1: Take an exponential signal and perform scaling operation with a
negative integer as given in In-Lab Work section and plot the result.
Task-3: Write a Matlab function “sigfold” for folding a given sequence ‘x[n]’
defined by arrays “x” and “n” by using the pseudo code given in In-Lab Work
section. Function [y,n]=sigfold(x,n)
Task-4: Write a Matlab function “sigadd” for adding two sequences x1[n] and
x2[n] by using the pseudo code given in In-Lab Work section.Function
[y,n]=sigadd(x1,n1,x2,n2)
Lab #3
Task-1:Using MATLAB we determine the partial-fraction expansion of the z-
transform X(z)given by
18 z 3+3 z 2
X(z) = −4 z−1
2. X(z) =(1-0.2z-1)(1+0.6z-1)
Lab#4
Task-1: Write Matlab function for circular shift by first writing its pseudo-
code of the procedure explained in the In-Lab section and then writing its
code.
Task-2: Verify the time shifting property of DFT by first writing a pseudo
code of the RHS andLHS followed by the MATLAB code. Use the circular
shift function designed above for shifting in time domain. Compare the result
by sub-plotting LHS and RHS of the following equation.
DFT{x (n-l )} =X(k)e -j(2pi/N)kl
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Task-3: Verify the duality property of DFT by first writing a pseudo code of
the RHS and LHSfollowed by the MATLAB code. Compare the result by sub-
plotting LHS and RHS of the following equation.
DFT[Nx(−n)] = X (k)
Task-5: Verify the convolution property of DFT by first writing a pseudo code
of the RHS and LHS followed by the MATLAB code. Use the circular
convolution function developed in task-4 to compute convolution in time
domain. Compare the result by sub-plotting LHS and RHS of the following
equation.
Task-6: Verify the duality property of DFT by first writing a pseudo code of
the RHS and LHS followed by the MATLAB code. Compare the result by
sub-plotting LHS and RHS of the following equation.
Lab#5
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Task 1:Write a Matlabcode to decompose a sequence into its even and odd
components. Take help from Pre-Lab work.
Task 2: You should have noticed that ‘conv’ command calculates convolution
assuming both input sequences are starting from origin (i-e no values on –ve t-
axis). This is not always the case, we do have sequences which have values for
t<0. Write a code conv_m that would remove this limitation in the code conv.
Lab#6
Task-1: Design a “minimum order” low pass filter to suppress all frequencies
above 4kHz. Mention the application of such a filter. Send this model to DSP
kit and show the results in CCS.
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Task-2: Use your ‘sin’ or ‘cos’ function to generate a sinusoid wave having
two components as f1 = 3kHz and f2 = 5kHz and then sample it with fs =
8kHz. Calculate its fft with zero frequency component in the middle. Plot it on
a properly scaled w-axis. Specify if there is aliasing or not? If there is aliasing
specify which component is casing the aliasing.
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Task-3: Use your ‘sin’ or ‘cos’ function to generate a sinusoid wave having
two components as f1 = 1.5kHz and f2 = 4kHz and f3 = 7kHz and then (a)
sample it with an fs such that there is no aliasing (b) sample it with an fs
which produces aliasing. Show the result in both cases by plotting fft of the
discretized signal.
ii. Downsample (decimate) the signal in part-(ii) by 2 and plot its fft. Comment if
there is aliasing or not?
iii. Now upsample (interpolate) the signal in part-(ii) by 2 and plot its fft. Comment
on the outcome?
iv. Compare the fft of in part-(i) and in part-(iii) and comment on whether or not
the interpolation operation recovers the information lost during decimation
operation?
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
EE-325Digital Signal Processing
Department of Electrical Engineering | The University of Faisalabad
Lab#7
Task-1: Generate a sinusoid containing 5 frequency components and display
these components in the.
18 z 3+3 z 2
−4 z−1
Task-2: You should have noticed that conv command calculates convolution
assuming both input sequences are starting from origin (i-e no values on –ve t-
axis). This is not always the case, we do have sequences which have values for
t<0. Write a code conv_m that would remove this limitation in the code conv.
Lab#8
Task-1: Design a “minimum order” low pass filter to suppress all frequencies
above 4kHz. Mention the application of such a filter. Send this model to DSP
kit and show the results in CCS.
Task-2: Design a “minimum order” high pass filter to pass all frequencies
above 8kHz. Mention the application of such a filter. Send this model to DSP
kit and show the results in CCS.