Spectrum Analyser Basics

Similar documents
NanoGiant Oscilloscope/Function-Generator Program. Getting Started

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

Please feel free to download the Demo application software from analogarts.com to help you follow this seminar.

PRELIMINARY INFORMATION. Professional Signal Generation and Monitoring Options for RIFEforLIFE Research Equipment

LabView Exercises: Part II

ME EN 363 ELEMENTARY INSTRUMENTATION Lab: Basic Lab Instruments and Data Acquisition

Working with a Tektronix TDS 3012B Oscilloscope EE 310: ELECTRONIC CIRCUIT DESIGN I

Introduction to the oscilloscope and digital data acquisition

Activity P32: Variation of Light Intensity (Light Sensor)

MSO-28 Oscilloscope, Logic Analyzer, Spectrum Analyzer

imso-104 Manual Revised August 5, 2011

LeCroy Digital Oscilloscopes

imso-104 Manual Revised July 19, 2012

Introduction To LabVIEW and the DSP Board

Linrad On-Screen Controls K1JT

Getting Started with the LabVIEW Sound and Vibration Toolkit

Lab experience 1: Introduction to LabView

Analog Discovery Scope and Waveform Generator Edited 11/15/2016 by Eric Scotti & DGH

Dave Jones Design Phone: (607) Lake St., Owego, NY USA

Experiment 13 Sampling and reconstruction

Lab 1 Introduction to the Software Development Environment and Signal Sampling

2 MHz Lock-In Amplifier

Capstone Experiment Setups & Procedures PHYS 1111L/2211L

PHYSICS OF MUSIC. 1.) Charles Taylor, Exploring Music (Music Library ML3805 T )

Calibrate, Characterize and Emulate Systems Using RFXpress in AWG Series

Quick Start for TrueRTA (v3.5) on Windows XP (and earlier)

Analog Arts SA985 SA975 SA935 SA915 Product Specifications

Troubleshooting Your Design with Tektronix MSO and DPO Series Oscilloscopes

Burlington County College INSTRUCTION GUIDE. for the. Hewlett Packard. FUNCTION GENERATOR Model #33120A. and. Tektronix

Beginners How to Test DSO138mini

Analog Arts SA985 SA975 SA935 SA915 Product Specifications [1]

Appendix D. UW DigiScope User s Manual. Willis J. Tompkins and Annie Foong

Quick Start. RSHS1000 Series Handheld Digital Oscilloscope

Expect to Make Waves.

Getting Started. Connect green audio output of SpikerBox/SpikerShield using green cable to your headphones input on iphone/ipad.

25 MHz Digital Storage Oscilloscope

E X P E R I M E N T 1

EMS DATA ACQUISITION AND MANAGEMENT (LVDAM-EMS) MODEL 9062-C

Choosing an Oscilloscope

Advanced Skills with Oscilloscopes

4 MHz Lock-In Amplifier

A Matlab toolbox for. Characterisation Of Recorded Underwater Sound (CHORUS) USER S GUIDE

DATA COMPRESSION USING THE FFT

Digital Storage Oscilloscopes 2550 Series

4CH/2CH Digital Storage Oscilloscopes

Digitizing Oscilloscopes

Electrical and Electronic Laboratory Faculty of Engineering Chulalongkorn University. Cathode-Ray Oscilloscope (CRO)

Digitizing Oscilloscopes (2009)

MINI PC SCOPE PCSU01. User manual. test leads software download USB cable design enclosure

S op o e p C on o t n rol o s L arni n n i g n g O bj b e j ctiv i e v s

Fluke 190-Series II Firmware Upgrade V11.44

Agilent DSO5014A Oscilloscope Tutorial

SC24 Magnetic Field Cancelling System

SigPlay User s Guide

PicoScope. User guide. Copyright 2005 Pico Technology Limited. All rights reserved. PSW044 v1.5

FFT Laboratory Experiments for the HP Series Oscilloscopes and HP 54657A/54658A Measurement Storage Modules

BME 3512 Biomedical Laboratory Equipment List

Collection of Setups for Measurements with the R&S UPV and R&S UPP Audio Analyzers. Application Note. Products:

User Manual. Digital Storage Oscilloscopes Models 2534, 2540 & General Safety Summary. Version 1.03

PORTABLE OSCILLOSCOPE

WAVEJET 300 SERIES OSCILLOSCOPES. New Cover to Come. Unmatched Performance, Portability, and Value

SC24 Magnetic Field Cancelling System

Virtual instruments and introduction to LabView

The Measurement Tools and What They Do

