Laboratory Experiment #1 Introduction to Spectral Analysis

Similar documents
LAB #7: Digital Signal Processing

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

Lab 1B LabVIEW Filter Signal

3.2 Measuring Frequency Response Of Low-Pass Filter :

Laboratory Experiment #2 Frequency Response Measurements

P a g e 1 ST985. TDR Cable Analyzer Instruction Manual. Analog Arts Inc.

Magnitude and Phase Measurements. Analog Discovery

LabVIEW Basics Peter Avitabile,Jeffrey Hodgkins Mechanical Engineering Department University of Massachusetts Lowell

Experiment 2: Electronic Enhancement of S/N and Boxcar Filtering

LLS - Introduction to Equipment

ENGR 210 Lab 12: Sampling and Aliasing

PSM Soft. Features and Functions January PC Software Guide. Getting connected and Communication

SigCal32 User s Guide Version 3.0

MultiSim and Analog Discovery 2 Manual

Fig. 1. NI Elvis System

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

An Introductory Guide to Circuit Simulation using NI Multisim 12

Lab 9 Frequency Domain

UCE-DSO210 DIGITAL OSCILLOSCOPE USER MANUAL. FATIH GENÇ UCORE ELECTRONICS REV1

Lab #2 First Order RC Circuits Week of 27 January 2015

SAMPLE: EXPERIMENT 2 Series RLC Circuit / Bode Plot

SigCalRP User s Guide

Introduction to the Analog Discovery

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

Signal Processing for Digitizers

ME scope Application Note 01 The FFT, Leakage, and Windowing

Combinational logic: Breadboard adders

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

Introduction to Lab Instruments

Precalculations Individual Portion Introductory Lab: Basic Operation of Common Laboratory Instruments

Build Your Own Bose WaveRadio Bass Preamp Active Filter Design

The Fundamentals of FFT-Based Signal Analysis and Measurement Michael Cerna and Audrey F. Harvey

Introduction to Simulink

Notes on Experiment #1

Page 1/10 Digilent Analog Discovery (DAD) Tutorial 6-Aug-15. Figure 2: DAD pin configuration

Contents. Introduction 1 1 Suggested Reading 2 2 Equipment and Software Tools 2 3 Experiment 2

UCE-DSO212 DIGITAL OSCILLOSCOPE USER MANUAL. UCORE ELECTRONICS

ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

EE 210 Lab Exercise #3 Introduction to PSPICE

MASSACHUSETTS INSTITUTE OF TECHNOLOGY /6.071 Introduction to Electronics, Signals and Measurement Spring 2006

ECE 440L. Experiment 1: Signals and Noise (1 week)

EET 223 RF COMMUNICATIONS LABORATORY EXPERIMENTS

Use of the LTI Viewer and MUX Block in Simulink

LAB I. INTRODUCTION TO LAB EQUIPMENT

Experiment 8: An AC Circuit

Noise Measurements Using a Teledyne LeCroy Oscilloscope

ECE 6416 Low-Noise Electronics Orientation Experiment

The oscilloscope and RC filters

Spectrum Analysis: The FFT Display

Sampling and Reconstruction

The object of this experiment is to become familiar with the instruments used in the low noise laboratory.

Lab 3: RC Circuits. Construct circuit 2 in EveryCircuit. Set values for the capacitor and resistor to match those in figure 2 and set the frequency to

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS

Time-Varying Signals

Pre-Lab. Introduction

Fourier Theory & Practice, Part II: Practice Operating the Agilent Series Scope with Measurement/Storage Module

New Features of IEEE Std Digitizing Waveform Recorders

EE 2274 RC and Op Amp Circuit Completed Prior to Coming to Lab. Prelab Part I: RC Circuit

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm

Oscilloscope (dual channel, xy, time division, trigger); log, lines, bar, octaves band analysis 1/3, 1/6, 1/9, 1/12, 1/24);

