SlideShare a Scribd company logo
1 | P a g e 
A 
Practical Report 
on 
INTRODUCTION TO FILTERS 
Under LabVIEW Environment 
Submitted To: Submitted By: 
Mr. Raj Kumar Garg Paramjeet Singh Jamwal 
Assistant Professor PG/ICE/136321 
LabVIEW 
M.Tech (ICE) 
Third Semester 
Department of Electrical and Instrumentation Engineering 
Sant Longowal Institute of Engineering and Technology 
Longowal – 148106 (INDIA) 
Nov 2014
2 | P a g e 
CONTENT 
S. No. Example Page No. 
1. Design a Finite Impulse Response Low Pass Filter using rectangular 
window with a cut off frequency of 1 KHz and sampling rate of 4 
KHz with 11 samples. 
LabVIEW 
3. 
2. Design a Finite Impulse Response Band Pass Filter using Triangular 
(Bartlett) window with a lower cut off frequency of 3 KHz, higher 
cut off frequency of 5.5 KHz and sampling rate of 20 KHz with 15 
samples (Order-14). 
5. 
3. Type of filter and commonly used Windows. 7. 
4. List of filter icon available in the LabVIEW. 8.
1. Design a Finite Impulse Response Low Pass Filter using rectangular window with a cut off 
3 | P a g e 
frequency of 1 KHz and sampling rate of 4 KHz with 11 samples. 
1 −휔푐 ≤ 휔 ≤ 휔푐 
0 − 
휔푐 
LabVIEW 
Given: 
Fs : 4 KHz 
fc : 1 KHz 
N : 11 
Step: 1 - Finding Hd(ωt): 
퐻푑 (휔푇) = 
[ 
휔푠 
2 
≤ 휔 ≤ −휔푐 
0 휔푐 ≤ 휔 ≤ 
휔푠 
2 ] 
휔푠 = 2휋푓푠 = 25132.74 푟푎푑/푠푒푐 
푇 = 
1 
푓푠 
= 0.25 ∗ 10−3푠푒푐 
Step: 2 – Finding hd(n): 
ℎ푑 (푛) = 
1 
휔푠 
∫ 푒푗휔푛푇 . 푑휔 
−휔푐 
ℎ푑 (푛) = 
2 
휔푠 푛푇 
∗ 푆푖푛(휔푐 푛푇) 
ℎ푑 (푛) = 
푆푖푛(휔푐 푛푇) 
휋푛 
; 푤ℎ푒푛 푛 ≠ 0 
ℎ푑 (푛) = 
2휔푐 
휔푠 
; 푤ℎ푒푛 푛 = 0 
Step: 3 – Window Function: 
휔푟 (푛) = [ 
1 푓표푟 푛 = 0 푡표 푀 − 1 
0 표푡ℎ푒푟푤푖푠푒 
] 
Step: 4 – Coefficients: 
hd(n) 0.5 0.3183 0 -0.1061 0 0.0637 -0.0455 0 0.0354 0 
ωr(n) 1 1 1 1 1 1 1 1 1 1 
h(n) 0.5 0.3183 0 -0.1061 0 0.0637 -0.0455 0 0.0354 0
4 | P a g e 
LabVIEW 
Step: 5.1 – Block Diagram: 
Step: 5.2 – Front Panel: 
Reference: Salivahnan S., Ghananpriya C., “Digital Signal Processing”, 2nd Edition, pp-439-440, 
Example-7.4.
2. Design a Finite Impulse Response Band Pass Filter using Triangular (Bartlett) window with a 
lower cut off frequency of 3 KHz, higher cut off frequency of 5.5 KHz and sampling rate of 20 
KHz with 15 samples (Order-14). 
5 | P a g e 
푆푖푛(휔푐1(푛 − 푀)) 
LabVIEW 
Given: 
Fs : 20 KHz 
fcl : 3 KHz 
fch : 5.5 KHz 
N : 15 
Step: 1 – Finding hd(n): 
ℎ푑 (푛) = [ 
휋 (푛 − 푀) 
− 
푆푖푛(휔푐2(푛 − 푀)) 
휋(푛 − 푀) 
푛 ≠ 푀 
1 − 
휔푐2−휔푐1 
휋 
푛 = 푀 
] 
Where: M index of middle coefficient. 
휔푐1 = 
2휋푓푐1 
푓푠 
= 0.3휋 
휔푐2 = 
2휋푓푐2 
푓푠 
= 0.55휋 
Step: 2 – Window Function: 
휔[푛] = [ 
2푛 
푁 − 1 
; 푓표푟 0 ≤ 푛 ≤ 푡표 
푁 − 1 
2 
2 − 
2푛 
푁 − 1 
; 
푁 + 1 
2 
≤ 푛 ≤ 푁 − 1 
] 
Step: 3 – Coefficients: 
Coefficient 0 1 2 3 4 5 6 7 
hd(n) 0.034696 0.011737 -0.10868 -0.09355 0.127326 0.200547 -0.05687 0.75 
ωr(n) 0 0.142857 0.285714 0.428571 0.571429 0.714286 0.857143 1 
h(n) 0 0.001677 -0.03105 -0.04009 0.072758 0.143248 -0.048747 0.75 
Coefficient 8 9 10 11 12 13 14 
hd(n) 0.056872 -0.20055 -0.12733 0.093549 0.108678 -0.01174 -0.034696 
ωr(n) 0.857143 0.714286 0.571429 0.428571 0.285714 0.142857 0 
h(n) -0.048747 0.143248 0.072758 -0.040092 -0.031051 0.001667 0
6 | P a g e 
LabVIEW 
Step: 4.1 – Block Diagram: 
Step: 4.2 – Front Panel: 
Reference: “Mikro Elektronika”, http://www.mikroe.com/chapters/view/72/chapter-2-fir-filters/.
7 | P a g e 
3. Type of filter and commonly used Windows. 
S.No. Type of Filter Frequency Response hd[n] 
푆푖푛(휔푐 (푛 − 푀)) 
1. Low Pass Filter ℎ푑 (푛) = [ 
0.54 + 0.46 ∗ 퐶표푠 
LabVIEW 
휋(푛 − 푀) 
푛 ≠ 푀 
휔푐 
휋 
푛 = 푀 
] 
2. High Pass Filter ℎ푑 (푛) = [ 
1 − 
휔푐 
휋 
푛 ≠ 푀 
− 
푆푖푛(휔푐 (푛 − 푀)) 
휋(푛 − 푀) 
푛 = 푀 
] 
3. Band Pass Filter ℎ푑 (푛) = [ 
푆푖푛(휔푐2(푛 − 푀)) 
휋(푛 − 푀) 
− 
푆푖푛(휔푐1(푛 − 푀)) 
휋(푛 − 푀) 
푛 ≠ 푀 
휔푐2− 휔푐1 
휋 
푛 = 푀 
] 
4. Band Stop Filter ℎ푑 (푛) = [ 
푆푖푛(휔푐1(푛 − 푀)) 
휋(푛 − 푀) 
− 
푆푖푛(휔푐2(푛 − 푀)) 
휋(푛 − 푀) 
푛 ≠ 푀 
1 − 
휔푐2− 휔푐1 
휋 
푛 = 푀 
] 
S. No. Window Function 
1. Triangular (Bartlett) 푊푇 [푛] = 
2|푛| 
푀 − 1 
; 푓표푟 |푛| ≤ 푀 − 1 
2. Hanning 푊ℎ푛 = 
1 
2 
[1 − 
퐶표푠2휋푛 
푀 − 1 
] ; 
3. Hamming 푊퐻푚 = [ 
2휋푛 
푀 − 1 
; |푛| ≤ 푄 
0; 푒푙푒푠푤ℎ푒푟푒 
] 
4. Blackman 푊퐵 [푛] = 0.42 + 0.5 ∗ 퐶표푠 
2휋푛 
푀 − 1 
+ 0.08 ∗ 퐶표푠 
4휋푛 
푀 − 1 
5. Kaiser 푊푘 [푛] = [ 
퐼표(훽) 
퐼표(훼) 
|푛| ≤ 푄 
0; 푒푙푒푠푤ℎ푒푟푒 
]
8 | P a g e 
4. List of filter icon available in the LabVIEW. 
Filter icon is available at Functions/Signal Processing/Filters. 
IIR Filter 
S. No. Icon Name Function 
LabVIEW 
01. 
Butterworth Filter 
Generates a digital Butterworth filter by calling the 
Butterworth Coefficients VI. Wire data to the X input to 
determine the polymorphic instance to use or manually 
select the instance. 
02. 
Chebyshev Filter 
Generates a digital Chebyshev filter by calling the 
Chebyshev Coefficients VI. Wire data to the X input to 
determine the polymorphic instance to use or manually 
select the instance. 
03. 
Inverse Chebyshev 
Filter 
Generates a digital Chebyshev II filter by calling the Inv 
Chebyshev Coefficients VI. Wire data to the X input to 
determine the polymorphic instance to use or manually 
select the instance. 
04. 
Elliptic Filter 
Generates a digital elliptic filter by calling the Elliptic 
Coefficients VI. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
05. 
Bessel Filter 
Generates a digital Bessel filter by calling the Bessel 
Coefficients VI. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
06. 
Butterworth 
Coefficients 
Generates the set of filter coefficients to implement an IIR 
filter as specified by the Butterworth filter model. You can 
pass these filter coefficients, IIR Filter Cluster, to the IIR 
Cascade Filter VI to filter a sequence of data. 
07. 
Chebyshev 
Coefficients 
Generates the set of filter coefficients to implement an IIR 
filter as specified by the Chebyshev filter model. You can 
pass these coefficients to the IIR Cascade Filter VI to filter 
a sequence of data. 
08. 
Inv Chebyshev 
Coefficients 
Generates the set of filter coefficients to implement an IIR 
filter as specified by the Chebyshev II Filter model. You 
can pass these coefficients to the IIR Cascade Filter VI to 
filter a sequence of data. 
09. 
Elliptic 
Coefficients 
Generates the set of filter coefficients to implement a digital 
elliptic IIR filter. You can pass these coefficients to the IIR 
Cascade Filter VI. 
10. 
Bessel 
Coefficients 
Generates the set of filter coefficients to implement an IIR 
filter as specified by the Bessel filter model. You then can 
pass these coefficients to the IIR Cascade Filter VI.
9 | P a g e 
LabVIEW 
11. 
Butterworth Order 
Estimation 
Estimates the Butterworth filter order. 
S. No. Icon Name Function 
12. 
Chebyshev Order 
Estimation 
Estimates the Chebyshev I filter order. 
13. 
Inverse Chebyshev 
Order Estimation 
Estimates the Inverse Chebyshev filter order. 
14. 
Elliptic Order 
Estimation 
Estimates the Elliptic filter order. 
15. 
Inverse f Filter 
Designs and implements an IIR filter whose magnitude-squared 
response is inversely proportional to frequency 
over a specified frequency range. This inverse-f filter is 
typically used to colorize spectrally flat, or white, noise. 
Wire data to the X input to determine the polymorphic 
instance to use or manually select the instance. 
16. 
Inverse f Filter 
Coefficients 
Designs an IIR filter whose magnitude-squared response is 
inversely proportional to frequency over a specified 
frequency range. This inverse-f filter is typically used to 
colorize spectrally flat, or white, noise. 
17. 
IIR Cascade Filter 
Filters the input sequence X using the cascade form of the 
IIR filter specified by the IIR Filter Cluster. Wire data to 
the X input to determine the polymorphic instance to use or 
manually select the instance. 
18. 
IIR Cascade Filter 
with I.C. 
Filters the input sequence X using the cascade form of the 
IIR filter specified by the IIR Filter Cluster. This VI is 
similar to the IIR Cascade Filter VI except that you specify 
the initial conditions for this VI. Wire data to the X input to 
determine the polymorphic instance to use or manually 
select the instance. 
19. 
IIR Filter 
Filters the input sequence X using the direct form IIR filter 
specified by Reverse Coefficients and Forward 
Coefficients. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
20. 
IIR Filter with I.C. 
Filters the input sequence X using the direct form IIR filter 
specified by Reverse Coefficients and Forward 
Coefficients. You can use this VI to process blocks of 
continuous data. This VI is similar to the IIR Filter VI 
except that you specify the initial conditions for this VI. 
Wire data to the X input to determine the polymorphic 
instance to use or manually select the instance.
10 | P a g e 
LabVIEW 
21. 
Cascade To Direct 
Coefficients 
Converts IIR filter coefficients from the cascade form to the 
direct form. 
FIR Filter 
S. No. Icon Name Function 
22. 
Equi-Ripple 
LowPass 
Generates a lowpass FIR filter with equi-ripple 
characteristics using the Parks-McClellan algorithm and the 
# of taps, pass freq, stop freq, and sampling freq: fs. The 
Equi-Ripple LowPass VI then applies a linear-phase, 
lowpass filter to the input sequence X using the 
Convolution VI to obtain Filtered X. Wire data to the X 
input to determine the polymorphic instance to use or 
manually select the instance. 
23. 
Equi-Ripple 
HighPass 
Generates a highpass FIR filter with equi-ripple 
characteristics using the Parks-McClellan algorithm and the 
# of taps, stop freq, high freq, and sampling freq: fs. The 
Equi-Ripple HighPass VI then applies a linear-phase, 
highpass filter to the input sequence X using the 
Convolution VI to obtain Filtered X. Wire data to the X 
input to determine the polymorphic instance to use or 
manually select the instance. 
24. 
Equi-Ripple 
BandPass 
Generates a bandpass FIR filter with equi-ripple 
characteristics using the Parks-McClellan algorithm and the 
higher pass freq, lower pass freq, # of taps, lower stop 
freq, higher stop freq, and sampling freq: fs. The Equi- 
Ripple BandPass VI then applies a linear-phase, bandpass 
filter to the input sequence X using the Convolution VI to 
obtain Filtered X. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
25. 
Equi-Ripple 
BandStop 
Generates a bandstop FIR digital filter with equi-ripple 
characteristics using the Parks-McClellan algorithm and 
higher pass freq, lower pass freq, # of taps, lower stop freq, 
higher stop freq, and sampling freq: fs. The Equi-Ripple 
BandStop VI then applies a linear-phase, bandstop filter to 
the input sequence X using the Convolution VI to obtain 
Filtered X. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
26. 
FIR Windowed 
Filter 
Filters the input data sequence, X, using the set of 
windowed FIR filter coefficients specified by the sampling 
freq: fs, low cutoff freq: fl, high cutoff freq: fh, and 
number of taps. Wire data to the X input to determine the 
polymorphic instance to use or manually select the instance. 
27. 
Savitzky-Golay 
Filter 
Filters the input data sequence X using a Savitzky-Golay 
FIR smoothing filter. Wire data to the X input to determine 
the polymorphic instance to use or manually select the 
instance. 
28. 
FIR Windowed 
Coefficients 
Generates the set of filter coefficients you need to 
implement an FIR windowed filter.
11 | P a g e 
LabVIEW 
29. 
Parks-McClellan 
Generates a set of linear-phase FIR multiband digital filter 
coefficients using the # of taps, sampling frequency: fs, 
Band Parameters, and filter type. 
S. No. Icon Name Function 
30. 
Savitzky-Golay 
Filter Coefficients 
Designs a Savitzky-Golay FIR smoothing filter. This VI 
returns the designed Savitzky-Golay filter coefficients and 
the differentiation filter coefficients. 
31. 
FIR Narrowband 
Coefficients 
Generates a set of filter coefficients to implement a digital 
interpolated FIR (IFIR) filter. 
32. 
FIR Filter 
Filters the input sequence X using the direct-form FIR filter 
specified by FIR Coefficients. Wire data to the X input to 
determine the polymorphic instance to use or manually 
select the instance. 
33. 
FIR Filter with 
I.C. 
Filters the input sequence X using the direct-form FIR filter 
specified by FIR Coefficients. You can use this VI to 
process blocks of continuous data. Wire data to the X input 
to determine the polymorphic instance to use or manually 
select the instance. 
34. 
FIR Narrowband 
Filter 
Filters the input sequence X using the interpolated FIR 
(IFIR) filter specified by IFIR Coefficients. 
Other Filter 
35. 
Smoothing Filter 
Coefficients 
Designs filter coefficients for a smoothing filter. You can 
use this VI to design a moving-average FIR filter or an 
exponentially-averaging IIR filter. The VI returns reverse 
coefficients and forward coefficients for direct connection 
to the IIR Filter VI, which is used to implement both FIR 
and IIR filters. 
36. 
Zero Phase Filter 
Applies a zero phase filter to an input sequence X. Wire 
data to the X input to determine the polymorphic instance to 
use or manually select the instance. 
37. 
Median Filter 
Applies a median filter of rank to the input sequence X, 
where rank is right rank if right rank is greater than zero, 
or left rank if right rank is less than zero. 
38. 
Mathematical 
Morphological 
Filter 
Filters the input data sequence X with Structure Element 
using a mathematical morphological filter. 
39. 
Convolution 
Computes the convolution of the input sequences X and Y. 
Wire data to the X and Y inputs to determine the 
polymorphic instance to use or manually select the instance. 
--- 
An info4eee presentation, which provides Information for Electrical and Electronics Engineering students. It 
is the initiative to share the material among the EEE students in a well mannered way. 
Now available on: 
info4eee.wordpress.com 
facebook.com/info4eee

