Department of Electrical and Computer Engineering ECED4601 Digital Control System Lab3 Digital State Space Model

Similar documents
CONTROL SYSTEMS LABORATORY ECE311 LAB 1: The Magnetic Ball Suspension System: Modelling and Simulation Using Matlab

Control Systems Design

Module 08 Observability and State Estimator Design of Dynamical LTI Systems

ECE504: Lecture 9. D. Richard Brown III. Worcester Polytechnic Institute. 04-Nov-2008

Control Systems Lab - SC4070 Control techniques

LABORATORY INSTRUCTION MANUAL CONTROL SYSTEM II LAB EE 693

SAMPLE SOLUTION TO EXAM in MAS501 Control Systems 2 Autumn 2015

MATLAB Introduction and Review

16.30 Estimation and Control of Aerospace Systems

State Space Control D R. T A R E K A. T U T U N J I

Teaching State Variable Feedback to Technology Students Using MATLAB and SIMULINK

Department of Electrical and Computer Engineering. EE461: Digital Control - Lab Manual

Discrete-time linear systems

Massachusetts Institute of Technology Department of Mechanical Engineering Dynamics and Control II Design Project

Discrete-time models and control

Module 03 Linear Systems Theory: Necessary Background

Linear System Theory. Wonhee Kim Lecture 1. March 7, 2018

Problem Set 3: Solution Due on Mon. 7 th Oct. in class. Fall 2013

Automatique. A. Hably 1. Commande d un robot mobile. Automatique. A.Hably. Digital implementation

Control Systems I. Lecture 7: Feedback and the Root Locus method. Readings: Jacopo Tani. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Inverted Pendulum: State-Space Methods for Controller Design

DIGITAL CONTROL OF POWER CONVERTERS. 2 Digital controller design

Discrete-time Controllers

Continuous Dynamics Solving LTI state-space equations גרא וייס המחלקה למדעי המחשב אוניברסיטת בן-גוריון

OKLAHOMA STATE UNIVERSITY

Module 02 Control Systems Preliminaries, Intro to State Space

Improved Predictions from Measured Disturbances in Linear Model Predictive Control

Module 09 From s-domain to time-domain From ODEs, TFs to State-Space Modern Control

Lecture 11. Frequency Response in Discrete Time Control Systems

Pole placement control: state space and polynomial approaches Lecture 2

INTRODUCTION TO TRANSFER FUNCTIONS


Why do we need a model?

Tutorial 4 (Week 11): Matlab - Digital Control Systems

University of Toronto Department of Electrical and Computer Engineering ECE410F Control Systems Problem Set #3 Solutions = Q o = CA.

Linear Algebra. P R E R E Q U I S I T E S A S S E S S M E N T Ahmad F. Taha August 24, 2015

Laboratory 11 Control Systems Laboratory ECE3557. State Feedback Controller for Position Control of a Flexible Joint

EEE582 Homework Problems

6.241 Dynamic Systems and Control

Control System Design

Lecture: Sampling. Automatic Control 2. Sampling. Prof. Alberto Bemporad. University of Trento. Academic year

Discrete and continuous dynamic systems

Professor Fearing EE C128 / ME C134 Problem Set 10 Solution Fall 2010 Jansen Sheng and Wenjie Chen, UC Berkeley

2 Solving Ordinary Differential Equations Using MATLAB

Chapter 13 Digital Control

Control Systems Design

to have roots with negative real parts, the necessary and sufficient conditions are that:

Lecture 3 Matlab Simulink Minimum Phase, Maximum Phase and Linear Phase Systems

Richiami di Controlli Automatici

Identification Methods for Structural Systems

EE480.3 Digital Control Systems. Part 7. Controller Design I. - Pole Assignment Method

APPENDIX 1 MATLAB AND ANSYS PROGRAMS

Problem Weight Score Total 100

Integral action in state feedback control

Discretization of MIMO Systems with Nonuniform Input and Output Fractional Time Delays

Pole placement control: state space and polynomial approaches Lecture 1

ECE 3793 Matlab Project 3

State Feedback Controller for Position Control of a Flexible Link

EL2450: Hybrid and Embedded Control Systems: Homework 1

Solution to Homework Assignment 1

EET 3212 Control Systems. Control Systems Engineering, 6th Edition, Norman S. Nise December 2010, A. Goykadosh and M.

EE480.3 Digital Control Systems. Part 7. Controller Design I. - Pole Assignment Method - State Estimation

Final Exam January 31, Solutions

Chapter 7. Digital Control Systems

Computer Aided Control Design

1. Type your solutions. This homework is mainly a programming assignment.

Solution 7 August 2015 ECE301 Signals and Systems: Final Exam. Cover Sheet

Modelling and Control of Dynamic Systems. Stability of Linear Systems. Sven Laur University of Tartu

ECE504: Lecture 8. D. Richard Brown III. Worcester Polytechnic Institute. 28-Oct-2008

Module 02 CPS Background: Linear Systems Preliminaries

9. Introduction and Chapter Objectives

Perspective. ECE 3640 Lecture 11 State-Space Analysis. To learn about state-space analysis for continuous and discrete-time. Objective: systems

1 x(k +1)=(Φ LH) x(k) = T 1 x 2 (k) x1 (0) 1 T x 2(0) T x 1 (0) x 2 (0) x(1) = x(2) = x(3) =

Introduction to Modern Control MT 2016

State Feedback MAE 433 Spring 2012 Lab 7

Digital Control System

Problem Value

Module 07 Controllability and Controller Design of Dynamical LTI Systems

Control of Single-Input Single-Output Systems

Control Systems (ECE411) Lectures 7 & 8

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