Frequency and Time Domain Representation of Sinusoidal Signals

EENG-201 Experiment # 4: Function Generator, Oscilloscope

8A. ANALYSIS OF COMPLEX SOUNDS. Amplitude, loudness, and decibels

Electrical & Computer Engineering Technology

ADC, FFT and Noise. p. 1. ADC, FFT, and Noise

FFT Analyzer. Gianfranco Miele, Ph.D

Fourier Signal Analysis

Introduction to Oscilloscopes Instructor s Guide

Chapter 5 Window Functions. periodic with a period of N (number of samples). This is observed in table (3.1).

Quadrature Amplitude Modulation (QAM) Experiments Using the National Instruments PXI-based Vector Signal Analyzer *

Laboratory Assignment 1 Sampling Phenomena

Real-Time FFT Analyser - Functional Specification

Getting Started. MSO/DPO Series Oscilloscopes. Basic Concepts

Tektronix digital oscilloscope, BK Precision Function Generator, coaxial cables, breadboard, the crystal earpiece from your AM radio kit.

The Discussion of this exercise covers the following points: Filtering Aperture distortion

II. LAB. * Open the LabVIEW program (Start > All Programs > National Instruments > LabVIEW 2012 > LabVIEW 2012)

ME scope Application Note 02 Waveform Integration & Differentiation

ECE 2111 Signals and Systems Spring 2009, UMD Experiment 3: The Spectrum Analyzer

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Figure E2-1 The complete circuit showing the oscilloscope and Bode plotter.

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual

Experiment 1 Introduction to MATLAB and Simulink

ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

Lab Reference Manual. ECEN 326 Electronic Circuits. Texas A&M University Department of Electrical and Computer Engineering

INTRODUCTION TO AGILENT VEE

Transfer Function (TRF)

Laboratory Experience #5: Digital Spectrum Analyzer Basic use

UNIVERSITY OF CALIFORNIA, SANTA BARBARA Department of Electrical and Computer Engineering. ECE 2A & 2B Laboratory Equipment Information

Lab 13 AC Circuit Measurements

LABORATORY 4. Palomar College ENGR210 Spring 2017 ASSIGNED: 3/21/17

Gentec-EO USA. T-RAD-USB Users Manual. T-Rad-USB Operating Instructions /15/2010 Page 1 of 24

ECE 2274 Lab 1 (Intro)

Frequency Domain Representation of Signals

CLIO Pocket is Audiomatica's new Electro-Acoustical Multi-Platform Personal measurement system.

Analog Discovery Arbitrary Function Generator for Windows 7 by Mr. David Fritz and Ms. Ellen Robertson

When and How to Use FFT

Digital Communications Simulation Software (LVSIM -DCOM)

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

Analog Arts SF900 SF650 SF610 Product Specifications

ESE 150 Lab 04: The Discrete Fourier Transform (DFT)

Transcription:

J.B.Francis College of Engineering Mechanical Engineering Department 22-403 Laboratory Experiment #1 Introduction to Spectral Analysis Introduction The quantification of electrical energy can be accomplished using a digital multimeter, analog oscilloscope, or a PC based digital data acquisition system. The oscilloscope and PC are capable of displaying traces that vary with time. Inverting the period of a signal will result in the determination of frequency. However, these instruments are limited to measuring signals that are fairly simple to quantify. As the signal becomes more complex, the ability to accurately determine the frequency components of the signal decreases. A dynamic spectral analyzer can be used to analyze the frequency components of a signal which may not be distinguishable with either the oscilloscope, digital multimeter, or the PC based digital data acquisition system. The objective of this experiment is to introduce a means of analyzing signals using a dynamic spectral analyzer. In doing so, the conversion of time to frequency domain data using Fast Fourier Transformations (FFT) will be examined. Also, errors inherent with FFT and methods used to reduce these errors will be studied. Pre-Lab Analysis 1. A spectrum analyzer will be used to acquire frequency domain data between 0 and 4000 Hz. What is the minimum sampling rate required? At what increment of time will the signal be acquired? 2. Define the term leakage, when used to express errors associated with frequency domain digital data acquisition. 3. Explain two methods that may be used to reduce leakage. 4. What purpose does an anti-aliasing filter serve? What error may they cause? Background The Dactron Photon multichannel dynamic signal analyzer is capable of displaying signals in the frequency domain by transforming time domain traces using Fast Fourier Transformation (FFT). Prior to performing FFT on the signal, analog to digital conversion (ADC) must be accomplished. Nyquist sampling theory states that the sampling rate must be at least two times the frequency of the signal in order to obtain a true representation of the signals frequency. Introduction to Spectral Analysis 1 Mechanical Engineering Department

