ECE 4115 Control Systems Lab 1 Spring 2005 Chapter 1 System models.

Slides:



Advertisements
Similar presentations
MATLAB BASICS ECEN 605 Linear Control Systems Instructor: S.P. Bhattacharyya.
Advertisements

STATE SPACE MODELS MATLAB Tutorial.
ECEN/MAE 3723 – Systems I MATLAB Lecture 3.
For System Dynamics & Control
1 Eng. Mohamed El-Taher Eng. Ahmed Ibrahim. 2 1.FUNCTION SUMMARY polyfun  Polynomial functions are located in the MATLAB polyfun directory. For a complete.
UNIVERSITÁ DEGLI STUDI DI SALERNO FACOLTÀ DI INGEGNERIA Prof. Ing. Michele MICCIO Dip. Ingegneria Industriale (DIIn) Prodal Scarl (Fisciano) Transfer Function.
Properties of State Variables
EE-2027 SaS, L13 1/13 Lecture 13: Inverse Laplace Transform 5 Laplace transform (3 lectures): Laplace transform as Fourier transform with convergence factor.
Lect15EEE 2021 Systems Concepts Dr. Holbert March 19, 2008.
1 ECEN Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari OKLAHOMA STATE UNIVERSITY.
7/2/2015MATLAB1.  MATLAB  MATLAB and Toolboxes  MATLAB and Control  Control System Toolbox  Simulink 7/2/2015MATLAB Control Toolbox2.
Modeling in the Time Domain - State-Space
Lecture 181 EEE 302 Electrical Networks II Dr. Keith E. Holbert Summer 2001.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
MATLAB-Tutorial 3 Class ECES-304 Presented by : Shubham Bhat.
Properties of the z-Transform
ECE 4115 Control Systems Lab 1 Spring 2005
ENSC 383- Feedback Control Summer 2010 TAs:Kaveh Kianfar, Esmaeil Tafazzoli G(s) U(s) inputY(s) output MATLAB Tutorial 1.
MESB 374 System Modeling and Analysis Inverse Laplace Transform and I/O Model.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
EECE 360/460 Matlab Tutorial Jan Outline What is Matlab? What is Matlab? Matlab Interface Matlab Interface Basic Syntax Basic Syntax Plotting Graphs.
ECE 8443 – Pattern Recognition ECE 3163 – Signals and Systems Objectives: Modulation Summation Convolution Initial Value and Final Value Theorems Inverse.
ECE 4115 Control Systems Lab 1 Spring 2005
Solving DEs etc. Laplace transforming derivatives Etc.
Modified by Albert W.J. Hsue,
Chapter 4 Transfer Function and Block Diagram Operations § 4.1 Linear Time-Invariant Systems § 4.2 Transfer Function and Dynamic Systems § 4.3 Transfer.
MATLAB-Tutorial 2 Class ECES-304 Presented by : Shubham Bhat.
1 Time-Domain Representations of LTI Systems CHAPTER 2.11 Characteristics of Systems Described by Differential and Difference Equations and Difference.
Simulink Simulink is a graphical extension to MATLAB for modeling and simulation of systems. In Simulink, systems are drawn on screen as block diagrams.
Frequency Response Analysis
1 More General Transfer Function Models Chapter 6 Poles and Zeros: The dynamic behavior of a transfer function model can be characterized by the numerical.
SURF 2015 lecture: Jun 24, 2015 Koji Arai – LIGO Laboratory / Caltech LIGO-G v1.
G(s) Input (sinusoid) Time Output Ti me InputOutput A linear, time-invariant single input and single output (SISO) system. The input to this system is.
Lecture 4: The z-Transform 1. The z-transform The z-transform is used in sampled data systems just as the Laplace transform is used in continuous-time.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
CONTROL SYSTEM DESIGN by using MATLAB
Inverse Laplace Transform. Laplace Transform of derivatives.
State Space Models The state space model represents a physical system as n first order differential equations. This form is better suited for computer.
For field control with constant armature current
 Sub : system response analysis using ‘MATLAB’. prepared by, chokshi abhi ( ) Guided by, Prof. Vishvjit.K.Thakar sir(Head of ECE dept.).
Exercise 1 Suppose we have a simple mass, spring, and damper problem. Find The modeling equation of this system (F input, x output). The transfer function.
EE611 Deterministic Systems Examples and Discrete Systems Descriptions Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
EE611 Deterministic Systems System Descriptions, State, Convolution Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Properties of the z-Transform
EE4262: Digital and Non-Linear Control
MESB374 System Modeling and Analysis Transfer Function Analysis
Modeling and Simulation Dr. Mohammad Kilani
Lesson 15: Bode Plots of Transfer Functions
© Dr. Elmer P. Dadios - DLSU Fellow & Professor
Chapter 4 Transfer Function and Block Diagram Operations
Lecture 3: Solving Diff Eqs with the Laplace Transform
ME375 Handouts - Fall 2002 MESB374 Chapter8 System Modeling and Analysis Time domain Analysis Transfer Function Analysis.
DC Motor Driving an Inertial Load
Control System Toolbox (Part-I)
DC Motor Driving an Inertial Load
ECEN Automatic Control Systems Introduction and Control Basics
Control System Toolbox
LINEAR CONTROL SYSTEMS
Signals and Systems Using MATLAB Luis F. Chaparro
Modeling in the Time Domain
1 ECEN Automatic Control Systems Matlab Lecture 1 Introduction and Control Basics Presented by Moayed Daneshyari OKLAHOMA STATE UNIVERSITY.
Hanani binti Abdul Wahab 24 September 2008
State Space Method.
DC Motor Driving an Inertial Load
Control System Toolbox (Part-I)
Root Locus Plot of Dynamic Systems
Chapter 2. Mathematical Foundation
ECEN 605 Linear Control Systems Instructor: S.P. Bhattacharyya
Introduction To MATLAB
Presentation transcript:

ECE 4115 Control Systems Lab 1 Spring 2005 Chapter 1 System models

Control System Toolbox 4 basic types of LTI models Transfer Function (TF) Zero-pole-gain model (ZPK) State-Space models (SS) Frequency response data model (FRD) Conversion between models Model dynamics

Matlab Start  Run  \\laser\apps Open MatlabR14 and double click on MATLAB 7.0.1

Transfer Function Models

Consider a Linear time invariant (LTI) single- input/single-output system Applying Laplace Transform to both sides with zero initial conditions Transfer Function

Command tf CommandHelp tf Creation of transfer functions sys=tf(num,den) creates a continuous-time transfer function sys with numerator(s) num and denominator(s) den. The output sys is a tf object. For SISO models, num and den are row vectors listing, respectively, the numerator and denominator coefficients in descending powers of s by default.

Command tf >> num = [4 3]; >> den = [1 6 5]; >> sys = tf(num,den) Transfer function: 4 s s^2 + 6 s + 5

Command tfdata CommandHelp tfdata Quick access to transfer function data. [num,den]=tfdata(sys,'v') returns the numerator and denominator as row vectors. If sys is not a transfer function, it is first converted.

Command tfdata >> [num,den] = tfdata(sys,'v') num = den = 1 6 5

My first program: Chp1_1.m %Program to write a Transfer function %Author: Firstname Lastname clear all close all clc num = [4 3]; den = [1 6 5]; sys = tf(num,den)%transfer function model [num1,den1] = tfdata(sys,'v')

Zero-pole-gain models

Consider a Linear time invariant (LTI) single- input/single-output system Applying Laplace Transform to both sides with zero initial conditions Zero-pole-gain model (ZPK)

Command zpk CommandHelp zpk Create zero-pole-gain models sys=zpk(z,p,k) creates a continuous-time zero-pole-gain model sys with zeros z, poles p, and gains k. The output sys is a zpk object. For SISO models, z and p are the vectors of zeros and poles (set Z=[ ] if no zeros) and K is the scalar gain.

Command zpk >> sys1 = zpk(-0.75,[-1 -5],4) Zero/pole/gain: 4 (s+0.75) (s+1) (s+5)

Command zpkdata CommandHelp zpkdata Quick access to zero-pole-gain data. [z,p,k]=zpkdata(sys,'v') returns the zeros z and poles p as column vectors and the gain k of the system. If sys is not in zero-pole- gain format, it is first converted.

Command zpkdata >> [ze,po,k]=zpkdata(sys1,'v') ze = po = -5 k = 4

H:\ECE4115\Chp1\Chp1_2.m %Program to write a Zero-Pole-Gain Model %Author: Firstname Lastname clear all close all clc z= -0.75; p = [-1 -5]; g = 4; sys1 = zpk(z,p,g) disp('The zeros, poles and gain corresponding to the system are') [ze,po,k]=zpkdata(sys1,'v')

State-space Models

Consider a Linear time invariant (LTI) single- input/single-output system State-space model for this system is

Command SS >> sys = ss([0 1; -5 -6],[0;1],[3,4],0) a = x1 x2 x1 0 1 x b = u1 x1 0 x2 1 c = x1 x2 y1 3 4 d = u1 y1 0 Continuous-time model.

Command ssdata >> [A, B,C,D] = ssdata(sys) A = B = 0 1 C = 3 4 D = 0

H:\ECE4115\Chp1\Chp1_3.m %Program to write a State-space Model %Author: Firstname Lastname clear all close all clc A = [0 1; -5 -6]; B = [0; 1]; C = [3 4]; D = 0; sys = ss(A,B,C,D) [A,B,C,D] = ssdata(sys)

Frequency Response Data Models

freq = [1000; 2000; 3000]; resp = [1;2;3]; H = frd(resp,freq) From input 1 to: Frequency(rad/s) output Continuous-time frequency response data model.

Conversion between different models sys_tf = tf(sys) converts an arbitrary LTI model sys to equivalent transfer function representation sys_zpk = zpk(sys) converts an arbitrary LTI model sys to equivalent transfer function representation sys_ss = ss(sys) converts an arbitrary LTI model sys to equivalent transfer function representation

Model Dynamics pzmap: Pole-zero map of LTI models. pole: computes the poles of LTI models. eig: computes the poles of LTI models. zeros: computes the zeros of LTI models. dcgain: DC gain of LTI models.

Pzmap CommandHelp pzmap Pole-zero map of LTI models. pzmap(sys) computes the poles and (transmission) zeros of the LTI model sys (which can be either a tf, ss or zpk) and plots them in the complex plane. The poles are plotted as x's and the zeros are plotted as o's. [p,z]=pzmap(sys) returns the poles and zeros of the system in two column vectors p and z. No plot is drawn on the screen.

Poles and Eigen Values CommandHelp pole Compute the poles of LTI models. p=pole(sys) computes the poles p of the LTI model sys (which can be either a tf, ss or zpk). The output p is a column vector. eig Compute the poles of LTI models p=eig(sys) computes the poles p of the LTI model sys (which can be either a tf, ss or zpk). The output p is a column vector.

Zeros CommandHelp zero Compute the zeros of LTI models. z=zero(sys) returns the transmission zeros of the LTI model sys. [z,gain]=zero(sys) also returns the transfer function gain (in the zero-pole-gain sense) for SISO models sys.

Dcgain CommandHelp dcgain DC gain of LTI models. k=dcgain(sys) computes the steady-state (D.C. or low frequency, i.e. G(0)) gain of the LTI model sys.

H:\ECE4115\Chp1\Chp1_3.m %Program to write a State-space Model and understand model dynamics %Author: Firstname Lastname clear all close all clc num = [4 3]; den = [1 6 5]; sys = tf(num,den) %sys in transfer function model sys_ss = ss(sys) %sys_ss in state space model pzmap(sys) %plot pole-zero map p = pole(sys) %determine poles po = eig(sys) %determine poles z= zero(sys) %determine zeros k= dcgain(sys) %determine DC gain

HW #1 One submission per team Submit HW1_1.m, HW1_2.m and Hw1_3.m

Questions??? Next Class on Mar 4th