Exercise 5: Digital Control

Introduction to Digital Control. Week Date Lecture Title

CONTROL OF DIGITAL SYSTEMS

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 1354 MODERN CONTROL SYSTEMS

Problem Weight Total 100

System Identification by Nuclear Norm Minimization

ECE 3793 Matlab Project 3 Solution

It is common to think and write in time domain. creating the mathematical description of the. Continuous systems- using Laplace or s-

Recursive, Infinite Impulse Response (IIR) Digital Filters:

Topics in Undergraduate Control Systems Design

Digital Control System Models. M. Sami Fadali Professor of Electrical Engineering University of Nevada

Chap 4. State-Space Solutions and

Advanced Control Theory

ESC794: Special Topics: Model Predictive Control

GEORGIA INSTITUTE OF TECHNOLOGY SCHOOL of ELECTRICAL & COMPUTER ENGINEERING FINAL EXAM. COURSE: ECE 3084A (Prof. Michaels)

Automatic Control Systems theory overview (discrete time systems)

Module 9: State Feedback Control Design Lecture Note 1

Bangladesh University of Engineering and Technology. EEE 402: Control System I Laboratory

MEM 355 Performance Enhancement of Dynamical Systems

Transcription:

Department of Electrical and Computer Engineering ECED46 Digital Control System Lab3 Digital State Space Model Objectives. To learn some MATLAB commands that deals with the discrete time systems.. To give the students the ability to program using MATLAB. 3. To transform between transfer function and state space model of the system. Introduction There are several different ways to describe a system of linear differential equations. The statespace representation is given by the equations: The state space approach to the analysis of dynamic systems can be extended to the discretetime case. The general state space representation of linear discrete time system is: Where x(k) is the state vector, u(k) is the input vector, and y(k) is the output vector. Hints: sstf: State space to transfer function conversion. [NUM,DEN] = sstf (A,B,C,D) tfss: Transfer function to state space conversion. [A,B,C,D] = tfss(num,den) cdm: Conversion of continuous LTI systems to discrete time. [Ad,Bd,Cd,Dd] = cdm(a,b,c,d,ts,'method') Converts the continuous time state space system (A,B,C,D) to discrete time system using ( 'zoh', 'foh', 'tustin', 'matched' ) methods. String specifying a discretization method:

'zoh' Zero order hold (default). Assumes the control inputs are piecewise constant over the sampling period Ts. 'foh' Triangle approximation (modified first order hold). Assumes the control inputs are piecewise linear over the sampling period Ts. 'impulse' Impulse invariant discretization. 'tustin' Bilinear (Tustin) method. 'matched' Zero pole matching method. dcm: Conversion of discrete LTI systems to continuous time. [Ac,Bc,Cc,Dc] = dcm(ad,bd,cd,dd,ts,'method') SS: Creates state space model or converts model to state space. sys=ss(a,b,c,d) Creates a state space object (sys) representing the continuous time state space model. dx/dt = Ax(t) + Bu(t) y(t) = Cx(t) + Du(t) sys = ss(ad,bd,cd,dd,ts) Creates a discrete time state space model with sampling time Ts (set Ts= if the sample time is undetermined). [Ad,Bd]=cd(A,B,.5) % (Discretize A and B with sampling period.5) [numd,dend]=sstf(ad,bd,cd,dd,) % (Compute the discrete transfer function G(z)) [z,p,k]=tfzp(numd,dend) % (Express G(z) in zero and pole form.) eig(a) %(create the poles of the system) Co=ctrb(A,b) %Compute the controllability matrix of the system rank(co) % Compute the rank of controllability matrix) Ob=obsv(A,c) % Compute the observability matrix) rank(ob) % Compute the rank of obsevablitiy matrix) zplane(z,p) % Plot a pole zero diagram from vectors of poles and zeros, p and z

) For the following continuous SISO control system shown in Figure below: Using MATLAB code and SIMULINK to: a) Draw the step response of the closed loop system using SIMULINK. b) Obtain the state space representation of the open loop system. c) Convert the continuous SISO system to digital state space model using "zoh" method and Ts=.5Sec. d) Repeat steps (c) using the methods of conversion: 'foh', 'tustin', 'matched'. ) Consider the transfer function of SISO control system Use MATLAB AND state variable equation to carry out discretization. a) Assume the sampling time is ( Ts=.5) computer the discrete functiongz. b) Express G(z) in zero and pole form c) Plot a pole zero diagram

3) A system is given by the following state space model: 4 64 56 4 D C B A a) Is the system state controllable? b) Is the system state observable? c) Determine the transfer function of the system. 4) In a continuous control system the state space representation of the plant is characterized by the following state matrices: D C B A a) Give the transfer function of the state space system b) Give the G(z) discrete transfer function of the process in zero pole form if zero order hold is applied and sampling rate Ts =.5 c) Plot a pole zero diagram from vectors of poles and zeros d) Give the poles of the system. Is the system stable? e) Is the system state controllable? Is the system state observable?

Guidelines for writing the Lab Report The report has to include: Title page Including: course number, lab title, student names, student IDs, Date the report was submitted. Abstract A summary of the contents of the lab report. Procedure of methods or approach to the design or/and conduct of the experiments Diagrams Include all SIMULINK blocks used in the lab if any. Plots All plots of system response should be included in your report, including title, labels with unit, legends, etc. Note that Diagrams and Plots must be computer generated. Handdrawn plots will not be accepted. All diagrams and plots must be labeled. The labels and annotations can be done by hand if appropriate but have to be clear. Code Include any code used in the lab. The code must be commented properly. It is good practice to put your code in separate m files. Discussion and answer to questions if any. Conclusion or any other relevant ideas.