You are on page 1of 2

Digital Signal Processing Lab Course

Lab Tasks
Lab No. 1
Title: Introduction to LabVIEW
1. Generate a LabVIEW VI that finds the sum, difference and product of two
numbers. The VI must take inputs in run-time and display the results.
2. Generate a LabVIEW VI that takes two numbers in run-time and displays the
larger number.
3. Generate a VI that switches an LED on, whenever the input is greater than
10. The input must be provided in run-time.
4. Why is a LabVIEW code called a VI?
5. How can you convert a string data type to a numeric data type? Elaborate
with an example.

Digital Signal Processing Lab Course


Lab Tasks
Lab No. 2
Title: Structures in LabVIEW
1. Create a VI that accepts two numbers and a string from the user. If the string
is add, sum of the numbers is displayed. If the sting is product, product of
the two numbers is displayed and if the string is mean, mean of the two
numbers is displayed. For any invalid string value, the VI should display the
product value.
2. Generate an array 20 random numbers between 1 and 50.
3. Create a VI that takes two numbers and find their Sum, Product and
Difference sequentially. Each result should be displayed after 5 seconds.
4. Write a MATLAB code to generate a SINE wave form. Display the waveform in
LabVIEW.
5. Create a VI that consists of two structures. The output of one structure should
be provided as an input to the other structure. (Hint: Use Tunneling)

Digital Signal Processing Lab Course


Lab Tasks
Lab No. 3
Title: Signal Generation and Operation
1. Generate a Sine Wave using the Simulate Signal Express VI. Induce different
kind of noises in the signal and observe the results.

2. Generate and plot square, sawtooth and triangular waveforms. The frequency
of the waveforms should be controlled in run-time.

3. Create a VI that demonstrates the use of Threshold Peak Detector VI.

4. Create a VI that demonstrate the use of Normalize VI.

5. Create a VI that adds Four signals together.


Digital Signal Processing Lab Course
Lab Tasks
Lab No. 4
Title: Sampling and Aliasing

1. Run the Aliasing application and fix the sampling frequency at 50 and vary
the signal frequency to 20,25,30,40,50,60. Observe the recovered signal and
frequency for each case.
2. Fix the signal frequency to 10 and observe the recovered frequency for
sampling frequency 9,10 and 11. Comment on your results.
3. Fix the signal frequency at 20 and vary the sampling frequency between 0 to
20. Make a graph of recovered frequency vs signal frequency. Identify the
aliasing frequencies.
4. What is oversampling? What would happen if you perform excessive
oversampling? Is oversampling a good technique? What is your verdict?
5. Assume a Sine wave with frequency 1 Hz. The Nyquist rate for this signal is
2Hz. Which means we must take 2 samples per second to generate one cycle
of the Sine wave. Is it possible to create a sine wave cycle from only 2
samples? Reply in agreement or disagreement, with proper arguments.

You might also like