ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS

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

Lab 6 Instrument Familiarization

Lecture 3 Complex Exponential Signals

Physics 115 Lecture 13. Fourier Analysis February 22, 2018

Laboratory Experiment #1 Introduction to Spectral Analysis

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

LAB #7: Digital Signal Processing

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

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

LAB II. INTRODUCTION TO LABVIEW

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

Easy Transfer Function Measurements with LabVIEW 6i (Lab Skill Exercise X-1)

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

PHYC 500: Introduction to LabView. Exercise 9 (v 1.1) Spectral content of waveforms. M.P. Hasselbeck, University of New Mexico

Fourier Signal Analysis

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

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

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

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

6.02 Practice Problems: Modulation & Demodulation

Department of Electronic Engineering NED University of Engineering & Technology. LABORATORY WORKBOOK For the Course SIGNALS & SYSTEMS (TC-202)

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

SAMPLING THEORY. Representing continuous signals with discrete numbers

sin(wt) y(t) Exciter Vibrating armature ENME599 1

Experiment Guide: RC/RLC Filters and LabVIEW

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

EKT 314/4 LABORATORIES SHEET

Discrete Fourier Transform (DFT)

Lab 3 SPECTRUM ANALYSIS OF THE PERIODIC RECTANGULAR AND TRIANGULAR SIGNALS 3.A. OBJECTIVES 3.B. THEORY

Spectrum Analysis: The FFT Display

CHAPTER 4 IMPLEMENTATION OF ADALINE IN MATLAB

Lab 6: Building a Function Generator

EE 422G - Signals and Systems Laboratory

LLS - Introduction to Equipment

EE 233 Circuit Theory Lab 2: Amplifiers

Instruction Manual for Concept Simulators. Signals and Systems. M. J. Roberts

INTRODUCTION TO AGILENT VEE

Laboratory set-up for Real-Time study of Electric Drives with Integrated Interfaces for Test and Measurement

Graphing Sine and Cosine

The Sine Function. Precalculus: Graphs of Sine and Cosine

EEL 4350 Principles of Communication Project 2 Due Tuesday, February 10 at the Beginning of Class

Frequency and Time Domain Representation of Sinusoidal Signals

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

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

Coming to Grips with the Frequency Domain

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

The Discrete Fourier Transform. Claudia Feregrino-Uribe, Alicia Morales-Reyes Original material: Dr. René Cumplido

Objectives. Abstract. This PRO Lesson will examine the Fast Fourier Transformation (FFT) as follows:

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

EC310 Security Exercise 20

Lab 1B LabVIEW Filter Signal

EENG-201 Experiment # 4: Function Generator, Oscilloscope

GENERATION OF SIGNALS USING LABVIEW FOR MAGNETIC COILS WITH POWER AMPLIFIERS

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

Discrete Fourier Transform

IMAGE PROCESSING FOR EVERYONE

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

L A B 3 : G E N E R A T I N G S I N U S O I D S

The Fundamentals of Mixed Signal Testing

Laboratory Assignment 4. Fourier Sound Synthesis

How to Graph Trigonometric Functions

Waveshaping Synthesis. Indexing. Waveshaper. CMPT 468: Waveshaping Synthesis

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

Lab Report #10 Alex Styborski, Daniel Telesman, and Josh Kauffman Group 12 Abstract

Basic Signals and Systems

Week 4: Experiment 24. Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance

Frequency Domain Representation of Signals

Experiment 1 Introduction to MATLAB and Simulink

Notes on Experiment #1

Beam Dynamics + Laser Micro Vibrometry 1

Dept. of Electrical, Computer and Biomedical Engineering. Inverting and non inverting amplifier

Lab week 4: Harmonic Synthesis

ENGINEERING FOR RURAL DEVELOPMENT Jelgava, EDUCATION METHODS OF ANALOGUE TO DIGITAL CONVERTERS TESTING AT FE CULS

ECEn 487 Digital Signal Processing Laboratory. Lab 3 FFT-based Spectrum Analyzer

1 ONE- and TWO-DIMENSIONAL HARMONIC OSCIL- LATIONS

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Project I: Phase Tracking and Baud Timing Correction Systems

DFT: Discrete Fourier Transform & Linear Signal Processing

