ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm

Similar documents
Introduction to Simulink Assignment Companion Document

Introduction to Simulink

Memorial University of Newfoundland Faculty of Engineering and Applied Science. Lab Manual

Experiment 1 Introduction to MATLAB and Simulink

ES442 Final Project AM & FM De/Modulation Using SIMULINK

Use of the LTI Viewer and MUX Block in Simulink

Experiment 1 Introduction to Simulink

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

Lab 1B LabVIEW Filter Signal

EXPERIMENT 4 INTRODUCTION TO AMPLITUDE MODULATION SUBMITTED BY

ECEGR Lab #8: Introduction to Simulink

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

COMMUNICATION LABORATORY

Measuring Modulations

Laboratory Experiment #1 Introduction to Spectral Analysis

Lab 1: First Order CT Systems, Blockdiagrams, Introduction

ECE411 - Laboratory Exercise #1

Implementation of QAM Modulation Demodulation Based on. Simulink

Lab 1: Simulating Control Systems with Simulink and MATLAB

SigCal32 User s Guide Version 3.0

Introduction to Modeling of Switched Mode Power Converters Using MATLAB and Simulink

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

ELG3311: EXPERIMENT 2 Simulation of a Transformer Performance

RF Blockset For Use with Simulink

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

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

Lab 1: Analog Modulations

Contents. Introduction 1 1 Suggested Reading 2 2 Equipment and Software Tools 2 3 Experiment 2

Principles of Communications ECS 332

Experiment # 4. Frequency Modulation

E x p e r i m e n t 2 S i m u l a t i o n a n d R e a l - t i m e I m p l e m e n t a t i o n o f a S w i t c h - m o d e D C C o n v e r t e r

Wireless Communication Systems Laboratory #2. Understanding test equipments. The students will be familiar with the following items:

EE354 Spring 2016 Lab 1: Introduction to Lab Equipment

Figure C-1 (p. 907) MATLAB window showing how to access Simulink. The Simulink Library Browser button is shown circled.

C.8 Comb filters 462 APPENDIX C. LABORATORY EXERCISES

TSKS01 Digital Communication

SigCalRP User s Guide

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

Experiment P45: LRC Circuit (Power Amplifier, Voltage Sensor)

Ansoft Designer Tutorial ECE 584 October, 2004

ECE4902 Lab 5 Simulation. Simulation. Export data for use in other software tools (e.g. MATLAB or excel) to compare measured data with simulation

PGT313 Digital Communication Technology. Lab 3. Quadrature Phase Shift Keying (QPSK) and 8-Phase Shift Keying (8-PSK)

Creo Revolve Tutorial

EE 210 Lab Exercise #3 Introduction to PSPICE

Tutorial 1: Install Forecaster HD (Win XP, Vista, 7, 8)

Lab 4 An FPGA Based Digital System Design ReadMeFirst

BER Performance with GNU Radio

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

Lab 2: Introduction to Real Time Workshop

The Design and Simulation of Embedded FIR Filter based on FPGA and DSP Builder

Modelling and Simulation of a DC Motor Drive

EE25266 ASIC/FPGA Chip Design. Designing a FIR Filter, FPGA in the Loop, Ethernet

Lab 8. Signal Analysis Using Matlab Simulink

Experiment 6: Multirate Signal Processing

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

Fig. 1. NI Elvis System

Lab #2 First Order RC Circuits Week of 27 January 2015

Time-Varying Signals

Activity P52: LRC Circuit (Voltage Sensor)

Set-up. Equipment required: Your issued Laptop MATLAB ( if you don t already have it on your laptop)

Open Loop Frequency Response

Figure AC circuit to be analyzed.

Practice 2. Baseband Communication

Magnitude and Phase Measurements. Analog Discovery

Data Analysis in MATLAB Lab 1: The speed limit of the nervous system (comparative conduction velocity)

Reference Sources. Prelab. Proakis chapter 7.4.1, equations to as attached

DIGITAL SIGNAL PROCESSING TOOLS VERSION 4.0

University of California, San Diego Department of Electrical and Computer Engineering

Reference Manual SPECTRUM. Signal Processing for Experimental Chemistry Teaching and Research / University of Maryland

The operation manual of spotlight 300 IR microscope

Modeling Communication Systems Using Simulink

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

Laboratory 5: Spread Spectrum Communications

Answers to Problems of Chapter 4

Sound synthesis with Pure Data

REVIT - RENDERING & DRAWINGS

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

BEST System Identification Toolkit User s Manual

NOVA technical note #8 1. Case study: how to use cutoff conditions in a FRA frequency scan?

ECE 2713 Homework 7 DUE: 05/1/2018, 11:59 PM

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Excel Lab 2: Plots of Data Sets

Excel Tool: Plots of Data Sets

Experiment # 2. Pulse Code Modulation: Uniform and Non-Uniform

Lab 3: Introduction to Software Defined Radio and GNU Radio

ECE65 Introduction to the Function Generator and the Oscilloscope Created by: Eldridge Alcantara (Spring 2007)

Tek UWB Spectral Analysis PrintedHelpDocument

Grid-Connected Full-Bridge Inverter Based on a Novel ZVS SPWM Scheme

Tutorials. OptiSys_Design. Optical Communication System Design Software. Version 1.0 for Windows 98/Me/2000 and Windows NT TM

LabVIEW Day 2: Other loops, Other graphs

Lab 1: Analog Modulations

Frequency Domain Representation of Signals

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

10.2. Scanning Document Camera Scoring. Page 1 of 5. How do I score answer sheets using a document camera? STEP 1

About the DSR Dropout, Surge, Ripple Simulator and AC/DC Voltage Source

INTRODUCTION TO AGILENT VEE

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

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

LLS - Introduction to Equipment

Transcription:

ENSC327 Communication Systems Fall 2011 Assignment #1 Due Wednesday, Sept. 28, 4:00 pm All problem numbers below refer to those in Haykin & Moher s book. 1. (FT) Problem 2.20. 2. (Convolution) Problem 2.24. 3. (AM) Problem 3.17 (a).

4. (AM Power efficiency) The following periodic message signal m(t) with period T is applied to an AM modulator. Find out its power efficiency when amplitude sensitivity k a = 0.4, 0.6, and 1, respectively. 1 0-1 T/2 T t 5. An AM modulator has output: s( t) = 10cos( 2π 100t) + 4cos( 2π 80t) + 4cos( 2π120t). (a) Find out the carrier frequency, message frequency, and modulation factor. (b) Find out the power efficiency. 6. Simulink Assignment: (Note: Simulink is available at ENSC undergraduate computer lab. Please don t wait to the last minute, because there are only 20 licenses for Signal Processing Blockset. ) A simple tutorial of basic Simulink operations can be found at the end of this document, which shows you how to build a system in Simulink. Please read the tutorial first, then build an AM modulator in the Matlab Simulink that can generate the output signal Set the following parameters in your model: [ 1+ k m( t) ] cos(2πf ) s( t) A t = c a c. Message: 500 Hz cosine wave with unit amplitude. Carrier: 2500Hz cosine wave. Sample time of the message and carrier: 1e-5 sec.

Gain Ac: 10. Simulation stop time: 0.025 second Amplitude sensitivity ka: test with 0.5, 1, and 1.5. The following building boxes are required for this assignment: From the Simulink/Sources sublibrary: Constant, Sine Wave. From the Simulink/Math Operations sublibrary: Add, Product, Gain. From the Simulink/Sinks sublibrary: Scope. From the Signal Processing Blockset/Signal Processing Sinks sublibrary: Spectrum Scope. You can put additional scopes or spectrum scopes to measure the signal at different points of the system. Print out your system layout. Run the simulation and print out the message signal, time domain output, and frequency domain output for each ka. Briefly explain the spectrum output. Some detailed steps are explained below. Continuous state vs discrete state: This assignment is essentially a discrete time simulation of the AM system. Therefore we need to tell Simulink to use discrete time simulator. This can be done by opening the Simulation / Configuration parameters window in the system layout window. In the list next to Solver, choose discrete (no continuous states). Without this setting, you will get a warning message when you run the simulation, although it does not affect the simulation. Set the parameters for the sine wave box Double click the sine wave box to bring up its parameter window, in which you can set the amplitude, bias (DC offset), frequency, phase, and sample time of the sine wave. Please keep the first two setting ( time-based sine type, and use simulation time ). The phase of the carrier should be set properly in order to get a cosine wave instead of a sine wave. This is also necessary if your message is a cosine signal. Note that the frequency and phase units used by Simulink are rad/sec and rad, respectively. Therefore we need to set the frequency as 2 * pi * 500 rad/sec if we want to use a frequency of 500 Hz. Similarly, we need to use pi/2 to represent a 90 o phase shift. The sample time should be small enough so that we get a smooth waveform. A value of 1e-5 sec (corresponding to a sample frequency of 100 khz) is sufficient for this lab. The same sample time should be used for the message and the carrier. How to set the parameter of the spectrum scope

Double click the Spectrum Scope box to bring up the Parameter Window. In the Scope Properties tab, select the Buffer Input check box. Set the buffer size to 1024 and buffer overlap to 512. Next, click the Axis Properties tab, change the Frequency Range from the default [0 Fs/2] to [-Fs/2 Fs/2]. This allows the display of the negative frequencies in addition to positive part. (Note: Some versions of Simulink do not have this feature. In that case, you do not need to make this change.) Note that there are some differences between the Spectrum Scope in Simulink 2009/2010 and the previous versions. The older versions can only display the power in linear scale or db scale. However, in Matlab 2009/2010, the Spectrum units parameter can be one of the following options, and the default is dbw/hertz. So if you use Simulink 2009/2010, please change it to dbm. This can be done by right-clicking the cpectrum scope, choose "mask parameters", then "Scope Properties" tab. The dbw is defined similar to dbm, except that the reference power is 1W instead of 1mW, so for the same power, its dbm value is 30 db higher than its dbw value. The difference between mean-square spectrum (MSS) and power spectral density (PSD) spectrum is that the former is for discrete spectrum, and the unit of the MSS is unit of power. PSD is for for continuous spectrum, The unit of the PSD is power per unit of frequency. In this course, our message is usually single-frequency signal, so we should ue MSS. Save the scope output data to Matlab workspace Double click a scope to open its display window before running the simulation. The spectrum scope window will be opened automatically once you start the simulation. You may need to adjust the axis scales of the scope by right-clicking the displayed waveform on the scope output window, choosing Autoscale, then using the Zoom X-axis icon in the menu bar to display a suitable amount of data.

Alternatively, you can easily export the scope output result to Matlab workspace. To do this, double click the Scope box to bring up the display window. Click the second icon on the menu bar to open the Parameters window (next to the printer). Click the Data History tag, and then click the Save data to workspace check box. Type in a name for the displayed data in the input box next to the Variable name: prompt. For example, you can type in myoutput. The exported data can have one of three possible formats: Structure with time: If this format is chosen, the exported variable is a Matlab structure. We can easily plot a figure similar to the scope output (with black background) by the command simplot(myoutput). The data sequence can be accessed by myoutput.signals.values. Structure: Same as structure with time, except that the time information is not exported. This format is not very useful. Array: In this format, the exported variable is a 2-D array, with the time information in the first column and the variable in the second column. We can plot the data by the command plot(myoutput(:,1), myoutput(:,2)). The advantage of this format over the first one is that the figure has white background, as regular Matlab figures. It is also useful if you only want to display a portion of the data in order to observe the data more clearly. For example: plot(myoutput(1:100,1), myoutput(1:100,2)). After this, run the simulation. When the simulation stops, go to the Matlab command window, type whos, you will find your variable from the list of all current variables in the workspace. You can then play around the data in Matlab. Change number of displayed samples of the Scope The default setup of the scope only displays the last 5000 samples. The setup can be changed by opening the Parameters window of the scope, then in the "Data History" tab, unclicking the "Limit data points to last 5000" option, or changing the number 5000. Appendix: Basic Simulink Operations Several basic operations of simulink are listed below. For futher information, please refer to Matlab Simulink help, or the following tutorials: http://www.mathworks.com/academia/student_center/tutorials/slregister.html http://www-ccs.ucsd.edu/matlab/toolbox/simulink/c02_qui5.html#3791 http://www-ccs.ucsd.edu/matlab/toolbox/simulink/simulink.html http://www.library.cmu.edu/ctms/ctms/simulink/basic/basic.htm 1. Start Simulink: Type simulink from Matlab command window, or click the Simulink icon in the Matlab menubar, as shown below.

The following Simulink Library Browser window will be opened, which lists the basic simulink library and additional toolboxes and blocksets. You can click a library name in the left to expand it and show the sublibraries in it. Click on a sublibrary name, the boxes in it will be listed in the right hand side. 2. Create a new model: In the Simulink Library Browser window, click the Create a new model menu icon, or choose File/New/Model menu option. A blank model window will be opened. This is where we can build our system.

3. Add building boxes to the model: To add a box to our system, simply left click the mouse on a box in the Simulink Library Browser window, hold the mouse button, drag the mouse to the model window, and release the mouse button. As a simple example, suppose we want to multiply two sine waves. We can add two sine wave boxes (in the Simulink/Sources sublibrary), one Product box (in the Simulink/Math Operations sublibrary), one Scope (Simulink/Sinks sublibrary), one Spectrum Scope (Signal Processing Blockset/Signal Processing Sinks sublibrary) to our new model window. The following is what we have after this.

4. Connect two boxes by signal line: The next step is to connect the system with signal lines to complete the model. Place the cursor on the output port of the sine wave box (the > symbol on the right edge). The cursor will change to a cross-hair shape. Drag the cursor from the output of one box to the > symbol at the input of another box. Release the mouse when the cursor changes to double lined cross-hair. A line will be created between the two ports. A quick way is to hold down the Ctrl key, click one box, and then click the next box. A line will be created automatically. In our simple example, we can connect the two sine waves to the product box, then connect the output of the product to the scope, as shown below. 5. Add branch to a line: Next we want to connect the spectrum scope to the product output. To do this, we need to branch from the signal line connecting the product to the scope. This can be achieved by pressing and holding the Ctrl key and clicking on any point of the signal line. The cursor will become a cross-hair. We can then move the cursor to the destination port. In this example, we connect a line to the spectrum scope, as shown below.

6. Set the parameter of each box: Double click each box will bring up its parameter window. Please refer to the assignment for details. 7. Set up simulation stop time, and run the simulation. The simulation stop time can be changed from the input box on the menu bar of the mode window, as shown below. The default value is 10 seconds. Start simulation Simulation Stop time 8. Save the system: The system layout and parameters can be saved as a.mdl file, so that you can open and edit it later.