Lab 0: Introduction to TIMS AND MATLAB

Similar documents
ELEC3104: Digital Signal Processing Session 1, 2013

DSBSC GENERATION. PREPARATION definition of a DSBSC viewing envelopes multi-tone message... 37

MODELLING AN EQUATION

EE 210: CIRCUITS AND DEVICES

MODELLING EQUATIONS. modules. preparation. an equation to model. basic: ADDER, AUDIO OSCILLATOR, PHASE SHIFTER optional basic: MULTIPLIER 1/10

EE-4022 Experiment 3 Frequency Modulation (FM)

Fourier Signal Analysis

The Sampling Theorem:

Linear Time-Invariant Systems

Experiment Five: The Noisy Channel Model

CME312- LAB Manual DSB-SC Modulation and Demodulation Experiment 6. Experiment 6. Experiment. DSB-SC Modulation and Demodulation

EE 422G - Signals and Systems Laboratory

Discrete-Time Signal Processing (DTSP) v14

ENGR 210 Lab 12: Sampling and Aliasing

EE-4022 Experiment 2 Amplitude Modulation (AM)

EE370 Communications Engineering

Laboratory Assignment 5 Amplitude Modulation

ECE 4670 Spring 2014 Lab 1 Linear System Characteristics

TIMS-301 USER MANUAL. Telecommunications Instructional Modelling System

CME 312-Lab Communication Systems Laboratory

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

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

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication

Costas Loop. Modules: Sequence Generator, Digital Utilities, VCO, Quadrature Utilities (2), Phase Shifter, Tuneable LPF (2), Multiplier

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

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

PROBLEM SET 6. Note: This version is preliminary in that it does not yet have instructions for uploading the MATLAB problems.

Laboratory Assignment 4. Fourier Sound Synthesis

Discrete Fourier Transform (DFT)

German Jordanian University Department of Communication Engineering Digital Communication Systems Lab. CME 313-Lab

Electrical & Computer Engineering Technology

Sampling and Reconstruction

PRODUCT DEMODULATION - SYNCHRONOUS & ASYNCHRONOUS

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

1. In the command window, type "help conv" and press [enter]. Read the information displayed.

Receiver Architectures

DELTA MODULATION. PREPARATION principle of operation slope overload and granularity...124

Experiment One: Generating Frequency Modulation (FM) Using Voltage Controlled Oscillator (VCO)

LABORATORY - FREQUENCY ANALYSIS OF DISCRETE-TIME SIGNALS

Signal Processing. Introduction

EET 223 RF COMMUNICATIONS LABORATORY EXPERIMENTS

Pulse-Width Modulation (PWM)

Real Analog - Circuits 1 Chapter 11: Lab Projects

Part I - Amplitude Modulation

Data Acquisition Systems. Signal DAQ System The Answer?

Experiment No. 6. Audio Tone Control Amplifier

EECS 216 Winter 2008 Lab 2: FM Detector Part II: In-Lab & Post-Lab Assignment

Department of Communication Engineering Digital Communication Systems Lab CME 313-Lab

Sampling and Quantization

cosω t Y AD 532 Analog Multiplier Board EE18.xx Fig. 1 Amplitude modulation of a sine wave message signal

Laboratory Experiment #1 Introduction to Spectral Analysis

EE 400L Communications. Laboratory Exercise #7 Digital Modulation

Laboratory Assignment 1 Sampling Phenomena

RLC Frequency Response

Enhanced Learning Combining MATLAB Simulation with Telecommunication Instructional Modeling (TIMS ) in a Senior Level Communication Systems Course

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

AMPLITUDE MODULATION

Class #16: Experiment Matlab and Data Analysis

Lab #2: Electrical Measurements II AC Circuits and Capacitors, Inductors, Oscillators and Filters

#8A RLC Circuits: Free Oscillations

EE 462G Laboratory #1 Measuring Capacitance

On-Line Students Analog Discovery 2: Arbitrary Waveform Generator (AWG). Two channel oscilloscope

Knowledge Integration Module 2 Fall 2016

EECS 216 Winter 2008 Lab 2: FM Detector Part I: Intro & Pre-lab Assignment

ELEC3104: Digital Signal Processing Session 1, 2013

Tone Detection with a Quadrature Receiver

INTRODUCTION TO COMMUNICATION SYSTEMS LABORATORY IV. Binary Pulse Amplitude Modulation and Pulse Code Modulation