More Related Content

PPTX
FILTER DESIGN
PDF
Design of FIR filters
DOC
PPT
Fir and iir filter_design
PDF
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
PPTX
Design of FIR Filters
PDF
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
PDF
Dsp U Lec08 Fir Filter Design
FILTER DESIGN
Design of FIR filters
Fir and iir filter_design
DSP_2018_FOEHU - Lec 06 - FIR Filter Design
Design of FIR Filters
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
Dsp U Lec08 Fir Filter Design

What's hot (20)

PDF
Analysis of Butterworth and Chebyshev Filters for ECG Denoising Using Wavelets
PPTX
FIR Filter Design.pptx
PDF
Channel estimation
PPTX
Dsp algorithms 02
PPTX
Chebyshev filter
PPTX
FIR and IIR system
PPTX
Signal Filtering
PDF
Channel Estimation
PPTX
Butterworth filter design
PPT
Digital Filters Part 2
PDF
Decimation in Time
PPTX
Discrete Fourier Transform
PPT
Classifications of signals vi sem cse it6502
PPTX
Computer graphics
PPTX
Windowing ofdm
PDF
3.7 GHz Microwave Amplifier Design
PDF
Ant colony opitimization numerical example
PPTX
An introduction to discrete wavelet transforms
PDF
Baseband shaping for data transmission
PPTX
Space time coding in mimo
Analysis of Butterworth and Chebyshev Filters for ECG Denoising Using Wavelets
FIR Filter Design.pptx
Channel estimation
Dsp algorithms 02
Chebyshev filter
FIR and IIR system
Signal Filtering
Channel Estimation
Butterworth filter design
Digital Filters Part 2
Decimation in Time
Discrete Fourier Transform
Classifications of signals vi sem cse it6502
Computer graphics
Windowing ofdm
3.7 GHz Microwave Amplifier Design
Ant colony opitimization numerical example
An introduction to discrete wavelet transforms
Baseband shaping for data transmission
Space time coding in mimo
Ad

