DSP First Lab 11: PeZ - The z, n, and ωdomains

Similar documents
Signal Processing First Lab 11: PeZ - The z, n, and ˆω Domains

1 Introduction & Objective. 2 Warm-up. Lab P-16: PeZ - The z, n, and O! Domains

DSP First. Laboratory Exercise #10. The z, n, and ˆω Domains

Experiment 13 Poles and zeros in the z plane: IIR systems

Lecture 19 IIR Filters

18-Dec-12 PHYS Simple Pendulum. To investigate the fundamental physical properties of a simple pendulum.

Lab 1: Earthquake Resources & Plotting Epicenters

Photometry of Supernovae with Makali i

PHY 111L Activity 2 Introduction to Kinematics

EE 313 Linear Signals & Systems (Fall 2018) Solution Set for Homework #7 on Infinite Impulse Response (IIR) Filters CORRECTED

Laboratory handouts, ME 340

Lecture 14 - Using the MATLAB Control System Toolbox and Simulink Friday, February 8, 2013

The Coupled Pendulum Experiment

Frequency Response of Discrete-Time Systems

ES205 Analysis and Design of Engineering Systems: Lab 1: An Introductory Tutorial: Getting Started with SIMULINK

5-Sep-15 PHYS101-2 GRAPHING

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

Introduction to Spectroscopy: Analysis of Copper Ore

Lab 1: Dynamic Simulation Using Simulink and Matlab

Physics Spring 2006 Experiment 4. Centripetal Force. For a mass M in uniform circular motion with tangential speed v at radius R, the required

3 Charged Particle Motion in a Magnetic Field

Calculating Bond Enthalpies of the Hydrides

Astro 101 Lab #1. To advance time forward and backward, click on the arrow toolbar. From left to right, the buttons will

LAB 2 - ONE DIMENSIONAL MOTION

Free Fall. v gt (Eq. 4) Goals and Introduction

Jaguar DFT Optimizations and Transition State Searches

Z - Transform. It offers the techniques for digital filter design and frequency analysis of digital signals.

EEE 480 LAB EXPERIMENTS. K. Tsakalis. November 25, 2002

Conservation of Mechanical Energy Activity Purpose

( ) John A. Quinn Lecture. ESE 531: Digital Signal Processing. Lecture Outline. Frequency Response of LTI System. Example: Zero on Real Axis

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

C2A for Pulsar2 how to control your telescope from C2A

Computer Exercise 0 Simulation of ARMA-processes

Lesson Plan 2 - Middle and High School Land Use and Land Cover Introduction. Understanding Land Use and Land Cover using Google Earth

Notice the minus sign on the adder: it indicates that the lower input is subtracted rather than added.

Lecture 7 Discrete Systems

Significant Figures and an Introduction to the Normal Distribution

7.17. Determine the z-transform and ROC for the following time signals: Sketch the ROC, poles, and zeros in the z-plane. X(z) = x[n]z n.

Lab 1 Uniform Motion - Graphing and Analyzing Motion

ME scope Application Note 28

Experiment 0: Periodic Signals and the Fourier Series

Driven Harmonic Oscillator

Creation and modification of a geological model Program: Stratigraphy

Polar alignment in 5 steps based on the Sánchez Valente method

E : Lecture 1 Introduction

Laboratory handout 5 Mode shapes and resonance

Lab 15 Taylor Polynomials

Conservation of Mechanical Energy Activity Purpose

Computer simulation of radioactive decay

Determination of Density 1

EE3210 Lab 3: Periodic Signal Representation by Fourier Series

Force vs time. IMPULSE AND MOMENTUM Pre Lab Exercise: Turn in with your lab report

Boyle s Law and Charles Law Activity

Multivariable Control Laboratory experiment 2 The Quadruple Tank 1

Introduction to Spectroscopy: Analysis of Copper Ore

EE102B Signal Processing and Linear Systems II. Solutions to Problem Set Nine Spring Quarter