S R > 2(f max ) where S R is the sampling rate and f max is the highest frequency being measured. The error associated with sampling at a low rate is called aliasing. The analyzer is equipped with anti-aliasing filters that reduce errors associated with sampling high frequency signals. Although anti-aliasing filters can be beneficial, caution is required when using them. Fast Fourier Transformation of a time domain trace is required in order to properly analyze complex signals. Figure #A is a time domain trace that is comprised of two sine waves. The frequencies of this signal cannot be easily determined. Figure #A Time domain trace However, if the same signal is transformed from the time domain to the frequency domain, the determination of the frequency components that comprise the signal can be made much more effectively. Figure #B is a frequency domain trace which was generated by performing a FFT on the signal shown in figure #A. Figure #B Frequency domain trace Introduction to Spectral Analysis 2 Mechanical Engineering Department

The transformation from the time to the frequency domain is based on the Fourier Transform. This Fourier Transform is defined as follows: where X(t) = the time domain representation of the signal X S x (f) = the frequency domain representation of the signal j= -1 Although the signal being analyzed is analog, which is continuous, the signal is digitized prior to performing the transformation. This digitized signal is comprised of discrete quantities; therefore an approximation of the true Fourier Transform may be obtained by performing numerical integration. The approximation of the true integral is called the Discrete Fourier Transform. Because the signal can only be evaluated at discrete points the transform becomes: Also, the computation of an integral is required. This can be done by computing the area under the curve defined by the function. The area under the curve will be obtained using the rectangular rule. The transform will now be expressed as follows: Finally, the signal must be sampled from - to +. However, this is not practical and the transformation must occur over a limited amount of time. The resulting transformation is called a Discrete Fourier Transformation which can be expressed as follows: Introduction to Spectral Analysis 3 Mechanical Engineering Department

Introduction to PHOTON II Analyzer Note: 1. The text formatted in bold and Italic is an icon in the RT Pro Photon software, e.g. (Y Axis Format) 2. The text formatted in (BOLD CAPTION) is the setting up of the hardware, e.g (SUMMING BLOCK OUTPUT) Assignment #1: PHOTON II Set Up 1. Open the RT Pro Photon analyzer from the programs menu or from the desktop icon. In the new project window select: New Realtime Processing - Signal Analysis & Waveform source to open a new project. The Photon project Graphic User Interface is shown in Figure 1. Channel Status Window. Main Window. Signal Setup Tabs. Figure 1: RT Pro Photon GUI. Introduction to Spectral Analysis 4 Mechanical Engineering Department

Look around the GUI to get familiarized with the program. The channel status window shows the properties of the signals of different channels. The main window shows the waveform of time and frequency domains of the input signals. The tabs on the right side of the GUI can be used to setup the properties for the measurement of the input signal and for the waveform source. Figure 2 shows the measurement and waveform tabs. Figure 2: Measurement and Waveform Source Tabs. 2. Select Setup Engineering Units... Select appropriate units in the Engineering Units window by following Figure 3 and click OK. Figure 3: Engineering Units Window. Introduction to Spectral Analysis 5 Mechanical Engineering Department