Oscilloscopes, logic analyzers ScopeLogicDAQ

DPD80 Visible Datasheet

PCM ENCODING PREPARATION... 2 PCM the PCM ENCODER module... 4

User Manual. Digital Storage Oscilloscopes Models 2534, 2540 & 2542

WAVEJET 300 SERIES OSCILLOSCOPES. Unmatched Performance, Portability, and Value

Experiment P32: Sound Waves (Sound Sensor)

User Manual. GPS-1000B+ series. Digital Oscilloscope V 1.1

Digital Lock-In Amplifiers SR850 DSP lock-in amplifier with graphical display

Virtual Vibration Analyzer

Lab 2: A/D, D/A, and Sampling Theorem

DPD80 Infrared Datasheet

SNG-2150C User s Guide

USB Mini Spectrum Analyzer User s Guide TSA5G35

PC Scopes PCS500 PCS100 / K8031. CHECK THE Pc-Lab2000 TM GETTING STARTED GUIDE FOR SOFTWARE INSTALLATION

Getting started with Spike Recorder on PC/Mac/Linux

Laboratory 5: DSP - Digital Signal Processing

ni.com Digital Signal Processing for Every Application

Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

User Manual SDS1000CML+/SDS1000DL+ Digital Oscilloscope UM0101A-E01A SIGLENT TECHNOLOGIES CO,.LTD

Spectrum Analyzer 1.6 GHz 3 GHz R&S HMS-X

The Effect of Time-Domain Interpolation on Response Spectral Calculations. David M. Boore

Lab 5 Linear Predictive Coding

Manual for the sound card oscilloscope V1.41 C. Zeitnitz english translation by P. van Gemmeren, K. Grady and C. Zeitnitz

HX0074 DEMO Kit for METRIX Oscilloscopes

An Effective Filtering Algorithm to Mitigate Transient Decaying DC Offset

ASK THE EXPERTS: Procedure for Verifying Magnetic Pickup Signal Integrity Using a Windrock Portable Analyzer

Manual of Operation for WaveNode Model WN-2m. Revision 1.0

DPScope SE User Manual

SC26 Magnetic Field Cancelling System

An Introduction to the Spectral Dynamics Rotating Machinery Analysis (RMA) package For PUMA and COUGAR

Heart Rate Variability Preparing Data for Analysis Using AcqKnowledge

Meeting Embedded Design Challenges with Mixed Signal Oscilloscopes

System Requirements SA0314 Spectrum analyzer:

INSTRUCTION GUIDE. for the. Keysight (formally Agilent; Hewlett-Packard) Model #33509B. and. Tektronix. Fall 2017

PicoScope for Windows user guide Chapter 1: Overview Chapter 2: Views Chapter 3: How To.. Chapter 4: Menus Chapter 5: Dialogs

Experiment # 4 Counters and Logic Analyzer

Transcription:

Hands-On Learning Spectrum Analyser Basics Peter D. Hiscocks Syscomp Electronic Design Limited Email: phiscock@ee.ryerson.ca June 28, 2014 Introduction Figure 1: GUI Startup Screen In a previous exercise, we studied the operation of the oscilloscope (scope). The scope shows a plot of waveform voltage vs time. In this exercise we introduce the use of the electronic spectrum analyser. The spectrum analyser is a softwarebased feature of the oscilloscope that displays the characteristics of a signal in the frequency domain, that is, a plot of amplitude vs frequency. Startup Ensure that the instrument hardware is plugged into a USB port on your computer. The green LED on the hardware should illuminate. Start the software by double clicking on the icon on the the computer screen desktop. The software should start and show the GUI (Graphical User Interface). The connection indicator at the top of the GUI should show Connected with a green background, as shown in figure 1. We ll use the CircuitGear signal generator to produce a suitable signal. We assume that you are familiar with the signal generator section of the instrument. If not, we recommend first doing the lab exercise on the signal generator. Connect the output of the signal generator to the Channel A input of the oscilloscope.

(a) Clip Lead Connection (b) BNC Cable Connection Figure 2: Connecting Generator to Scope There are various ways to accomplish this. In figure 2(a), the generator output and the Channel A oscilloscope input are connected to adaptors that bring out the BNC connector on the hardware to two binding posts. You can then use alligator clip leads to connect between the binding posts: red to red, black to black. Figure 2(b) shows the output of the generator connected to the Channel A input of the scope by a BNC to BNC cable. Figure 3: Display of Sine Wave Move the generatoramplitude control to about to a setting of 70 and you should see a display resembling figure 3. Voltage is vertical, time is horizontal. The trace on the screen is a plot of voltage versus time. We refer to this as the time domain view of the signal. Sine Wave Spectrum Increase the frequency of the generator to 2000Hz, leaving the scope timebase setting at 1mSec. You should see many cycles of the sine wave on the screen. Now open the spectrum display: menu itemtools -> Spectrum Display. You can increase the vertical scale to see more detail. Click onset Max Scale and set that to 3 (volts). Now drag the green frequency readout cursor over to the spike on the display. It should read 2.0kHz with an amplitude of around whatever is indicated as the peak signal voltage on the oscilloscope time display: 2.5 volts or so. You can fine-tune the position of the frequency cursor with the left and right cursor movement arrows on the keyboard. For small cursor movements, this is more convenient than dragging the cursor. 2

(a) Waveform (b) Spectrum Figure 4: First Spectrum Display Spectrum Analysis, Frequency Range Drag the cursor to the left edge of the display. The readout shows a frequency of zero Hz. This is a property of the Discrete Fourier Transform: the spectrum display begins at a frequency of zero. Drag the frequency cursor to the right edge of the display, as far as it will go. Note the value of this frequency. Compare to the value shown in the Sampling Rate readout. What s the relationship? Now change the timebase setting from 1mSec per division to 2mSec per division. What is the effect on the sampling rate? What is the effect on the maximum frequency of the spectrum display? What is the effect on the location of the 2kHz spike on the display? Move the frequency readout cursor to the display spike to verify that it still reads out correctly. The relationship between the waveform and spectrum displays can be summarized thus: A faster timebase setting increases the maximum frequency shown on the spectrum display. A slower timebase setting, showing more cycles of the waveform, results in a longer overall time in the data record and therefore better low frequency resolution in the spectrum display. 3

Frequency Resolution Set the generator frequency to 2000 Hz. Move the spectrum frequency cursor to coincide with the peak value. The frequency value will be around 2000 Hz. (There is some roundoff error as a result of the spectrum math routines.) Using the keyboard horizontal arrow, move the cursor one step higher. The difference between these two frequencies is the frequency resolution of the spectrum display. The frequency resolution is a constant constant value. The frequency resolution is equal to the sampling rate divided by the number of samples, both of which are available on the screen of the spectrum analysis display. Confirm that this relationship applies (approximately) on your display. Square Wave Spectrum (a) Waveform Display (b) Spectrum Display Figure 5: Square Wave Spectrum Set up the oscilloscope and signal generator as shown in figure 5(a): generator frequency 100 Hz, generator amplitude around 80, square waveform, timebase 20mSec. Activate the spectrum display from the menu item Tools -> Spectrum Analysis. The spectrum display should appear as in figure 5(b). Measure the amplitude and frequency of the fundamental and at least three of the harmonics. Theory for the square waveform predicts the harmonics and their amplitudes as 1/3 the fundamental frequency amplitude at 3 times the fundamental frequency 1/5 the fundamental frequency amplitude at 5 times the fundamental frequency 1/7 the fundamental frequency amplitude at 7 times the fundamental frequency How do your results compare? You can also change the spectrum Vertical Scale to Logarithmic, which enhances the display of the lowerlevel, high order harmonics. 4

Exercise: Triangle Wave Spectrum Switch the Waveform Generator to Triangle waveform. (You may want to use the Set Max Scale to increase the magnitude of the display.) Compare the spectrum of the triangle wave with that of the square wave. On the basis of spectrum display, which waveform is closest to the sine wave? What effect would this have on the sound of the square and triangle waveforms? Exercise: Noise Spectrum Switch the Waveform Generator to Noise waveform. On the Spectrum display, select Logarithmic to increase the sensitivity of the display. Based on the spectrum of noise, what frequencies are present in the noise waveform? White Noise is characterised by equal energy in equal bandwidths. Pink Noise is characterised by equal energy in equal percentage bandwidths, ie, decreasing energy in equal bandwidths. How would you characterise this noise signal? Why? Artifacts of the Discrete Fourier Transform We now show two artifacts of the spectrum generated by the Discrete Fourier Transform: Aliasing and Leakage. (See page 8 for more on the Discrete Fourier Transform.) Aliasing Ensure the oscilloscope timebase setting is 1mSec. In the bottom left corner of the Frequency Spectrum display, note the sample rate: 78.1k samples/sec. Sampling theory tells us that the display will show an alias if the frequency is greater than half the sampling rate. Set the generator frequency to 70,000Hz. (The easiest way to do that is to left-click on the frequency readout, top right corner of the Waveform Generator section. Then enter the new frequency.) The spectrum display is shown in figure 6(a). We ve dragged the green frequency readout cursor over the spike on the display: it reads out 8.1kHz. Notice the relationship between these three frequencies: Sample frequency 78.1kHz, signal frequency 70kHz, alias display frequency 8.1kHz. In effect, the sampling operation is behaving as a signal mixer, which multiplies the sample frequency and the signal frequency. The output of the mixer is two signals one at the sum of the two, and the other at the difference of the two. The alias is at the difference frequency. Notice that the auto measurement panel shows the alias frequency correctly. The oscilloscope time display is also showing the alias frequency, although it s not easy to interpret. There are approximately 8 cycles in each of the 1mSec oscilloscope screen graticule marks 1. And, if you enable the Time Cursors and set them approximately one cycle apart, they indicate that the displayed frequency is between 7 and 9kHZ. 1 To see this, it helps to put the oscilloscope on Single Shot triggering so that the display is effectively frozen. Return triggering to Auto mode when done. 5