BCMB/CHEM 8190 Lab Exercise Using Maple for NMR Data Processing and Pulse Sequence Design March 2012

Digital Signal Processing

1 Newton s 2nd and 3rd Laws

Date: Summer Stem Section:

2 Background: Fourier Series Analysis and Synthesis

Let H(z) = P(z)/Q(z) be the system function of a rational form. Let us represent both P(z) and Q(z) as polynomials of z (not z -1 )

OCEAN/ESS 410 Lab 4. Earthquake location

Signals and Systems. Problem Set: The z-transform and DT Fourier Transform

Name Student ID # Instructor Lab Period Date Due. Lab 5 Continuity

August 7, 2007 NUMERICAL SOLUTION OF LAPLACE'S EQUATION

EECE 301 Signals & Systems Prof. Mark Fowler

Richter Scale and Logarithms

Center of Mass. Evaluation copy

LAB 2 1. Measurement of 2. Binomial Distribution

You w i ll f ol l ow these st eps : Before opening files, the S c e n e panel is active.

Lab 1a Wind Tunnel Testing Principles & Drag Coefficients of Golf balls

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

Very useful for designing and analyzing signal processing systems

Ch. 7: Z-transform Reading

UNIVERSITY OF OSLO. Please make sure that your copy of the problem set is complete before you attempt to answer anything.

PHY222 Lab 2 - Electric Fields Mapping the Potential Curves and Field Lines of an Electric Dipole

PHY221 Lab 2 - Experiencing Acceleration: Motion with constant acceleration; Logger Pro fits to displacement-time graphs

TALLINN UNIVERSITY OF TECHNOLOGY, INSTITUTE OF PHYSICS 6. THE TEMPERATURE DEPENDANCE OF RESISTANCE

Project IV Fourier Series

Spectrometer User s Guide

Using Bioinformatics to Study Evolutionary Relationships Instructions

To Create a Simple Formula using the Point and Click Method:

Notes 22 largely plagiarized by %khc

Physics 326 Lab 6 10/18/04 DAMPED SIMPLE HARMONIC MOTION

Lab 1: Numerical Solution of Laplace s Equation

You will return this handout to the instructor at the end of the lab period. Experimental verification of Ampere s Law.

Partner s Name: EXPERIMENT MOTION PLOTS & FREE FALL ACCELERATION

Creation and modification of a geological model Program: Stratigraphy

Radiation. Laboratory exercise - Astrophysical Radiation Processes. Magnus Gålfalk Stockholm Observatory 2007

Computer 3. Lifetime Measurement

Name Student ID # Instructor Lab Period Date Due. Lab 1 Polynomials

OECD QSAR Toolbox v.4.1. Tutorial illustrating new options for grouping with metabolism

Z Transform (Part - II)

Foundations of Computation

Senior astrophysics Lab 2: Evolution of a 1 M star

Computational Study of Chemical Kinetics (GIDES)

ECE4270 Fundamentals of DSP Lecture 20. Fixed-Point Arithmetic in FIR and IIR Filters (part I) Overview of Lecture. Overflow. FIR Digital Filter

Astro 101 Lab #2. Start up the Stellarium program. If you do not remember how to use the user interface, please refer to Lab#1 or the user s guide.

Discrete-Time David Johns and Ken Martin University of Toronto

Transcription:

DSP First Lab : PeZ - The, n, and ωdomains The lab report/verification will be done by filling in the last page of this handout which addresses a list of observations to be made when using the PeZ GUI. Introduction & Objective The objective for this lab is to build an intuitive understanding of the relationship between the location of poles and eros in the -domain, the impulse response h[n] in the n-domain, and the frequency response H ( e ) (the ω-domain). A graphical user interface (GUI) called PeZ was written in LabVIEW for doing interactive explorations of the three domains. PeZ is based on the system function, represented as a ratio of polynomials in -, which can be expressed in either factored or expanded form as: H ( M ( k ) k G N N ( pk ) 2 Warm-up If you have already installed the dspfirstlv toolbox 2, you run PeZ in LabVIEW by selecting Help»Find Examples and clicking on the Search tab and entering DSP. Double-click on DSP First and then click on Pe. A control panel with a few buttons and a plot of the unit circle in the complex -plane will pop up. See Figure. M b a k Figure The PeZ GUI. This is for version. Other versions may look different. Click the Run button and try the following. You can selectively place poles and eros in the - plane, and observe how their placement affects the impulse and frequency responses. Click the The MATLAB version of PeZ was written by Craig Ulmer. The LabVIEW version was written by Josiah A. Yoder. 2 If you haven t installed the toolbox, go to the CD-ROM and select Getting Started. Follow the instructions there.

PP button to add pole pairs. The ZZ button adds ero pairs, and the PZ button added pole/ero quads (try it). The other three buttons with s removes poles/eros. (Try it). PeZ is in a mode such that an individual pole/ero (pair) can be moved around and the corresponding H ( e ) and h[n] plots will be updated as you drag the pole (or ero). Since exact placement of poles and eros with the mouse is difficult, you can type the pole (or ero) location in the box below the list of poles (or eros). You can enter most any Matlab express, so entering a ero on the unit circle is as easy as entering *exp(j*2/3*pi) in the box. Just be sure you also add the conjugate. Removal of individual poles (or eros) can also be performed by clicking on the pole (or ero) location in the list and clicking Delete. Note that all poles and/or eros can be easily cleared by clicking on the A button. Play around with PeZ for a few minutes to gain some familiarity with the interface. Implement the following first-order system: H ( + 0.9 by placing its poles and eros at the correct location in the -plane. First try placing the pole and ero with the mouse, and then use the box entry feature. What does the red line represent on the -plane plot and the Magnitude and Phase plots? Try rotating it on the -plane plot. Instructor Verification (separate page) 3 Relationships between, n, and ω domains Work through the following exercises and keep track of your observations by filling in the worksheet at the end of this assignment. In general, you want to make note of the following quantities: a) How does h[n] change with respect to its rate of decay? For example, when h[n] a n u[n], the impulse response will fall off more rapidly when a is smaller. b) If h[n] exhibits an oscillation period, what is the period? Also, estimate the decay rate of the envelope. c) How does H ( e ) change with respect to peak location and peak width? Note: review the Three-Domains FIR under the Demos link for chapter 7 and Three- Domains IIR under the Demos link for chapter 8 for examples of these relationships. 4 Lab Exercise: Real Poles a) Use PeZ to place a single pole at 2. You may have to use the edit box to get the location exactly right. Use the plots for this case as the reference for answering the next four parts. b) Move the pole close to the origin (still on the real axis). You can do this by clicking on the pole and dragging it to the new location. Describe the changes in the impulse H. c) The impulse response and frequency response plots are updated while you move a pole (or ero). Click on the pole you want to move and start to drag it slowly. Watch for the response h[n] and the frequency response ( e )

