Vi Lab Manual
Vi Lab Manual
PROGRAMME: B.Tech
SEMESTER /YEAR:VII / IV
SUBJECT CODE:BMO413
SUBJECT NAME: Virtual Instrumentation Lab
Prepared By:
Prepared By:
Name:T.Rajalakshmi
Name:P.Vinupritha
Designation:AP(OG)
Designation:AP(OG)
SRM UNIVERSITY
(UNDER SECTION 3 of UGC ACT 1956)
KATTANKULATHUR-603203
Tamil Nadu, India
List of Experiments
Exp No: 1
BlockDiagramPanel:
Front Panel:
Input:
Output:
Result:
Thusthearithmeticoperationswereperformedandtheresultis
verifiedusinglabview.
Exp No: 2
BOOLEAN OPERATIONS
Blockdiagram:
FrontPanel:
Input:
Output:
TruthTable:
AND:
X1
X2
X1
X2
OR:
XOR:
X1
X2
NAND:
X1
X2
NOT:
X
RESULT:ThustheBooleanoperationusingLABviewisperformed.
Exp No: 3
Blockdiagram:
FrontPanel:
Input:
Output:
Result: Thus the sum of n natural numbers using FOR loop is performed in
LABview.
Exp No: 4
FrontPanel:
Input:
Output:
Result: Thus the factorial of a given number is using FOR loop is performed in
LAB view.
Exp No:5
FRONT PANEL:
Input:
Output:
Exp No:6
Front Panel:
Input:
Output:
Result: Thus the factorial of the given number using WHILE loop is performed.
Exp No:7
Block diagram panel:
FRONTPANEL:
Result: Thus the even numbers from the given set of numbers is sorted using
WHILE loop in an array.
Exp No:8
Block diagram panel:
Front Panel:
Input:
Output:
Result: Hence the maximum and minimum values of array were displayed using
LabVIEW.
Exp No:9
Front Panel:
Bundle cluster:
Input:
Un bundle cluster:
Input:
Output:
Exp No: 10
Stacked sequence:
(i)
(ii)
(iii)
Front Panel:
Flat sequence:
Result: Thus various functions using flat and stacked sequence using LabVIEW
was performed.
Exp No: 11
Block Diagram Panel:
FRONT PANEL:
Exp No:12
MEDIAN FILTER
Aim: To apply filtering technique for a given input signal.
Algorithm:
Step 1: Create a blank VI.
Step 2: In the block diagram panel go to signal processing and create a noise
signal.
Step 3: Select any one input signal.
Step 4: Create median filter from signal processing block.
Step 5: Using wiring operations required connections are given in the block
diagram.
Step 6: Inputs are given in the front panel and the program is executed.
Block diagram panel:
Front panel:
Exp No:13
Block diagram panel:
Front panel:
Result: Hence discrete cosine transform was performed on the given input signal.
Exp No:14
Front panel:
Result: Hence two signals were convolved and the result is verified using
LabVIEW.
Exp No:15
WINDOWING TECHNIQUE
Front panel:
Result:
Hence the characteristics of various windows are performed
using LabVIEW.
Exp No:16
INSTRUMENTATION OF AN AMPLIFIER
TO ACQUIRE AN ECG SIGNAL
Aim: To acquire and analyze an ECG signal using NI ELVIS Lab VIEW.
Algorithm:
Procedure Without Express:
1. Construct the basic block diagram for acquiring a signal without using express.
8. Connect the FFT magnitude terminal of the FFT block to the waveform Graph in
the block diagram.
9. While running the application select db On (F) in the view palette in the front
panel. Select Hanning window using the control in the front panel.
10. Save the program (CTRL + S). From the Front panel tool bar menu select
Operate Run (or press CTRL + R) to execute the program. The output is as
shown in the figure.
Result: Thus the raw ECG signal (0-40Hz) was acquired and its FFT was
obtained. Power line interference occurred at 50Hz.
Exp No:17
Aim:
To acquire, analyze and present an EEG using Virtual instrumentation.
Algorithm:
1. To acquire EEG Signal:
From the front panel, set the number of samples to read as 2000 and the
sampling rate as 1000.
From the physical channel drop down menu select device and the channel no.
(DEVICE 1 / AI0 CHANNEL).
Set the Voltage Maximum and Minimum to -5/5 V.
2. Taking FFT for raw EEG:
Right click on the block diagram. From the menu appearing select Signal
Processing Wfm Measure FFT Spectrum magnitude and phase.
Place the FFT block in the block diagram.
Connect the data in the DAQmx read terminal to time signal terminal of the
FFT block.
8. Right click on the block diagram. Select Signal Processing Wfm Condition
Filter Configure the Filter as Follows:
13. As before, take the FFT of the output of the Smoothing filter.
14. Right-click in the Block Diagram panel, select Signal Processing Signal
Operation Autocorrelation.vi
15. Connect the output of the Lowpass filter to the Autocorrelation block. Take the
FFT of the Autocorrelation output. Create a waveform graph to view the same.
16. Similarly, create another Autocorrelation block and connect the output of the
Smoothing filter to it. Take the FFT of the autocorrelation output. Create a
waveform graph to view the same.
17. Right-click in the Block Diagram panel, select Signal Processing Wfm
Measure Spectral Measurements
18. Connect the output of the Lowpass filter to the Spectral Measurements block.
Create a Waveform graph to view the Spectral Measurements block output.
19. Similarly, create another Spectral Measurements block and connect the output
of the Smoothing filter it. Create a Waveform graph to view the Spectral
Measurements block output.
Result:
Hence an EEG signal is acquired, analyzed and presented using Virtual
instrumentation.