FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW



Similar documents
Data Acquisition Using NI-DAQmx

Lab 3: Introduction to Data Acquisition Cards

Cell Phone Vibration Experiment

Analog Filters. A common instrumentation filter application is the attenuation of high frequencies to avoid frequency aliasing in the sampled data.

Analog Representations of Sound

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

FUNDAMENTALS OF MODERN SPECTRAL ANALYSIS. Matthew T. Hunter, Ph.D.

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

Lab 4 - Data Acquisition

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

LABVIEW DSP TEST TOOLKIT FOR TI DSP

The Calculation of G rms

Lecture 1-6: Noise and Filters

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

Aircraft cabin noise synthesis for noise subjective analysis

Introduction to Digital Audio

Lab 5 Getting started with analog-digital conversion

GETTING STARTED WITH LABVIEW POINT-BY-POINT VIS

The Effective Number of Bits (ENOB) of my R&S Digital Oscilloscope Technical Paper

LAB 12: ACTIVE FILTERS

Three Levels of Data-Logging Software from National Instruments

SUMMARY. Additional Digital/Software filters are included in Chart and filter the data after it has been sampled and recorded by the PowerLab.

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Data Acquisition in LabVIEW

Manual Analysis Software AFD 1201

PeakVue Analysis for Antifriction Bearing Fault Detection

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Analog and Digital Filters Anthony Garvert November 13, 2015

FFT Frequency Detection on the dspic

Non-Data Aided Carrier Offset Compensation for SDR Implementation

Switch Mode Power Supply Topologies

Matlab GUI for WFB spectral analysis

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 46 Per-pin Signal Generator

PHYSICS LAB #2 Passive Low-pass and High-pass Filter Circuits and Integrator and Differentiator Circuits

Time series analysis Matlab tutorial. Joachim Gross

Basics of Digital Recording

SGN-1158 Introduction to Signal Processing Test. Solutions

Lecture - 4 Diode Rectifier Circuits

SIGNAL PROCESSING FOR EFFECTIVE VIBRATION ANALYSIS

Introduction to Digital Filters

Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

Quanser NI-ELVIS Trainer (QNET) Series: QNET HVAC. Heating, Ventilation, and Air Conditioning (HVAC) User Manual. User Manual

Lock - in Amplifier and Applications

See Horenstein 4.3 and 4.4

Analog Signal Conditioning

CALIBRATION PROCEDURE NI Contents. Software Requirements. ni.com/manuals

Optimizing IP3 and ACPR Measurements

PCM Encoding and Decoding:

ANIMA: Non-Conventional Interfaces in Robot Control Through Electroencephalography and Electrooculography: Motor Module

CIRCUITS LABORATORY EXPERIMENT 3. AC Circuit Analysis

Improving A D Converter Performance Using Dither

Similar benefits are also derived through modal testing of other space structures.

Measuring Temperature withthermistors a Tutorial David Potter

Workshop Perceptual Effects of Filtering and Masking Introduction to Filtering and Masking


What the Nyquist Criterion Means to Your Sampled Data System Design. by Walt Kester

Frequency Response of Filters

PHYS 331: Junior Physics Laboratory I Notes on Noise Reduction

Signal to Noise Instrumental Excel Assignment

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

RF Measurements Using a Modular Digitizer

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

CBS RECORDS PROFESSIONAL SERIES CBS RECORDS CD-1 STANDARD TEST DISC

Lab #9: AC Steady State Analysis

MATRIX TECHNICAL NOTES

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Maximizing Receiver Dynamic Range for Spectrum Monitoring

What you will do. Build a 3-band equalizer. Connect to a music source (mp3 player) Low pass filter High pass filter Band pass filter

Vibration analysis and monitoring Compact. Powerful. Modern technology.

Impedance 50 (75 connectors via adapters)

The front end of the receiver performs the frequency translation, channel selection and amplification of the signal.

Getting Started with the LabVIEW Mobile Module

Motorola Digital Signal Processors

DAQ in MATLAB HANS-PETTER HALVORSEN,

Analysis/resynthesis with the short time Fourier transform

SECTION 6 DIGITAL FILTERS

A DESIGN OF DSPIC BASED SIGNAL MONITORING AND PROCESSING SYSTEM

Dithering in Analog-to-digital Conversion

Sophomore Physics Laboratory (PH005/105)

Basics of Simulation Technology (SPICE), Virtual Instrumentation and Implications on Circuit and System Design

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

Evaluating Oscilloscope Sample Rates vs. Sampling Fidelity

Lab 1: The Digital Oscilloscope

H/L = Power supply. FN = Nominal Frequency. RN = Rated value of output burden. UN = Nominal input voltage. IN = Nominal input current.

1995 Mixed-Signal Products SLAA013

Filter Comparison. Match #1: Analog vs. Digital Filters

LabVIEW DSP Test Integration Toolkit for TI DSP

The Fourier Analysis Tool in Microsoft Excel

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Lab 1. The Fourier Transform

Multiplexing and Sampling Theory

How to Design 10 khz filter. (Using Butterworth filter design) Application notes. By Vadim Kim

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

Transcription:

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW Wei Lin Department of Biomedical Engineering Stony Brook University Instructor s Portion Summary This experiment requires the student to use LabVIEW to perform signal analysis on the acquired analog signals. Students should be familiar with the Fast Fourier Transform (FFT) and digital filtering using LabVIEW Uses This lecture applies to all courses of virtual instrumentation. Equipment List Computers LabVIEW 8.5 Express NI-ELVIS benchtop workstation References Lecture Slides of Data Analysis Using LabVIEW VIs from the project Data Acquisition Using NI-DAQmx Student s Portion Introduction The students should learn the basic LabVIEW programming techniques for the FFT and digital filtering. They will modify two VIs developed in the 1

