Sampling Theorem, frequency resolution & Aliasing The Sampling Theorem will be the single most important constraint you'll learn in computer-aided instrumentation.

Slides:



Advertisements
Similar presentations
Analog to digital conversion
Advertisements

ECE 4371, Fall, 2014 Introduction to Telecommunication Engineering/Telecommunication Laboratory Zhu Han Department of Electrical and Computer Engineering.
Lecture 15 Orthogonal Functions Fourier Series. LGA mean daily temperature time series is there a global warming signal?
Sampling theory Fourier theory made easy
1 Chapter 16 Fourier Analysis with MATLAB Fourier analysis is the process of representing a function in terms of sinusoidal components. It is widely employed.
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
So far We have introduced the Z transform
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
School of Computing Science Simon Fraser University
General Functions A non-periodic function can be represented as a sum of sin’s and cos’s of (possibly) all frequencies: F(  ) is the spectrum of the function.
Fourier Theory and its Application to Vision
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
Continuous-Time Signal Analysis: The Fourier Transform
Discrete Time Periodic Signals A discrete time signal x[n] is periodic with period N if and only if for all n. Definition: Meaning: a periodic signal keeps.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
First semester King Saud University College of Applied studies and Community Service 1301CT.
Basics of Signal Processing. frequency = 1/T  speed of sound × T, where T is a period sine wave period (frequency) amplitude phase.
Digital to Analogue Conversion Natural signals tend to be analogue Need to convert to digital.
Goals For This Class Quickly review of the main results from last class Convolution and Cross-correlation Discrete Fourier Analysis: Important Considerations.
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Fourier Transform Basic idea.
Fourier representation for discrete-time signals And Sampling Theorem
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
EE421, Fall 1998 Michigan Technological University Timothy J. Schulz 08-Sept, 98EE421, Lecture 11 Digital Signal Processing (DSP) Systems l Digital processing.
Computer Based Data Acquisition Basics. Outline Basics of data acquisition Analog to Digital Conversion –Quantization –Aliasing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
Ni.com Data Analysis: Time and Frequency Domain. ni.com Typical Data Acquisition System.
DTFT And Fourier Transform
Where we’re going Speed, Storage Issues Frequency Space.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Basics of Signal Processing. SIGNALSOURCE RECEIVER describe waves in terms of their significant features understand the way the waves originate effect.
Motivation Music as a combination of sounds at different frequencies
Sampling Theorems. Periodic Sampling Most signals are continuous in time. Example: voice, music, images ADC and DAC is needed to convert from continuous-time.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
: Chapter 14: The Frequency Domain 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
1 Prof. Nizamettin AYDIN Advanced Digital Signal Processing.
Digital Image Processing Chapter 4 Image Enhancement in the Frequency Domain Part I.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin Lecture 4 EE 345S Real-Time.
Inverse DFT. Frequency to time domain Sometimes calculations are easier in the frequency domain then later convert the results back to the time domain.
GG313 Lecture 24 11/17/05 Power Spectrum, Phase Spectrum, and Aliasing.
2D Sampling Goal: Represent a 2D function by a finite set of points.
Digital Signal Processing
Lecture 3: The Sampling Process and Aliasing 1. Introduction A digital or sampled-data control system operates on discrete- time rather than continuous-time.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
Chapter 2. Characteristics of Signal ※ Signal : transmission of information The quality of the information depends on proper selection of a measurement.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Section II Digital Signal Processing ES & BM.
MECH 373 Instrumentation and Measurements
MECH 373 Instrumentation and Measurements
EET 422 EMC & COMPLIANCE ENGINEERING
Lecture Signals with limited frequency range
Dr. Nikos Desypris, Oct Lecture 3
Chapter 2 Signal Sampling and Quantization
Analog to Digital Data Conversion
Lecture 10 Digital to Analog (D-to-A) Conversion
MECH 373 Instrumentation and Measurements
Conversation between Analogue and Digital System
Lecture 4 Image Enhancement in Frequency Domain
ENEE222 Elements of Discrete Signal Analysis Lab 9 1.
Sampling and Aliasing.
The Frequency Domain Any wave shape can be approximated by a sum of periodic (such as sine and cosine) functions. a--amplitude of waveform f-- frequency.
Presentation transcript:

Sampling Theorem, frequency resolution & Aliasing The Sampling Theorem will be the single most important constraint you'll learn in computer-aided instrumentation design Consider a periodic function, with period T:

Where we have applied a low-pass “anti-aliasing” filter to the raw analog signal ending up with h(t), a signal with a highest freq component < 10*ω 0 Fourier Series

Or…generate 20 independent equations by sampling. We must sample 20 times during one period. (If we sample over more than one period, we may not end up with independent equations.) Each equation will be of the form: {tm} is the set of sample times… A k, B k : Fourier spectrum coefficients

The matrix (C) of coefficients looks like:

Where matrix C must have a non-zero determinant Let the 20 x 20 matrix be C: with the solution

Coefficients become spectrum: magnitude Phase change as a function of ω:

Spacing of samples If the sample spacing is uniform there will be 2N segments of time, (time between samples) Therefore the sample rate is 2N/T. The maximum frequency in h(t) is Therefore you must sample at at least 2*f max to insure you can resolve f max freq.

statement of the Sampling Theorem, from A. V. Oppenheim and A. S. Willsky, Signals and Systems, 2nd Ed. Prentice-Hall (1996) p. 518

Nyquist what? Terminology: The sampling frequency of a particular situation, which may exceed by quite a bit the maximum frequency in the signal, is the Nyquist frequency. Twice the maximum frequency of the signal is called the Nyquist rate, and is the minimum sampling rate that can resolve the signal. (O&W, 1st Ed, p. 519)

Resolvable frequency in spectrum Given the sampling rate, and the number of samples taken, what is the Δf between points on the spectrum? If a waveform is sampled for one second, what is the frequency resolution? No matter how long you sample for, the maximum reconstructable frequency remains 2*f_samp

function Test_FFT_11c(wind_flg)

Discrete Fourier Transform Transform vs Series? Computing the coefficients can take time…(bench) Demo with Matlab fft and ifft functions (& Lab 6 HP ‘scope) And the inverse Discrete Fourier Transform…

Power spectrum A faster algorithm, the Fast Fourier Transform (FFT), is normally computed, for example, in LabVIEW or MATLAB or in the math feature of the HP 54622A digital scope. Power spectrum: The HH(jw) are usually complex numbers, and their magnitudes must be taken to find the Power Spectrum (in Matlab, abs(HH))

FFT solves a slightly different problem… If resolution is ∆f then the FFT stops at F samp /2- ∆f which makes sense, since what exactly happens at Fsamp/2 itself? Convert FFT results to Fourier Series coeff: An = real( FFT(n+1) ) * (2/N samp ) Bn = -imag( FFT(n+1) ) * (2/N samp )

Aliased frequencies Frequencies above the half the sampling rate become aliased as lower frequencies. For frequencies just above half the sampling rate, up to the sampling rate, the aliased frequency f alias = f nyq -|f actual - f nyq |, a kind of mirror-image result. Matlab example (work\jdd\alias03.m) 12 Hz sinewave requires greater than 24 Hz sampling rate to preserve correct frequency in reconstruction. Result of sampling 12 Hz at 20 Hz: alias freq = 10- abs(12-10) = 8 Hz.

What happens when f_actual = f_sample? …a triangle wave that is zero at each multiple of f_samp Lab 6-type question: What is the alias of a 97KHz sinewave sampled at 20KHz? What about 83KHz?

Another try at a formula for aliased frequency where f samp = 40 and f act = 108 Fsamp = 40 Fact = 108 frac = rem(Fact, Fsamp) BB = floor(frac/( Fsamp/2) ) fobs = frac + BB * (Fsamp - 2*frac)

Strobe light demo For Mech Engineers, goal is to find “zero frequency” and discover angular speed of rotating machinery. tedkinsman.photoshelter.com

About the strobe: General Radio 1531A, from The circuit used to drive the 10 microseconds ON of the Xenon flash tube is similar to a defibrillator: Charging a capacitor up to several hundred volts. Why no new strobe models on the market? Fear of lawsuits about epilepsy, or the high voltage?

Filtering before and after A→D conversion Before A→D is the anti-aliasing LP filter After: Digital (software) filtering available: ENGN2530: Prof Silverman: Dig. Sig. Proc. Tapped delay line: calculate “b” coefficients:

Windows to a sample of points (or filter coefficients) A window is vector that weights point-for-point (dot product) part of a sequence of data; outside the window the sequence is set to zero. Rectangular window Cosine, Hann, Hamming windows For dealing with time-sample sequence that doesn’t start and end at the same value

LP anti- aliasing analog filter A-D conversion Hamming window Hamming window DFT signal sample rate number of samples Spectrum