3. Select Setup Measurement Request Signal Setup... Alternately, clicking on the Signals button in the Measurement tab links to the same window. In the Signal Setup window select the check boxes in the two tabs as shown in Figure 4 (a) & (b) and click OK. (a) Auto Channel Signals Tab. (b) Cross Channel Signals Tab. Figure 4: Signal Setup window 4. Right click on the frequency domain plot in the main window of the GUI and select Contents in the popup. In the Contents window (Figure 5) change the Display Unit to EUpk (Engineering Units peak). Also change the Y Axis Format to Mag (Linear Magnitude). Click Introduction to Spectral Analysis 6 Mechanical Engineering Department

OK. The Y Axis Format can also be changed by selecting one of the icons in the toolbar on top. Open the Contents window for the time domain plot and make sure the Y Axis Format is set to Real. Figure 5: Contents Window. 5. Click on the green Start button in the Measurement tab to start acquiring the data from the Photon Analyzer. Notice that the analyzer is set to acquire data continuously. Since there is no signal being input into the analyzer, the displayed trace is simply low-level noise. Note the signal properties in the Channel Status window. 6. Click on the numbers on the X Axis on any one of the plots in the main window to open the Change X Limit window (Figure 6). The limits of the X axis can be changed to zoom into a particular region of the plot. Click OK. Introduction to Spectral Analysis 7 Mechanical Engineering Department

Figure 6: Change X Limit window. 7. Click on the button on the bottom left of the plots in main window to select or unselect the channels that are displayed. 8. Select Cursor Add Normal Cursor. To add a cursor on one of the selected plots in the main window. Drag the cursor using the mouse or by using the left and right arrow keys on the keyboard. This is how to record the pertinent values. 9. Select Report Report Setup to open the Report Setup window. Select the Word Active Report in the Report Type tab and click OK. Figure 7: Report Setup window. Introduction to Spectral Analysis 8 Mechanical Engineering Department

10. Select Report Quick Report to generate a report in word format. The ActiveX format cursors can be added to the waveform plots to record the pertinent information. This will not work if macros are not enabled in Microsoft Word. Assignment #2: Acquisition of a Pure Tone The time domain signal being analyzed is converted to the frequency domain by performing a Discrete Fourier Transformation. In order to correctly produce the true frequency, the time domain signal must be periodic in the sample window. When analyzing a pure tone such as a sine wave, the signal is periodic if the amplitude and phase are equal at the beginning and end of the sample window. If the signal is not periodic, a leakage error will occur resulting in a distortion of the frequency domain trace. Procedure: Figure 8: Periodic and Non-periodic signal window 1. Set the frequency band of measurement to 1000 Hz by selecting from pull down menu next to Span 1000 Hz in the Measurement tab. Set the number of spectral Lines to 100. 2. Set the Window to None. 3. Select Waveform Source Sine as the output signal. Set the amplitude to 1 Volt and frequency to 150 Hz. Introduction to Spectral Analysis 9 Mechanical Engineering Department

Figure 9: Measurement and Waveform Source Tabs 4. Connect the OUTPUT of the Photon II analyzer to its Channel 1 using a BNC cable. 5. Click on the green Start Source button to start generating a pure tone sine wave. 6. Click on the green Start button on the Measurement tab to start measuring the signal from Channel 1. 7. Add a Normal Cursor by clicking Cursor Add Normal Cursor and record all pertinent information for post-lab data analysis. 8. Click on the Average button in the measurement tab to open the Average window. Select Average Type Linear and set the Average Frame Number to 10. Introduction to Spectral Analysis 10 Mechanical Engineering Department