Laboratory Exercise 6 THE OSCILLOSCOPE

Exercise 1: AC Waveform Generator Familiarization

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

Sept 13 Pre-lab due Sept 12; Lab memo due Sept 19 at the START of lab time, 1:10pm

EC310 Security Exercise 20

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

Lecture Schedule: Week Date Lecture Title

SGN Bachelor s Laboratory Course in Signal Processing Audio frequency band division filter ( ) Name: Student number:

Experiment 8 Frequency Response

Massachusetts Institute of Technology Dept. of Electrical Engineering and Computer Science Spring Semester, Introduction to EECS 2

LLS - Introduction to Equipment

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

Experiment # 4. Frequency Modulation

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

Introduction to signals and systems

Experiment 7: Frequency Modulation and Phase Locked Loops

ECEGR Lab #8: Introduction to Simulink

Lab 9 Fourier Synthesis and Analysis

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 4. Alternating Current Measurement

SINUSOIDS February 4, ELEC-281 Network Theory II Wentworth Institute of Technology. Bradford Powers Ryan Ferguson Richard Lupa Benjamin Wolf

Coil in the AC circuit

Lab E5: Filters and Complex Impedance

Journal of Asian Scientific Research SIGNALS SPECTRAL ANALYSIS AND DISTORTION MEASUREMENTS USING AN OSCILLOSCOPE, A CAMERA AND A PC. A. A.

LAB #7: Digital Signal Processing

ECE 2111 Signals and Systems Spring 2012, UMD Experiment 9: Sampling

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

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

ELG3175 INTRODUCTION TO COMMUNICATION SYSTEMS

EECS 452 Midterm Exam Winter 2012

Laboratory Exercises for Analog Circuits and Electronics as Hardware Homework with Student Laptop Computer Instrumentation

CARRIER ACQUISITION AND THE PLL

H e s s o. Laboratory Experiments

Transcription:

TELE3013 TELECOMMUNICATION SYSTEMS 1 Lab 0: Introduction to TIMS AND MATLAB 1. INTRODUCTION The TIMS (Telecommunication Instructional Modelling System) system was first developed by Tim Hooper, then a senior lecturer at The University of New South Wales in early 1970s. It is now a very advanced system for telecommunications training (http://www.tims.com.au/main.htm). TIMS is a rack and module system, in which each module performs a basic communication or signal processing function, eg: oscillator, multiplier, filter, etc. Modules can be plugged into each of the twelve slots in the rack and then connected with other modules to create a variety of systems. Several permanent modules are located in the lower part of the rack. It provides for students an easy way of modelling communication and signal processing systems in the laboratory. In addition to the TIMS system, each experimental bay contains a personal computer (PC) and oscilloscope. The oscilloscope is connected to the TIMS system Scope Selector module, a permanent module, by BNC terminated cables. The Scope Selector module enables any two from four inputs to be viewed simultaneously on the oscilloscope. The PC provides measurement and signal processing functions. The Analog to Digital converter interface between the PC and TIMS is a Soundblaster ASP16 system. The Soundblaster and TIMS are connected by the stereo audio cable terminated with RCA plugs. For stereo recording the RCA plugs should be connected to the sockets at the X and Y inputs of the oscilloscope, but for mono recording only the red RCA plug should be connected. Only mono recording is required for this laboratory. Data acquisition and processing software is provided by MATLAB. MATLAB is a useful software package designed for scientific and technical computation. It is a convenient numeric computation and visualization tool that may be used for a wide range of applications in engineering and science. MATLAB may also provide several tool boxes (additional software packages) specially developed for telecommunication, signal processing, control, applied mathematics, image processing etc. You may easily extend and customize the capabilities of MATLAB by writing your own functions and procedures. This laboratory is intended to familiarize you with MATLAB and TIMS, but the experiments also illustrate some signal processing concepts and methods. Both facilities will be new to most of you, but before you graduate you can expect to use them for several core and elective subjects in the signal processing, control and communication area. The laboratory introduces some basic TIMS building blocks: adder, multiplier, filter etc, and connects up a few simple systems. NB: The School has a classroom Teaching Kit licence for the MATLAB software which runs under Microsoft Windows. This permits students enrolled in this subject to obtain a copy of the software for home use provided the licence agreement is signed. See the Laboratory Manager, Mr Noel Kaarsberg in Room 402 for details. 3013EXP0 TELE3013: Lab 0 1

TIMS Experimental System plug-in module fixed module Master Signals Frequency Counter Truck Panel Coax TIMS STATION sound card coax cable audio cable CRO Matlab PC Some Rules for Connecting TIMS Modules For all the modules used in the TIMS system the following rules apply: Left hand socket Right hand socket Red socket Yellow socket Green socket input output TTL level (0 and 5 volts). analog level (nominally 4 volts peak to peak, maybe larger) common, ground or earth level. DO NOT CONNECT YELLOW OUTPUTS TO RED INPUTS! 3013EXP0 TELE3013: Experiment 1 2

2. PREPARATION NB: It is important that the preliminary work for each experiment is done before you come to the laboratory. It will be marked at the beginning of each laboratory period. P1. Using Fourier transform tables or otherwise, write down the Fourier transform of the sinusoidal signal, x(t) = 1+ A sin ω ot, all t, where ω o = 2π f o is the angular frequency and A is a constant. Sketch x(t) and the magnitude and phase of its frequency spectrum. P2. Using simple trigonometry (or otherwise) write down the Fourier series expansion/representation of the periodic signal, y(t) = x 2 (t), where x(t) is defined in question P1. Sketch y(t) and the magnitude and phase of its frequency spectrum. Explain the spectrum symmetry of signals: x(t) and y(t). P3. A nonideal lowpass filter has a frequency response specified by, H ( f ) = (1 + 1 jf / f c ) 2 where f c is the filter cutoff frequency. Sketch H(f) as a function of frequency. Using Fourier transform tables write down and sketch the filter impulse response, h( t ) = F 1 { H( f )} 3013EXP0 TELE3013: Lab 0 3

3. EXPERIMENTS 3.1 Sinusoidal Signals and Frequency Measurement Refer to the TIMS Laboratory Manual for details about the Audio Oscillator, Frequency Counter and Scope Selector modules. Connect the Audio Oscillator to the oscilloscope via the Scope Selector and use the Frequency Counter to set the signal frequency to about 3 khz. Observe the waveform on the oscilloscope and also note the effect of the Gate Time of the Frequency Counter measurement. a) Note the Frequency Counter reading. b) Estimate the signal frequency from the oscilloscope. How well does this measurement agree with that in Part a)? c) Use the PC with the following MATLAB commands to record and display 400 samples of the signal sampled at 44,100 Hz (and quantized at 16 bits per sample), x = getrec (400, 44100, 16) t = (0:399)/44.1; plot (t, x), grid {acquire the data} {set the time scale} {plot with grid} Note: On line information is available for MATLAB functions; simply type help function_name, for example help getrec. Also see Appendix 1 of this Laboratory experiment. The amplitude (or magnitude) of the frequency spectrum of the signal record x is computed and displayed using the MATLAB command, ampspec (x, 44100); Sketch this amplitude spectrum and compare it with the theoretical frequency spectrum of a sinusoidal signal (of infinite duration). 3.2 A Simple System: Signal Cancellation or Nulling Connect up the TIMS modules for the system shown below. (Refer to the TIMS Manual for module details). Audio Osc. cosω t Phase Shifter Adder Oscilloscope sinω t Set the Audio Oscillator frequency to about 2 khz and 1. Observe the inputs of the Adder on the oscilloscope. 3013EXP0 TELE3013: Experiment 1 4

2. Show that the phase of the upper signal (cosωt) and the amplitude of the lower signal can be adjusted so that the output from the Adder can be reduced (almost) to zero, ie nulled. 3. Observe, record and think a) Are the amplitude and phase adjustments in Part 2. independent (ie: not interactive)? b) What minimum voltage level at the Adder output can you achieve? c) Is the null adjustment upset if the frequency of the Audio Oscillator is changed? If so, why? 3.3 Multiplier Connected as a Squarer Connect up the Audio Oscillator and Multiplier modules as shown below. Multiplier Audio Osc. cosωt x z Output y Set the Audio Oscillator frequency to about 2 khz and a) Observe and sketch the Multiplier input and output signals on the oscilloscope which should be dc coupled. b) Write down an algebraic expression for the multiplier output. Is the observed output consistent with this? c) The TIMS Manual indicates that for input signals x(t) and y(t), the Multiplier output signal is z(t) = k x(t) y(t) where k is the multiplier scaling parameter or factor. Determine the value of k including its units. d) Use the PC with the following MATLAB commands to obtain a sample of the multiplier output signal and display its amplitude spectrum. x = getrec (400, 44100, 16); ampspec (x, 44100); e) Sketch the amplitude spectrum signal. Is it consistent with the results from Part a)? If not, why not? 3013EXP0 TELE3013: Lab 0 5

3.4 Tuneable Lowpass Filter Read the TIMS Manual entry for the Tunable Lowpass Filter and then connect up the modules shown in the block diagram below. Audio Osc. TTL Signal Adder (0-5V) (2V p-p) Tuneable LPF Filter Output Choose the Audio Oscillator TTL (red) output and set the frequency to obtain a square wave signal with a fundamental frequency of approximately 1 khz. Use the Adder module to reduce the square wave amplitude to about 2 volts peak peak. Set the Tuneable Lowpass Filter cutoff frequency to 1.5 khz (use the Frequency Counter to set the LPF clock frequency). a) Observe the filter input and output signals on the oscilloscope and sketch their waveforms. b) Use the PC with the following MATLAB commands to obtain samples of the filter input and output signals (separately) and display their amplitude spectra. x = getrec (400, 44100, 16); ampspec (x, 44100); c) Sketch the amplitude spectra of the square wave and the filtered signal. How do they compare with (theoretically) expected results? d) Repeat the getrec and ampspec commands with 2048 points or samples. Does the frequency spectrum look different at all? 3013EXP0 TELE3013: Experiment 1 6

4. APPENDIX Note on Signal Acquisition and Spectrum Analysis using a PC with MATLAB Software Signal acquisition and spectrum analysis will be carried out digitally by means of an analog to digital converter and a personal computer (PC) with the MATLAB software package. Analog to-digital conversion is provided by a Soundlbaster 16 ASP card in the PC. The discrete Fourier transform (DFT) of the sampled signal is computed by means of a MATLAB Fast Fourier Transform (FFT) algorithm. The sampled signal and the amplitude spectrum can be processed and displayed using the appropriate MATLAB commands. 1. Signal Acquisition Use the MATLAB function getrec to obtain a sampled record of a signal. eg: The following MATLAB statement will cause the Soundblaster to acquire 1024 samples of a signal at a sampling rate of 44100 samples per second with 16 bits per sample, The result is stored in the vector x. x = getrec (1024, 44100, 16); To display the sampled signal x versus a time scale t in milliseconds use the following MATLAB commands (Note that the number of points plotted can be varied and is 100 in the present case). t = ( 0:length(x) 1 )/44.1; plot (t (1:100), x(1:100) ), grid 2. Spectrum The MATLAB function ampspec computes the amplitude spectrum of the signal x and displays the result, eg: X amp = ampspec (x, 44100); where the vector X amp contains the amplitude spectrum values. The function ampspec uses a fast Fourier transform algorithm, the MATLAB function fft, to compute the discrete Fourier transform (DFT) of the data vector x. The computation is faster if the length of x is a power of 2; alternatively the data can be padded with zeros to make the length a power of two. For example: if N = length (x) = 1000, we might write fft(x, 1024) instead of fft(x). The difference in computation time is significant for longer vectors eg: N = 10 4 or greater. 3. Average Powers The average power P av of the signal x can be estimated from the amplitude spectrum using the command P av = 2 * sum((x amp * F s / N ).^2) where N = length (x) is the number of samples in the signal record vector x and F s is the sample rate in Hz. 3013EXP0 TELE3013: Lab 0 7

The average dc and ac power, (in a 1 ohm resistor) P dc and P ac, of the signal x can also be estimated in the time domain from the mean and variance of x using the appropriate MATLAB commands: P dc = mean(x).^2 (**) P ac = std(x).^2 ** Note: P dc cannot be measured when the data is acquired using the Soundblaster because it is AC coupled. Reference: The MathWorks Inc., The Student Edition of MATLAB Version 4, Prentice Hall 1995 (P517.6/430). The MathWorks Inc., Student Edition of MATLAB Version 5 for Student User s Guide, Prentice Hall 1997. D.C. Hanselman & B.C. Littlefield, Mastering MATLAB Version 5: A Comprehensive Tutorial and Reference, Prentice Hall 1997. 3013EXP0 TELE3013: Experiment 1 8