Experiment 9 The Oscilloscope and Function Generator

5.3 Trigonometric Graphs. Copyright Cengage Learning. All rights reserved.

Experiment #2: Introduction to Lab Equipment: Function Generator, Oscilloscope, and Multisim

BME/ISE 3511 Laboratory One - Laboratory Equipment for Measurement. Introduction to biomedical electronic laboratory instrumentation and measurements.

Sound synthesis with Pure Data

Agilent 33220A Function Generator Tutorial

E40M Sound and Music. M. Horowitz, J. Plummer, R. Howe 1

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

ECEGR Lab #8: Introduction to Simulink

Lab 4 Digital Scope and Spectrum Analyzer

1 Introduction and Overview

EE 210 Lab Exercise #3 Introduction to PSPICE

Cyclone II Filtering Lab

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

2 Oscilloscope Familiarization

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

Experiment No. 2 Pre-Lab Signal Mixing and Amplitude Modulation

The figures and the logic used for the MATLAB are given below.

Physics 120 Lab 1 (2018) - Instruments and DC Circuits

Harmonic Distortions Analyzer for Power Rectifiers

EE 4440 Comm Theory Lab 5 Line Codes

Experiments #6. Convolution and Linear Time Invariant Systems

Transcription:

ME 365 EXPERIMENT 8 FREQUENCY ANALYSIS Objectives: There are two goals in this laboratory exercise. The first is to reinforce the Fourier series analysis you have done in the lecture portion of this course. The second is to improve your LabVIEW programming skills. These goals are to be met with the student s completion of a Fourier-based LabVIEW program. After completing this lab, you should be able to: Find the Fourier coefficients for a periodic signal. Reconstruct a periodic signal using a combination of sinusoids Decompose a periodic signal into its Fourier series and understand why this is useful. About the program: The VI that you will construct today is modeled after the Sine-only form of the Fourier series, given with: 2 nt y(t) M / 2 M sin( ) o n n T n 1 where between the k is the phase term. From the pre-lab exercise you should be comfortable converting A k and in the Sine-only Fourier expression. B k in the Sine and Cosine Fourier expression and the related coefficients Now load Fourier.vi from the 365 library. As a starting block, you are given the front panel shown below in figure 1. Your work will occur on the associated wiring diagram. 1

Figure 1: The Front Panel (Location: vi... /DESKTOP /ME365 /ME365.LLB /Fourier.vi) This is the completed front panel. You should recognize that all of the numeric constants are controllers, or inputs to the VI. The outputs are the Front Panel s graphical display as well as a continuously generated voltage corresponding to the waveform. This continuous waveform will come out of DAC0 port on the data acquisition interface. It is your task to correctly complete a VI which will take the VI s inputs, generate the function y(t), graph it, and send it to the D/A output port. What follows is an outline of the steps you will need to take. Procedure: Based on the form of the Sine only Fourier series an algorithm can be developed: 1. Collection and organization of the inputs Before you do any wiring you should be comfortable with what the inputs are. Each row of amplitude, phase, and frequency multiplier will provide information for the generation of one sinusoid. Therefore you must be careful to keep the sets together. The inputs of fundamental 2

frequency and sampling frequency are used several times. For example, they will be used in the generation of each sinusoid. Locate each of these inputs in the Wiring Diagram and make an effort to keep organized. 2. Generation of sinusoids As the Fourier series is a collection of sinusoids, you will need a method of sine wave generation. To do this we will use an existing Sine Pattern VI. It is located by expanding the tools menu, selecting Signal Processing, then Signal Generation, then Sine Pattern.VI. Its wiring diagram and location are shown in figure 2. Figure 2: Sine Pattern This VI has four inputs: number of points (samples), amplitude, phase and cycles. It is important to note that the vi expects phase in degrees, not radians. The number of points to be used in the generation is equal to the sampling frequency divided by the fundamental frequency (take a minute to verify this). The fundamental frequency multiplier corresponds to the Fourier summation counter k. For clarity, when k=1 we will generate the fundamental sinusoidal component. Its period, given by T 0 =1/ f 0, is the period of the function y(t). When k=2 we will generate a sinusoidal component that goes through two of full oscillations in T 0 seconds. NOTE: The cycles input can only be positive integers. Sine Pattern.vi outputs the generated sinewave. Although it is not necessary, it will be easiest to use a separate Sine Pattern.vi for each of the six input sets; you can use cut and paste to save time. NOTE: You may create a DC term by using a Numerical Control labeled as DC OFFSET. 3