Figure 10: Average Window 9. Now change the source frequency to 155 Hz and record all the pertinent information for post-lab data analysis. 10. The leakage that is present in the displayed waveform can be reduced with the use of a window. Select Hanning from the pull down menu next to the Window icon in the measurement tab. Note the effects a window has on the leakage that occurs when performing a FFT on a non-periodic signal. 11. Now apply a Flat Top window to the signal. Plot the resulting trace. Take note of all pertinent information. Assignment #3: Acquisition of a Pure Tones and Random Noise The dynamic signal analyzer is a powerful instrument when used properly. As with all digital data acquisition, the trace displayed by the analyzer may not always be an accurate indication of the actual signal being acquired. Also, the signal displayed may be comprised of desired components as well as undesired background noise. The ability to determine a good measurement from a poor one is an essential part of making viable conclusion based on experimental results. The objective of this assignment is to acquire a signal that is comprised of a pure tone and random noise. Procedure: 1. Connect the OUTPUT from the function generator to Channel #1 of the Photon analyzer. 2. Set the display to Log Magnitude in the Main Frequency Window. Adjust the amplitude tuner on the function generator to generate an 800 Hz sine wave. Use Introduction to Spectral Analysis 11 Mechanical Engineering Department

the multi-meter to adjust the function generated to an amplitude of 5 Vpp (Volt Peak to Peak). Make sure the attenuation button on your function generator is off. Then double check the peak value using the Channel Status window. The Peak value location is framed with red in Figure 11. 3. Figure 11: Channel Status Window---Peak Value Monitoring 4. Set the frequency Span of the analyzer to be from 0.0 Hz to 8 KHz. Change the number of Lines to 3200. 5. Set the Window on the Measurement tag to None using the dropdown menu. 6. Turn the Average function on, allowing the analyzer to complete 10 Linear Averages of the input signal. Examine the resulting trace, note that multiple frequencies are displayed. 7. Connect the Internal Source of the Phonon Analyzer and output from the function generator to INPUT #1 and INPUT #2 of the SUM BLOCK. Connect the SUMMING BLOCK OUTPUT to CHANNEL # 1. (Refer to the figure 12) Introduction to Spectral Analysis 12 Mechanical Engineering Department

Figure 12: Diagram of the Setting up in Assignment #3 8. Set the Function Generator to generate a 100 Hz sine wave with amplitude of 5 Vpp. Create a 10 Hz sine wave of amplitude 0.1 Vpp with the Photon Analyzer s Waveform Source. Set the frequency range of the analyzer from 0.0 Hz to 1000 Hz with 200 Lines. Allow 10 Averages and plot the result. 9. Set the Function Generator to generate a 100 Hz sine wave with amplitude of 5 Vpp. Alter the source of the analyzer to Pseudo Random at the Waveform Source window. Set the level to 0.1 Volt RMS. Set the frequency Span of the analyzer to go from 0.0 Hz to 1000 Hz with 200 Lines. Allow for 10 Averages, record any pertinent information and plot the spectral trace. Turn Averaging Off and plot the resulting spectral trace. Make sure to check the Stop at Frame Number box and type in a low number such as 10. 10. Increase the random noise level to 1 Volt RMS. Record any resulting information and plot the spectral trace both with and without averaging. Assignment #4: Filter Characterization The characteristics of a filter can be determined through frequency response measurements. A random excitation can be applied to the filter as an input signal and the output response measured. These time signals can be transformed to the frequency domain and the ratio of output to input (aka, frequency response function) can be measured. The cutoff frequency can be determined from the Bode plot (db Magnitude vs Log frequency). This assignment will identify the characteristics of a filter. Introduction to Spectral Analysis 13 Mechanical Engineering Department