update of the plots in the secondary window. Move the real pole slowly from to and observe the changes in the impulse response h[n] and the frequency response H ( e ). d) Place the pole exactly on the unit circle (or maybe just inside at a radius of 0.99999999). Describe the changes in h[n] and H ( e ). What do you expect to see for H ( e )? e) Move the pole outside the unit circle. Describe the changes in h[n]. Explain how the appearance of h[n] validates the statement that the system is not stable. In this case, the frequency response H ( e ) is not legitimate because the system is no longer stable. f) In general, where should poles be placed to guarantee system stability? By stability we mean that the system s output does not blow up. 5 Lab Exercise: Complex Poles and Zeros PeZ assumes real coefficients for the numerator and denominator polynomials. Therefore, if we enter a complex pole or ero, PeZ will automatically insert second root at the conjugate location. For example, if we place a root at + j, then we will also get one at j. 3 2 3 2 a) What property of the polynomial coefficients of - a - - a 2-2 will guarantee that the roots come in conjugate pairs? b) Clear all the poles and eros from PeZ. Now place a pole with magnitude 0.85 at an angle of 45º; and then two eros at the origin. Note that PeZ automatically places a conjugate pole in the -domain. The frequency response has a peak -- record the frequency (location) of this peak. Hint: Adjust the red ray on the -plane. c) Change the angle of the pole: move the pole to 90º, then 35 º. Describe the changes in H ( e ). Concentrate on the location of the peak. Next, we will put complex eros on the unit circle to see the effect on ( e ) H. d) Clear all poles and eros from PeZ. Now place eros at the following locations: -, 2 0 - j and 3 0 + j (remember that conjugate pairs such as 2 and 3 will be entered simultaneously). Judging from the impulse and frequency responses what type of filter have you just implemented? 6 Lab Exercise: Filter Design In this section, we will use PeZ to place the poles and eros of H to make a filter with a desirable frequency response. Filter design is a process that selects the coefficients a k and b k to accomplish a given task. The task here is to create a filter that has a very narrow notch. This filter would be useful for removing one frequency component while leaving others undisturbed. The notch filter can be synthesied from the cascade of two simpler filters shown in Figure 2.

4.0 3.0 2.0 (a) FIR Filter 0.0 - -0.5 0.0 0.5 Frequency (w/pi) 6.0 5.0 4.0 3.0 2.0 (b) Feedback Filter 0.0 - -0.5 0.0 0.5 Frequency (w/pi) Figure 2 Magnitude response of two unknown filters. Frequency axis is normalied ˆ ω / π. Use PeZ to help you find the filter coefficients that will match these frequency responses as closely as possible. (a) Secondorder FIR filter. (b) Second-order IIR filter. a) Start the process by using PeZ to design each of the filters given in Figure 2. (You will have to determine the locations of the poles and eros from the plots in Figure 2.) Both filters are second-order. Make sure that you enter the poles and eros precisely. PeZ will do the conversion between root locations and polynomial coefficients. You can check your results by also calculating the filter coefficients by hand (see the next section on polynomials with complex coefficients). Record the coefficients of your filters in the table provided. Note: Use PeZ or freq to verify that the frequency response of each filter is correct. b) Now use PeZ to connect the filters together in a cascade. Place the poles and eros, and then view the frequency response. Determine the filter coefficients for the overall cascaded filter H. c) Use freq() to determine the frequency response of the cascade of the two filters that you designed in part (e). Plot the magnitude of the overall frequency response of the cascade system for π < ˆ ω < π, and print a copy of the plot for your lab report. Explain briefly why the frequency response magnitude has a notch, and explain why the gain (i.e., H e at ˆ ω 0 and ˆ ω π is the same. ( ) 7 Filter Coefficients from Roots (Optional) Compute the filter coefficients for the denominator 2 b 0 + b + b2 when the poles are: 2 a a2 and numerator and the eros are: Use the following relationship: H p 0.75e jπ/4, p 2 0.75e- jπ/4,, 2 - G ( )( 2 ) ( p )( p ) ( ) 2 where and 2 are the eros, and p and p 2 are the poles defined above. Determine G so that the maximum magnitude of H ( e ) is one. (Remember that LabVIEW can multiply polynomials via its Multiply Polynomicals function.)

Lab WORKSHEET Turn this page in at the end of your lab period. Name: Date of Lab: Warm-up (Part 2): Implemented first-order system with PeZ: Verified: Date/Time: Part Observations 4(a) h[n] decays exponentially with no oscillations, ( e ) 4(b) 4(c) 4(d) H has a hump at ˆ ω 0. 4(e) 4(f) 5(a) 5(b) 5(c) 5(d) Part 6 (a,b) a k b k Filter Filter 2 Cascade of and 2 Explanation of cascade frequency response: