EE3417 Continuous Signals and Systems Spring 2013 Lab Tentative Syllabus Week/Dates 1 August 27 Lecture First day of classes, Introduction to the course Math review 2 Sept 1-3 Math review Introduction to MATLAB 3 Sept 8-10 Introduction to signals and systems, signal operations, signal classification and models. 4 Sept 15-17 Operations with signals White box system examples, 1st order ODEs 5 Sept 22-24 LTI/LTV systems, memory/dynamic, causality, (non)invertible systems. 6 Sept 29-Oct 1 7 Oct 6-8 Time Domain Analysis of Systems: Zero-Input, Impulse Response, stability Time Domain Analysis of Systems: Convolution, zero-state response, forced response, total response, transient decay, resonance, time-constant 8 Oct 13-15 Time domain analysis of systems: State-Space analysis 9 Oct 20-22 Frequency Domain Analysis Laplace Transform 10 Oct 27-29 Frequency Domain Analysis Bode Plots, Transfer Function, Block Diagrams 11 Nov 3-5 Frequency domain applications to control and signal processing 12 Nov 10-12 Frequency domain analysis in state-space Laboratory Lab Orientation Recitation 1: Review of matrix and vector algebra, ODEs, complex numbers, series. Recitation 2: Review of matrix and vector algebra, ODEs, complex numbers, series. Matlab 1: Simple commands, arithmetic, plotting, complex numbers, vector operations, saving and loading workspace variables. Matlab 2: Complex numbers, vector operations, saving and loading workspace variables. M-file scripting, functions, partial fraction expansion. Recitation 3: Introduction to signals and systems and examples Matlab 3: Signal representation and operations with signals. ODE solvers. Recitation 4: Operation on signals LabView 1: Introduction to LabView and MyDAQ Recitation 5: Basic systems and related concepts Matlab 4: Simple white box models simulation in MATLAB Recitation 6: Examples on system response and time domain analysis. Matlab 5: System representation and simulation using ODEs. Recitation 7: Convolution, system representation and simulation using ODEs. LabView 2: Time-domain response experiment. Recitation 8: State space concepts and review for exam Matlab 6: Introduction to Simulink, State-space block diagrams using Simulink LabView 3: Basic programming structures, input/output functions with MyDAQ. LabView 4: Signal generation and acquisition with MyDAQ. Recitation 9: Properties of Laplace transform, system response using frequency domain analysis, bode plots Matlab 7: Bode plots, transfer functions and block diagrams Recitation 10: Control block diagrams, stability, and system response Matlab 8: System simulation in Simulink. Recitation 11: Filter design, system realization diagrams, state space transfer function and examples. Matlab 9: System SS representation using Simulink. HW/Exam HW1 out Quiz1 HW1due HW2 out Quiz 2 HW2due HW3 out Quiz 3 HW3due Midterm 1 HW4 out Quiz 4 HW4due HW5 out HW5 due Midterm 2 out Midterm 2 due HW6 out 13 Nov 17-19 14 Nov 24 15 Dec 1-3 Fourier Series Fourier Series and Fourier Transform Application to signal processing: filters and window functions 16 Dec 8 Course Recap 17 Dec 15 Finals week Recitation 11: Fourier Series examples LabView 5: Frequency content of signals and filters Recitation 12: Examples of Fourier analysis. Matlab 10: Signal processing using MATLAB Quiz 5 HW6 due Quiz6 Recitation 13: Review Final Exam (in class) MATLAB Sessions Plan 1. Introduction (90 min total) Commands: Arithmetic operations with scalars, vectors, and matrices, transpose, inverse, determinant, vector concatenation, complex numbers, array indexing, workspace, element by element arithmetic, clear, clc, whos, real, imag, conj, abs, ones, zeros, interactive plotting, saving and loading variables, etc. a. Video Tutorial – MATLAB Overview (10 min total) http://www.mathworks.com/videos/matlab-overview-61923.html (2:04 min) b. Video Tutorial – Getting Started and Exercise 1.1 – Simple Commands, arithmetic, and vector operations (30 min total) http://www.mathworks.com/videos/getting-started-with-matlab-68985.html (5:18 min) http://www.mathworks.com/products/matlab/examples.html?file=/products/demos/shipping/matlab/i ntro.html c. Video Tutorial – Working with Arrays and Exercise 1.2 (20 min total) http://www.mathworks.com/videos/working-with-arrays-in-matlab-69022.html (7:51 min) d. Video Tutorial – Working in the Development Environment (10 min total) http://www.mathworks.com/videos/working-in-the-development-environment-69021.html (4:07 min) e. Video Tutorial – Creating a Basic Plot Interactively and Exercise 1.3 (20 min total) http://www.mathworks.com/videos/creating-a-basic-plot-interactively-68978.html (5:12 min) 2. Programming (80 min total) Commands: Scripts, loop and conditional statements, expressions, plotting, cell arrays, characters and text, logical operations, functions, partial fraction expansion, etc. a. Video Tutorial – Writing a MATLAB Program and Exercise 2.1 (40 min total) http://www.mathworks.com/videos/writing-a-matlab-program-69023.html (5:45 min) b. Video Tutorial – Creating a Basic Plot via Plotting Commands and Exercise 2.2 (20 min total) http://www.mathworks.com/videos/using-basic-plotting-functions-69018.html (5:30 min) c. Exercise 2.2 – Partial Fraction Expansion (20 min) 3. Signals (80 min total) Commands: Systems of linear equations, factorization, eigenvalues, eigenvectors, norm, rank, signals, ode solvers, etc. a. Exercise 3.1 – Signal Representation via Discrete Samples (40 min): Impulse, step, ramp, sinusoidal signals. Arithmetic operations with signals. b. Exercise 3.2 – Solving a First Order Ordinary Differential Equation (40 min). 4. Introduction to Simulink (80 min) Blocks: Sources, sinks, math, etc. a. Video Tutorial – Simulink Overview (10 min total) http://www.mathworks.com/videos/simulink-overview-61216.html (2:58 min) b. Video Tutorial – Getting Started with Simulink and Exercise 4.1 (50 min total) http://www.mathworks.com/academia/student_center/tutorials/simulink-launchpad.html (3:28 min) c. Video Tutorial – Visualizing Simulation Results (20 min total) http://www.mathworks.com/videos/visualizing-simulation-results-69032.html (2:51 min) 5. Systems (80 min total) Commands: Convolution, time representation, etc. a. Exercise 5.1 – Convolution of signals (30 min) b. Exercise 5.2 – Simulation of a second order system using two first order differential equations (50 min) 6. System Simulation in Simulink (80 min total) Blocks: Integrator, math, sinks. a. Exercise 6.1 – Modeling a second order system using elementary blocks such as integrators, summers, and gains (50 min) b. Video Tutorial – Controlling Simulation Performance Using Solver Settings (30 min total) http://www.mathworks.com/videos/controlling-simulation-performance-with-solver-settings69031.html (2:27 min) 7. System Simulation Using Transfer Functions (80 min) Commands and blocks: Transfer function, impulse, step, continuous blocks, control system toolbox, etc. a. Exercise 7.1 – Modeling a second order system using a transfer function and finding its response programmatically (40 min) b. Exercise 7.2 – Simulating systems using transfer functions in Simulink (40 min) 8. State-Space Modeling (80 min total) Commands and Blocks: Embedded function, state-space block, etc. a. Video Tutorial – Incorporating MATLAB Algorithms into a Simulink Model (10 min total) http://www.mathworks.com/videos/incorporating-matlab-algorithms-into-a-simulink-model69028.html (2:11) b. Exercise 8.1 – Simulating a second-order system via an embedded function block in Simulink (40 min) c. Exercise 8.2 – Simulating a second-order system using the state-space block in Simulink (30 min) 9. Fourier Analysis (80 min total) Commands and Blocks: Filter, bode, nyquist, fft, signal processing toolbox, etc. a. Exercise 9.1 – Finding Fourier coefficients of signals (40 min) b. Video Tutorial – Signal Processing Toolbox Overview (10 min total) http://www.mathworks.com/videos/signal-processing-toolbox-overview-61202.html (3:29 min) c. Exercise 9.2 – Fourier analysis and Fourier transform functions (30 min) LABVIEW Sessions Plan 1. Introduction to LabView and MyDAQ (80 min total) a. Video Tutorial – Environment Basics and Exercise 1.1 – Hello World (20 min total) http://www.ni.com/gettingstarted/labviewbasics/environment.htm (3:21 min) b. Video Tutorial – Data Flow Programming and Exercise 1.2 – Fahrenheit to Celsius (20 min total) http://www.ni.com/gettingstarted/labviewbasics/dataflow.htm (4:04 min) c. Video Tutorial – Data types in LabView (10 min total) http://www.ni.com/gettingstarted/labviewbasics/dataflow.htm, (4:25 min) 2. 3. 4. 5. 6. d. Exercise 1.3 – Using MyDAQ with ELVIS (30 min) http://www.ni.com/mydaq/support/ (2:47 min) http://www.ni.com/academic/students/learnlabview/hardware.htm (5:09) Basic Programming and I/O (80 min total) a. Exercise 2.1 – Basic Palettes and Functions (40 min) b. Video Tutorial – Taking a Measurement and Exercise 2.2 – Signal Acquisition with MyDAQ (40 min total) http://zone.ni.com/wv/app/doc/p/id/wv-1938/upvisited/y (4:55 min) Signal Generation and Acquisition (90 min total) a. Video Tutorial – Generating a Signal and Exercise 3.1 – Signal Generation and Acquisition with MyDAQ (50 min total) http://zone.ni.com/wv/app/doc/p/id/wv-1939/upvisited/y (3:28 min) b. Exercise 3.2 – Acquiring audio signal with MyDAQ (40 min) https://decibel.ni.com/content/docs/DOC-12546, http://www.ni.com/white-paper/11433/en Time-Domain System Response (80 min total) a. Exercise 4.1 – Response of an RC circuit to step input (40 min) http://zone.ni.com/devzone/cda/ph/p/id/217 (text) b. Exercise 4.2 – Transient response analysis of an RC circuit to step input (40 min) Frequency-Domain Response (80 min total) a. Video Tutorial – Logging Measurement Data to a File (20 min total) http://zone.ni.com/wv/app/doc/p/id/wv-1940/upvisited/y (3:40 min) b. Exercise 5.1 – Response of an RC circuit to sinusoidal input at various frequencies (40 min) http://zone.ni.com/devzone/cda/ph/p/id/217#toc1 (text) c. Exercise 5.2 – Bode plot of the frequency response of the RC circuit (20 min) Frequency Content of a Signal and Filtering (80 min total) a. Video Tutorial – Frequency Domain in Measurements (20 min total) http://www.ni.com/white-paper/13042/en (3:05 min) b. Video Tutorial – Spectrum Analysis and Exercise 6.1 – Audio Signal Filtering (60 min total) http://zone.ni.com/wv/app/doc/p/id/wv-1941/upvisited/y (3:39) Recitation Sessions Plan 1. Review of matrix and vector algebra, ODEs, complex numbers, series (80 min total) a. Example 1.1 – Matrix arithmetic operations, transpose, inverse, etc. b. Example 1.2 – Representation of an RLC circuit using ordinary differential equations. c. Example 1.3 – Complex number arithmetic. Representation of complex numbers on Cartesian system. d. Example 1.4 – Conversion between Cartesian and Polar coordinates. e. Example 1.5 – Taylor series expansion of exponential and trigonometric functions. f. Example 1.6 – PFE of a rational polynomial function. 2. Examples on vector spaces and matrix algebra. a. Example 2.1 – System of linear equations and their matrix equation representation. b. Example 2.2 – Checking if a mathematical structure satisfies vector space properties. c. Example 2.3 – Norm and inner product. d. Example 2.4 – Eigenvalue and eigenvector. e. Example 2.5 – Basis vector and substitution lemma. f. Example 2.6 – Characteristic equation and Cayley-Hamilton theorem. 3. Examples on signals and models. a. Example 3.1 – Signal operations: Time shift, scaling, reversal, etc. 4. 5. 6. 7. 8. b. Example 3.2 – Period of a signal. c. Example 3.3 – Arithmetic of impulse, step, and exponential signals. d. Example 3.4 – Energy of a signal. e. Example 3.5 – System representation of an RLC circuit and the concept of system order. Examples on system response and time domain analysis. a. Example 4.1 – Zero-input and zero-state responses of a first-order system. b. Example 4.2 – Time-invariant and time-varying systems. c. Example 4.3 – Comparison of memoryless and dynamical systems. d. Example 4.4 – A non-causal system representation e. Example 4.5 – A stable versus an unstable system. Review for Exam 1 and Examples on LTI system response. a. Example 5.1 – Deriving the ODE of a mass-spring-damper system. b. Example 5.2 – Finding the basis vector, eigenvalues, and eigenvectors for a set of linear equations. c. Example 5.3 – Finding if a 2nd order system is stable or unstable. d. Example 5.4 – Total response of a 2nd order system. e. Example 5.5 – Concept of linearization. Examples on Laplace transform and system analysis with transfer functions. a. Example 6.1 – Laplace transform of a 2nd, 3rd, and 4th order system representations. b. Example 6.2 – Transfer function representation of a 2nd order system. c. Example 6.3 – Properties of Laplace transform. d. Example 6.4 – Solution of an LTI system using inverse Laplace transform and PFE. e. Example 6.5 – Feedback systems and stability analysis based on transfer functions. Examples on Frequency Response of Systems and Fourier series. a. Example 7.1 – Amplitude and phase response of a system. b. Example 7.2 – Concept of decibel and bode plots. c. Example 7.3 – Low-pass and band-pass filter design via pole-zero diagrams. d. Example 7.4 – Fourier coefficient of typical periodic signals. Examples on Fourier transform. a. Example 8.1 – Properties of Fourier series. b. Example 8.2 – Fourier transform. c. Example 8.3 – Properties of Fourier transform. d. Example 8.4 – Filter design