Viewers also liked (7)

PDF
QRS Detection Algorithm Using Savitzky-Golay Filter
PDF
Communication channel
PDF
DC Network Theory - Basic Electrical Engineering
PDF
Multifunctional Relay Based On Microcontroller
PDF
Fundamentals of Electric Drives - Electric Drives
PDF
Permanent magnet Synchronous machines
DOCX
Medical Image Compression
QRS Detection Algorithm Using Savitzky-Golay Filter
Communication channel
DC Network Theory - Basic Electrical Engineering
Multifunctional Relay Based On Microcontroller
Fundamentals of Electric Drives - Electric Drives
Permanent magnet Synchronous machines
Medical Image Compression
Ad

Similar to Introduction to Filters under labVIEW Environment (20)

PDF
Design Low Pass FIR Digital Filter for Cut off Frequency Calculation Using Ar...
PDF
Design and performance analysis of low pass fir filter using hamming and kais...
PDF
Design Band Pass FIR Digital Filter for Cut off Frequency Calculation Using A...
PDF
E0162736
PDF
Implementation and Performance Analysis of Kaiser and Hamming Window Techniqu...
PDF
Design and realization of iir digital band stop filter using modified analog ...
PDF
ECE 569 Digital Signal Processing Project
PDF
Design of iir digital highpass butterworth filter using analog to digital map...
PDF
Matlab Filter Design and Implementation.pdf
PDF
ECG Signal Denoising using Digital Filter and Adaptive Filter
PPTX
Design of digital filters
PDF
Design Technique of Bandpass FIR filter using Various Window Function
PDF
Design Technique of Bandpass FIR filter using Various Window Function
PDF
Implementation of UART with BIST Technique Using Low Power LFSR
PDF
DSP_FOEHU - Lec 07 - Digital Filters
PDF
Zero rotation aproach for droop improvement in
PPT
1 digital filters (fir)
PDF
Paper id 252014114
PDF
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
Design Low Pass FIR Digital Filter for Cut off Frequency Calculation Using Ar...
Design and performance analysis of low pass fir filter using hamming and kais...
Design Band Pass FIR Digital Filter for Cut off Frequency Calculation Using A...
E0162736
Implementation and Performance Analysis of Kaiser and Hamming Window Techniqu...
Design and realization of iir digital band stop filter using modified analog ...
ECE 569 Digital Signal Processing Project
Design of iir digital highpass butterworth filter using analog to digital map...
Matlab Filter Design and Implementation.pdf
ECG Signal Denoising using Digital Filter and Adaptive Filter
Design of digital filters
Design Technique of Bandpass FIR filter using Various Window Function
Design Technique of Bandpass FIR filter using Various Window Function
Implementation of UART with BIST Technique Using Low Power LFSR
DSP_FOEHU - Lec 07 - Digital Filters
Zero rotation aproach for droop improvement in
1 digital filters (fir)
Paper id 252014114
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...

More from Paramjeet Singh Jamwal (20)

PDF
Introduction to MATLAB - I
PDF
Virtual Instrumentation and Data Acquisition - PGICE - 2013
PDF
Reliability Engineering - PGICE - 2013
PDF
Reliability Engineering - PGICE - 2012
PDF
Non Linear and Adaptive Control System JAN 2014
PDF
Microcontroller and Embedded System JAN 2014
PDF
Instrumentation System Design JAN 2014
PDF
Instrumentation System Design | Assignment
PDF
Digital signal processing JAN 2014
DOCX
Introduction to toolbox under matlab environment
PPTX
Cardiovascular System
DOCX
Digital Signal Processing and Control System under MATLAB Environment
PPTX
Image Compression
PPTX
Hydrology & Site Selection of Hydro Power Plant
PDF
Electromagnetic Field Theory May 2013
PDF
Digital Image Processing May 2013
PDF
Basic Electrical Engineering May 2013
PDF
Analog Communication May 2013
DOCX
Analog Communication Apr 2013
DOCX
Digital Image Processing Apr 2013
Introduction to MATLAB - I
Virtual Instrumentation and Data Acquisition - PGICE - 2013
Reliability Engineering - PGICE - 2013
Reliability Engineering - PGICE - 2012
Non Linear and Adaptive Control System JAN 2014
Microcontroller and Embedded System JAN 2014
Instrumentation System Design JAN 2014
Instrumentation System Design | Assignment
Digital signal processing JAN 2014
Introduction to toolbox under matlab environment
Cardiovascular System
Digital Signal Processing and Control System under MATLAB Environment
Image Compression
Hydrology & Site Selection of Hydro Power Plant
Electromagnetic Field Theory May 2013
Digital Image Processing May 2013
Basic Electrical Engineering May 2013
Analog Communication May 2013
Analog Communication Apr 2013
Digital Image Processing Apr 2013

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PPTX
Pharma ospi slides which help in ospi learning
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Computing-Curriculum for Schools in Ghana
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Cell Structure & Organelles in detailed.
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
master seminar digital applications in india
Lesson notes of climatology university.
Pharma ospi slides which help in ospi learning
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial diseases, their pathogenesis and prophylaxis
Pharmacology of Heart Failure /Pharmacotherapy of CHF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Microbial disease of the cardiovascular and lymphatic systems
Computing-Curriculum for Schools in Ghana
2.FourierTransform-ShortQuestionswithAnswers.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Final Presentation General Medicine 03-08-2024.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
O7-L3 Supply Chain Operations - ICLT Program
Cell Structure & Organelles in detailed.
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
master seminar digital applications in india

Introduction to Filters under labVIEW Environment

  • 1. 1 | P a g e A Practical Report on INTRODUCTION TO FILTERS Under LabVIEW Environment Submitted To: Submitted By: Mr. Raj Kumar Garg Paramjeet Singh Jamwal Assistant Professor PG/ICE/136321 LabVIEW M.Tech (ICE) Third Semester Department of Electrical and Instrumentation Engineering Sant Longowal Institute of Engineering and Technology Longowal – 148106 (INDIA) Nov 2014
  • 2. 2 | P a g e CONTENT S. No. Example Page No. 1. Design a Finite Impulse Response Low Pass Filter using rectangular window with a cut off frequency of 1 KHz and sampling rate of 4 KHz with 11 samples. LabVIEW 3. 2. Design a Finite Impulse Response Band Pass Filter using Triangular (Bartlett) window with a lower cut off frequency of 3 KHz, higher cut off frequency of 5.5 KHz and sampling rate of 20 KHz with 15 samples (Order-14). 5. 3. Type of filter and commonly used Windows. 7. 4. List of filter icon available in the LabVIEW. 8.
  • 3. 1. Design a Finite Impulse Response Low Pass Filter using rectangular window with a cut off 3 | P a g e frequency of 1 KHz and sampling rate of 4 KHz with 11 samples. 1 −휔푐 ≤ 휔 ≤ 휔푐 0 − 휔푐 LabVIEW Given: Fs : 4 KHz fc : 1 KHz N : 11 Step: 1 - Finding Hd(ωt): 퐻푑 (휔푇) = [ 휔푠 2 ≤ 휔 ≤ −휔푐 0 휔푐 ≤ 휔 ≤ 휔푠 2 ] 휔푠 = 2휋푓푠 = 25132.74 푟푎푑/푠푒푐 푇 = 1 푓푠 = 0.25 ∗ 10−3푠푒푐 Step: 2 – Finding hd(n): ℎ푑 (푛) = 1 휔푠 ∫ 푒푗휔푛푇 . 푑휔 −휔푐 ℎ푑 (푛) = 2 휔푠 푛푇 ∗ 푆푖푛(휔푐 푛푇) ℎ푑 (푛) = 푆푖푛(휔푐 푛푇) 휋푛 ; 푤ℎ푒푛 푛 ≠ 0 ℎ푑 (푛) = 2휔푐 휔푠 ; 푤ℎ푒푛 푛 = 0 Step: 3 – Window Function: 휔푟 (푛) = [ 1 푓표푟 푛 = 0 푡표 푀 − 1 0 표푡ℎ푒푟푤푖푠푒 ] Step: 4 – Coefficients: hd(n) 0.5 0.3183 0 -0.1061 0 0.0637 -0.0455 0 0.0354 0 ωr(n) 1 1 1 1 1 1 1 1 1 1 h(n) 0.5 0.3183 0 -0.1061 0 0.0637 -0.0455 0 0.0354 0
  • 4. 4 | P a g e LabVIEW Step: 5.1 – Block Diagram: Step: 5.2 – Front Panel: Reference: Salivahnan S., Ghananpriya C., “Digital Signal Processing”, 2nd Edition, pp-439-440, Example-7.4.
  • 5. 2. Design a Finite Impulse Response Band Pass Filter using Triangular (Bartlett) window with a lower cut off frequency of 3 KHz, higher cut off frequency of 5.5 KHz and sampling rate of 20 KHz with 15 samples (Order-14). 5 | P a g e 푆푖푛(휔푐1(푛 − 푀)) LabVIEW Given: Fs : 20 KHz fcl : 3 KHz fch : 5.5 KHz N : 15 Step: 1 – Finding hd(n): ℎ푑 (푛) = [ 휋 (푛 − 푀) − 푆푖푛(휔푐2(푛 − 푀)) 휋(푛 − 푀) 푛 ≠ 푀 1 − 휔푐2−휔푐1 휋 푛 = 푀 ] Where: M index of middle coefficient. 휔푐1 = 2휋푓푐1 푓푠 = 0.3휋 휔푐2 = 2휋푓푐2 푓푠 = 0.55휋 Step: 2 – Window Function: 휔[푛] = [ 2푛 푁 − 1 ; 푓표푟 0 ≤ 푛 ≤ 푡표 푁 − 1 2 2 − 2푛 푁 − 1 ; 푁 + 1 2 ≤ 푛 ≤ 푁 − 1 ] Step: 3 – Coefficients: Coefficient 0 1 2 3 4 5 6 7 hd(n) 0.034696 0.011737 -0.10868 -0.09355 0.127326 0.200547 -0.05687 0.75 ωr(n) 0 0.142857 0.285714 0.428571 0.571429 0.714286 0.857143 1 h(n) 0 0.001677 -0.03105 -0.04009 0.072758 0.143248 -0.048747 0.75 Coefficient 8 9 10 11 12 13 14 hd(n) 0.056872 -0.20055 -0.12733 0.093549 0.108678 -0.01174 -0.034696 ωr(n) 0.857143 0.714286 0.571429 0.428571 0.285714 0.142857 0 h(n) -0.048747 0.143248 0.072758 -0.040092 -0.031051 0.001667 0
  • 6. 6 | P a g e LabVIEW Step: 4.1 – Block Diagram: Step: 4.2 – Front Panel: Reference: “Mikro Elektronika”, http://www.mikroe.com/chapters/view/72/chapter-2-fir-filters/.
  • 7. 7 | P a g e 3. Type of filter and commonly used Windows. S.No. Type of Filter Frequency Response hd[n] 푆푖푛(휔푐 (푛 − 푀)) 1. Low Pass Filter ℎ푑 (푛) = [ 0.54 + 0.46 ∗ 퐶표푠 LabVIEW 휋(푛 − 푀) 푛 ≠ 푀 휔푐 휋 푛 = 푀 ] 2. High Pass Filter ℎ푑 (푛) = [ 1 − 휔푐 휋 푛 ≠ 푀 − 푆푖푛(휔푐 (푛 − 푀)) 휋(푛 − 푀) 푛 = 푀 ] 3. Band Pass Filter ℎ푑 (푛) = [ 푆푖푛(휔푐2(푛 − 푀)) 휋(푛 − 푀) − 푆푖푛(휔푐1(푛 − 푀)) 휋(푛 − 푀) 푛 ≠ 푀 휔푐2− 휔푐1 휋 푛 = 푀 ] 4. Band Stop Filter ℎ푑 (푛) = [ 푆푖푛(휔푐1(푛 − 푀)) 휋(푛 − 푀) − 푆푖푛(휔푐2(푛 − 푀)) 휋(푛 − 푀) 푛 ≠ 푀 1 − 휔푐2− 휔푐1 휋 푛 = 푀 ] S. No. Window Function 1. Triangular (Bartlett) 푊푇 [푛] = 2|푛| 푀 − 1 ; 푓표푟 |푛| ≤ 푀 − 1 2. Hanning 푊ℎ푛 = 1 2 [1 − 퐶표푠2휋푛 푀 − 1 ] ; 3. Hamming 푊퐻푚 = [ 2휋푛 푀 − 1 ; |푛| ≤ 푄 0; 푒푙푒푠푤ℎ푒푟푒 ] 4. Blackman 푊퐵 [푛] = 0.42 + 0.5 ∗ 퐶표푠 2휋푛 푀 − 1 + 0.08 ∗ 퐶표푠 4휋푛 푀 − 1 5. Kaiser 푊푘 [푛] = [ 퐼표(훽) 퐼표(훼) |푛| ≤ 푄 0; 푒푙푒푠푤ℎ푒푟푒 ]
  • 8. 8 | P a g e 4. List of filter icon available in the LabVIEW. Filter icon is available at Functions/Signal Processing/Filters. IIR Filter S. No. Icon Name Function LabVIEW 01. Butterworth Filter Generates a digital Butterworth filter by calling the Butterworth Coefficients VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 02. Chebyshev Filter Generates a digital Chebyshev filter by calling the Chebyshev Coefficients VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 03. Inverse Chebyshev Filter Generates a digital Chebyshev II filter by calling the Inv Chebyshev Coefficients VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 04. Elliptic Filter Generates a digital elliptic filter by calling the Elliptic Coefficients VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 05. Bessel Filter Generates a digital Bessel filter by calling the Bessel Coefficients VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 06. Butterworth Coefficients Generates the set of filter coefficients to implement an IIR filter as specified by the Butterworth filter model. You can pass these filter coefficients, IIR Filter Cluster, to the IIR Cascade Filter VI to filter a sequence of data. 07. Chebyshev Coefficients Generates the set of filter coefficients to implement an IIR filter as specified by the Chebyshev filter model. You can pass these coefficients to the IIR Cascade Filter VI to filter a sequence of data. 08. Inv Chebyshev Coefficients Generates the set of filter coefficients to implement an IIR filter as specified by the Chebyshev II Filter model. You can pass these coefficients to the IIR Cascade Filter VI to filter a sequence of data. 09. Elliptic Coefficients Generates the set of filter coefficients to implement a digital elliptic IIR filter. You can pass these coefficients to the IIR Cascade Filter VI. 10. Bessel Coefficients Generates the set of filter coefficients to implement an IIR filter as specified by the Bessel filter model. You then can pass these coefficients to the IIR Cascade Filter VI.
  • 9. 9 | P a g e LabVIEW 11. Butterworth Order Estimation Estimates the Butterworth filter order. S. No. Icon Name Function 12. Chebyshev Order Estimation Estimates the Chebyshev I filter order. 13. Inverse Chebyshev Order Estimation Estimates the Inverse Chebyshev filter order. 14. Elliptic Order Estimation Estimates the Elliptic filter order. 15. Inverse f Filter Designs and implements an IIR filter whose magnitude-squared response is inversely proportional to frequency over a specified frequency range. This inverse-f filter is typically used to colorize spectrally flat, or white, noise. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 16. Inverse f Filter Coefficients Designs an IIR filter whose magnitude-squared response is inversely proportional to frequency over a specified frequency range. This inverse-f filter is typically used to colorize spectrally flat, or white, noise. 17. IIR Cascade Filter Filters the input sequence X using the cascade form of the IIR filter specified by the IIR Filter Cluster. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 18. IIR Cascade Filter with I.C. Filters the input sequence X using the cascade form of the IIR filter specified by the IIR Filter Cluster. This VI is similar to the IIR Cascade Filter VI except that you specify the initial conditions for this VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 19. IIR Filter Filters the input sequence X using the direct form IIR filter specified by Reverse Coefficients and Forward Coefficients. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 20. IIR Filter with I.C. Filters the input sequence X using the direct form IIR filter specified by Reverse Coefficients and Forward Coefficients. You can use this VI to process blocks of continuous data. This VI is similar to the IIR Filter VI except that you specify the initial conditions for this VI. Wire data to the X input to determine the polymorphic instance to use or manually select the instance.
  • 10. 10 | P a g e LabVIEW 21. Cascade To Direct Coefficients Converts IIR filter coefficients from the cascade form to the direct form. FIR Filter S. No. Icon Name Function 22. Equi-Ripple LowPass Generates a lowpass FIR filter with equi-ripple characteristics using the Parks-McClellan algorithm and the # of taps, pass freq, stop freq, and sampling freq: fs. The Equi-Ripple LowPass VI then applies a linear-phase, lowpass filter to the input sequence X using the Convolution VI to obtain Filtered X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 23. Equi-Ripple HighPass Generates a highpass FIR filter with equi-ripple characteristics using the Parks-McClellan algorithm and the # of taps, stop freq, high freq, and sampling freq: fs. The Equi-Ripple HighPass VI then applies a linear-phase, highpass filter to the input sequence X using the Convolution VI to obtain Filtered X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 24. Equi-Ripple BandPass Generates a bandpass FIR filter with equi-ripple characteristics using the Parks-McClellan algorithm and the higher pass freq, lower pass freq, # of taps, lower stop freq, higher stop freq, and sampling freq: fs. The Equi- Ripple BandPass VI then applies a linear-phase, bandpass filter to the input sequence X using the Convolution VI to obtain Filtered X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 25. Equi-Ripple BandStop Generates a bandstop FIR digital filter with equi-ripple characteristics using the Parks-McClellan algorithm and higher pass freq, lower pass freq, # of taps, lower stop freq, higher stop freq, and sampling freq: fs. The Equi-Ripple BandStop VI then applies a linear-phase, bandstop filter to the input sequence X using the Convolution VI to obtain Filtered X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 26. FIR Windowed Filter Filters the input data sequence, X, using the set of windowed FIR filter coefficients specified by the sampling freq: fs, low cutoff freq: fl, high cutoff freq: fh, and number of taps. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 27. Savitzky-Golay Filter Filters the input data sequence X using a Savitzky-Golay FIR smoothing filter. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 28. FIR Windowed Coefficients Generates the set of filter coefficients you need to implement an FIR windowed filter.
  • 11. 11 | P a g e LabVIEW 29. Parks-McClellan Generates a set of linear-phase FIR multiband digital filter coefficients using the # of taps, sampling frequency: fs, Band Parameters, and filter type. S. No. Icon Name Function 30. Savitzky-Golay Filter Coefficients Designs a Savitzky-Golay FIR smoothing filter. This VI returns the designed Savitzky-Golay filter coefficients and the differentiation filter coefficients. 31. FIR Narrowband Coefficients Generates a set of filter coefficients to implement a digital interpolated FIR (IFIR) filter. 32. FIR Filter Filters the input sequence X using the direct-form FIR filter specified by FIR Coefficients. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 33. FIR Filter with I.C. Filters the input sequence X using the direct-form FIR filter specified by FIR Coefficients. You can use this VI to process blocks of continuous data. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 34. FIR Narrowband Filter Filters the input sequence X using the interpolated FIR (IFIR) filter specified by IFIR Coefficients. Other Filter 35. Smoothing Filter Coefficients Designs filter coefficients for a smoothing filter. You can use this VI to design a moving-average FIR filter or an exponentially-averaging IIR filter. The VI returns reverse coefficients and forward coefficients for direct connection to the IIR Filter VI, which is used to implement both FIR and IIR filters. 36. Zero Phase Filter Applies a zero phase filter to an input sequence X. Wire data to the X input to determine the polymorphic instance to use or manually select the instance. 37. Median Filter Applies a median filter of rank to the input sequence X, where rank is right rank if right rank is greater than zero, or left rank if right rank is less than zero. 38. Mathematical Morphological Filter Filters the input data sequence X with Structure Element using a mathematical morphological filter. 39. Convolution Computes the convolution of the input sequences X and Y. Wire data to the X and Y inputs to determine the polymorphic instance to use or manually select the instance. --- An info4eee presentation, which provides Information for Electrical and Electronics Engineering students. It is the initiative to share the material among the EEE students in a well mannered way. Now available on: info4eee.wordpress.com facebook.com/info4eee