(a) Spectrum (b) Auto Measurement Panel Figure 6: Aliased Sine Wave: Spectrum and Auto Measurement Figure 7: Aliased Sine Wave: Waveform Exercise Set the waveform generator Waveform to Square wave. What is the effect on the oscilloscope waveform display? Is waveform shape maintained through the mixing process? Examine the frequency spectrum. What has changed? Explain the new display. Leakage and Windowing When a waveform is sampled into a record, the record begins abruptly and ends abruptly, often part way through one of the waveform cycles. The effect is to create additional frequencies which show up on the display, but are actually an artifact of the sampling process. 6

Set the scope timebase to 5mSec per division. Set the generator amplitude to about 75. On the spectrum display, set the Max Scale to 3 (volts). Click on the generator frequency readout and set the frequency to 1906.6 Hz. Make note the spectrum display. (If you can, capture a screen shot.) Now set the generator frequency to 2011.4 Hz. Make note of the display. Notice that the sine waveform has not changed in amplitude or shape, but the spectrum displays are different. The second display is broadened at the base. The amplitude is also incorrect - since according to the scope waveform display, it should be about 2.5 volts. (a) 1906.6 Hz (b) 2011.4 Hz Figure 8: Leakage Now let s see the effect of one of the FFT Windows. The window function tapers the magnitude of the original time record, at the beginning and end, to minimize the effect of the abrupt start and finish. Enable the Hamming window and repeat the previous exercise. (a) 1906.6 Hz (b) 2011.4 Hz Figure 9: Leakage, Hamming Window A typical result is in figure 9. Notice that the spreading of the spectrum signals has been greatly reduced with by window function. The magnitude of the waveform still changes with frequency, but that may not matter. Many spectrum measurements are made relative to some other frequency, and the ratio may be at least approximately correct. 7

Appendix: The Discrete Fourier Transform This spectrum display uses the Discrete Fourier Transform (DFT) to determine the frequencies present in a signal. The oscilloscope generates a series of samples of the waveform into a waveform record. Then the DFT searches through that waveform, comparing it to various frequencies, to look for a match. Technically, a series of sine and cosine waves at various frequencies are correlated with the waveform and a match is signalled by a strong correlation. The actual algorithm used is the Fast Fourier Transform (FFT), which uses symmetries of the sine and cosine wave to speed up the calculation. There are several advantages to the DFT and FFT: The analysis is fast, orders of magnitude faster than other methods, so that a change in the waveform immediately appears in the spectrum. Based entirely in software, it requires no additional hardware. That is, it comes essentially for free with a digital oscilloscope 2. High measurement precision and digital readouts are available, since the displayed frequencies are related to the digitized waveform, and the sample times are known accurately, There are also some limitations. Aliasing and leakage are artifacts of a sampled-data system and the DFT. These effects can be reduced but not entirely eliminated. In some circumstances, they complicate interpretation of the spectrum display. The frequency display begins at zero, which limits ones ability to zoom in on a specific range of frequencies. (There is a version of the FFT, the so-called Zoom FFT, that provides that function. Implementation is left as an exercise for the student.) The horizontal scale is inherently linear. A logarithmic scale would be useful in some applications, but is not easy to implement. The frequency resolution is limited to a series of bins. It s not possible to measure the spectrum between these bin frequencies. The spacing of the bins can be reduced by increasing the length of the waveform record, but not eliminated entirely. This is referred to as the picket fence effect. 2 Not all oscilloscopes can simultaneously display a waveform and spectrum, as can this software. This is very useful, especially for teaching. 8