Procedure: 1. Hookup the Output of the Photon Analyzer to the Input of the Filter as well as Channel 1 of the Signal Analyzer. Hook up the Output of the Filter to Channel 2 of the Photon Analyzer. See Figure 13. OUT PUT USB DYNAMIC SIGNAL ANALYZER 1 2 3 4 FILTER IN OUT.. Figure 13: Assignment #4 and #5 Equipment Configuration 2. Select a bandwidth with a 2.0 KHz upper frequency; a lower frequency bandwidth may be necessary depending on the actual filter used. Set the frequency span of the analyzer by selecting the Measurement tab. In Span scroll down until 2000 KHz is reached. Select 800 Lines. 3. On Measurement tab click on Window and select None. 4. Press the Waveform Source tab. Select White Noise in Waveform frame. Set the amplitude to 1 Volt RMS. Click on the Start Source button. 5. Make sure that the two channels signals can be observed. If not, click on the left lower corner of the window and check both signals. 6. Measure the frequency response function with 20 or more averages such that a suitable measurement is obtained (the coherence function should be used as an indication of a suitable measurement). Click on the Measurament tab and click on Average. Click on the Settings tab, then select Linear as the Average Type. On Average Frame Number type 40. Select Frequency in the Average Domain frame. Check Stop at frame number and type 40. Introduction to Spectral Analysis 14 Mechanical Engineering Department

7. Measure the frequency response function with 20 or more averages such that a suitable measurement is obtained (the coherence function should be used as an indication of a suitable measurement).in the main menu select Window, New window and click in the left lower corner of the new window check COH2,1(F) to view the coherence. 8. Plot the db magnitude vs. Log frequency of the function. Right click in the frequency plot then select CONTENTS. In Y AXIS FORMAT select dbmag and check Log in X AXIS TYPE frame. 9. Right click on the left bottom corner of the pane and select EXPORT TO EXCEL, ALL SIGNALS. Save the data in Excel for Future Analysis. Assignment #5: Sinusoidal Filter Excitation A sine wave input to the filter will have its amplitude modified depending on the frequency of the sine wave and the specific filter characteristics. The ratio of the output amplitude to the input amplitude will be determined in this portion of the lab. Procedure 1. Using the same equipment configuration as assignment #4. Multiple sinusoidal input frequencies will be investigated. These will be distributed across the cutoff frequency of the filter. 2. Select a fixed sine wave of amplitude 1 Volt peak for all measurements to be collected. Select the Waveform Source tab. Select Sine from the waveform frame. Type the desired frequency on Frequency (Hz). Type 1 as the Amplitude in Amplitude text box. Click on Start Source. 3. In the Frequency Spectrum pane, Right Click and select Contents then in Y AXIS FORMAT select Magnitude. Then click on the left bottom corner of the pane and Uncheck G2,2(f). 4. Measure the input and output spectrum amplitudes at each of the frequencies selected. Press in the toolbars. Now record the amplitude using the cursor (You can Right Click on the cursor and select Track To Peak). 5. Click on the left bottom corner of the pane then check G2,2(f) and Uncheck G1,1(f).Record the Output Data. 6. Follow the same procedure for the remaining frequencies. Introduction to Spectral Analysis 15 Mechanical Engineering Department

Post-Lab Analysis 1. Explain why a dynamic signal analyzer is used to make measurements. Define the term leakage as it relates to spectral analysis measurements. 2. Why is leakage present in frequency domain measurements? 3. List methods that could be used to reduce leakage. Explain the limitations of each method. Refer to plots generated during the lab exercise. 4. Which type of window will best preserve the frequency of a signal? 5. Why would the logarithmic scale of the analyzer be used? 6. If a pure tone at 800 Hz was generated with the function generator and measured with the analyzer, why did the analyzer generate multiple spectral lines in assignment #3? 7. Referring to the plots generated in assignment #3, discuss why the random noise levels were decreased after averaging. 8. Discuss how the level of noise can affect the accuracy of a spectral analysis of a signal. 9. Plot the frequency response function of Assignment #4 for the filter characteristics measured. 10. Identify the cutoff frequency. 11. Plot the ratio of the output to input power spectrum from Assignment #5. Note any differences or similarities to the plot in Assignment #4. 12. List recommendations that should be followed to properly perform a spectral analysis of a time domain signal in order to minimize measurement errors. Introduction to Spectral Analysis 16 Mechanical Engineering Department