Professional Documents
Culture Documents
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.
2. Generate and plot square, sawtooth and triangular waveforms. The frequency
of the waveforms should be controlled in run-time.
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.