3. Collection of sinusoids Once all the appropriate sinusoids are generated they must be summed together. For this task you may use BigSum.vi shown in figure 3. array inputs output array Figure 3: BigSum.vi (Location: Select a VI... / ME365 /ME365_support.LLB /BigSum.vi) This VI was built for this exercise and replaces multiple summing blocks. It takes up to six arrays as inputs and sums them term by term to generate one array as its output. Use this to simplify the wiring in your Wiring Diagram. 4. Graphing and outputting To view the function we will need to send it to the Front Panel s Time History plot. Call up Scope.vi and follow its wiring directions as shown in figure 4. inputs: sampling freq fundamental freq array loop counter "i" Figure 4: Scope.vi output bundle (Location: Select a VI... /ME365 /ME365_support.LLB /Scope.vi) This VI was also designed for this specific laboratory. Scope.vi provides two major services: It creates the appropriate time axis for the Time History on the Front Panel you ve been given. It also automatically sends the generated waveform to the DAC0 port which can be viewed on the oscilloscope. NOTE: In order to create a continuous signal from a waveform of finite length you must incorporate a loop. That is to say, everything you ve done in your Wiring Diagram now needs to be encased in one giant While Loop. In fact, the counter (i) from the loop is 4

one of Scope.vi s required inputs. To make the loop run continuously you will also need to add a logic constant, set on true. Wire this to the loop s small green continuation arrow. Looping your code like this will allow you to observe the contribution of each sinusoidal component as it is entered into the Front Panel. The other inputs are the sample frequency, the fundamental frequency, and the array coming out of BigSum.vi. The output from Scope.vi is a cluster containing the waveform and corresponding time information. It must be sent to the Front Panel s Time History plot. With this connected, you are ready to test your VI. VI implementation Use your VI to generate the signals listed below. Display the generated signal on your oscilloscope and then measure it using the Simple Spectrum Analyzer VI, described on pages 6 and 7. Use the continuous run mode of the VI in order to see how the various waves are formed as individual sinusoids are added one by one. 1. Square-wave: The ratios of the coefficients for a square wave with odd symmetry will have only odd number terms. Calculate the coefficients and generate the wave. 2. Sawtooth-wave: The ratios of the coefficients of an odd symmetry sawtooth will have both even and odd numbered term. Calculate the coefficients and generate the wave. 5

Simple Spectrum Analyzer.vi Simple Spectrum Analyzer.vi acquires and analyzes a waveform. The VI breaks the signal up into its individual frequency components and displays their magnitudes. The front panel is shown in figure 5. You need not fully understand all of the inner workings of this VI. Just the same, brief descriptions of each user option are given below and on the next page. Figure 5: Simple Spectrum Analyzer.vi (Location: vi... /DESKTOP /ME365 /ME365.LLB / Simple Spectrum Analyzer.vi) Input channel number is Ch 3 for this VI. number of samples: This is the total number of points used in the Fourier analysis. For quickest results, this should be a power of 2. The more points you use, the finer the resolution (more data points) on the spectral plot. sample rate: This is the frequency at which the data is sampled. Watch out for aliasing! 6

Window: Remember that Fourier analysis is based on the fundamental assumption that the signal being analyzed is periodic. As most experimental data is not truly periodic, windows are used to force periodicity. Basically, they multiply the input by zero at its start and end, and by a non-zero value everywhere else. This pinches the sampled signal to zero at its ends and ensures that it has the same starting and ending value. Windows themselves come in a variety of shapes, each with their own benefits to the spectral plots. You should experiment briefly with this option to see if a particular window works best for your data. None and Hanning are the most commonly used. Display Unit: Here you can select the amplitude units for the spectral plot. Choosing Vpk will give you the Fourier coefficients. Choosing Vrms allows you to view the spectral power. Log/Linear: Viewing the spectrum on a log scale can give you details which the linear plot might miss. It is important, however, to keep clear what the relative spectral magnitudes are. The log plot can be misleading in this regard. 7