project Data Acquisition Using NI-DAQmx and add frequency spectrum analysis and digital filter in the two VIs. Objectives Theory Perform FFT analysis using LabVIEW Frequency Spectrum Express VI Design and test digital filter using LabVIEW Filter Express VI The Fast Fourier Transform (FFT) and the power spectrum are powerful tools for analyzing and measuring signals from plug-in data acquisition (DAQ) devices. It can measure the frequency components within the signal. FFT-based measurement requires digitization of a continuous signal. According to the Nyquist criterion, the sampling frequency, F s, must be at least twice the maximum frequency component in the signal. If this criterion is violated, a phenomenon known as aliasing occurs. When the Nyquist criterion is violated, frequency components above half the sampling frequency appear as frequency components below half the sampling frequency, resulting in an erroneous representation of the signal. This is called frequency aliasing. Therefore, before a signal is digitized, antialiasing filters are used to attenuate the frequency components at and above half the sampling frequency to a level below the dynamic range of the analog-to-digital converter (ADC). Spectral leakage is another issue in FFT analysis. It is the result of an assumption in the FFT algorithm that the time record is exactly repeated throughout all time and that signals contained in a time record are thus periodic at intervals that correspond to the length of the time record. If the time record has a nonintegral number of cycles, this assumption is violated and spectral leakage occurs. To alleviate the spectrum leakage, a predefine window function is applied to the signals to be analyzed. Filters alter or remove unwanted frequencies from your signal. Depending on the frequency range that they either pass or attenuate, they can be classified into the following types: A lowpass filter passes low frequencies, but attenuates high frequencies. A highpass filter passes high frequencies, but attenuates low frequencies. A bandpass filter passes a certain band of frequencies. A bandstop filter attenuates a certain band of frequencies. Digital filters have the following advantages over their analog counterparts: 2

They are programmable in terms of filter order, cutoff frequencies, and amount of ripple. They are stable and predictable. They do not drift with temperature or humidity and do not require precision components. They have a superior performance-to-cost ratio. Therefore, it is recommended to use digital filters in instrumentation except for the antialiasing filter. LabVIEW has two express VIs for FFT analysis and digital filtering. They are frequency spectrum express VI and filter express VI. Lab Procedure Experiment 1: Create a LabVIEW application of frequency spectrum analysis: 1. Launch LabVIEW. 2. Load finite data acquisition VI. 3. Add the frequency spectrum VI (Express->Signal Analysis- >Spectral). Configure the output of the express VI as linear in result section and set window as None. 4. Connect the waveform data from DAQmx read VI to the signal terminal of the frequency spectrum express VI. 5. Add a graph indicator on the front panel and connect the output (FFT-(RMS)) of the frequency spectrum VI (FFT) to the graph. 6. Keep the ELVIS unit off. Connect the output of function generator FUNC OUT to ACH0 using connection wire on the prototype board. 7. Turn ELVIS unit on including the prototype board. 8. Launch ELVIS application and choose function generator. 9. Enter the parameters for the controls of the LabVIEW. Recommended sampling frequency is 1000 Hz and number of samples is 1000. 10. Set the frequency, and function type of the signal generator (recommended function: sine wave, frequency 20 Hz. and run the VI and observe the frequency spectrum. In this case, you should collected integer number of cycles of the signal. Therefore, no spectrum leakage is present. 11. Change the signal frequency or the number of samples so that there is a disconnection at the end of the signal (non integer number of cycles collected) and observe the spectrum leakage. 12. You may need to add write Meas file VI to same the signal and the FFT result for your lab report. 13. Save the VI 3

Experiment 2, Create a LabVIEW application of digital filter: 1. Use the VI from previous experiment. 2. Add two more graph indictors on the front panel for the filtered signal and the spectrum of the filtered signal. 3. Add a filter express VI (Express->Signal Analysis->Filter) and connect the output from the DAQmx VI to the signal terminal of the filter VI 4. Connect the output of filter to the graph indicator of filtered signal. 5. Add another frequency spectrum express VI (Express->Signal Analysis->Spectral) on the block diagram and connect the filtered signal to its input. 6. Connect the output of the above frequency spectrum express VI to the graph indicator of the filtered signal spectrum. 7. Combine the two dynamic data, the spectrum of the original signal and the spectrum of the filtered signal using signal manipulation VI (Express->Signal Manipulate->merge signals) and connect it to the Write LabVIEW Measurement Data express VI (Express- >Output->write meas data). In the wizard, select a. Ask user to choose file b. Ask each iteration c. If a file already exists, overwrite file d. X value columns: one column per channel 8. Run the application and record the results in files. The following are the suggestions for the test of digital filters. a. Use square wave at low frequency, far below the sampling frequency. (20 Hz) b. Change the cutoff frequency of the filter. c. Change the type of filter, e.g. lowpass or highpass. d. Change the order of the filter. (optional) e. Change the topology of the filter. (optional) Experiment 3. (Extra credits): Using FFT to measure the cutoff frequencies of the band pass filter you made in the previous lab. The expected solution will use one or two measurements to estimate the cutoff frequencies instead of using multiple sinusoidal signals. Lab Report 1. Objective. 2. Theory (What it FFT? Filter?) 3. Data: Demonstrate frequency spectrum of the tested signal and filter effects. 4. Due on 11/14/2008 4

Reference VIs FFT VI Filter VI 5