CMPE-443 Real-Time System Design (Spring 2009) 1 RTS Introduction Terminology Real-Time System Design Issues Example RTS Common Misconceptions Brief History.

Slides:



Advertisements
Similar presentations
Discrete Controller Design
Advertisements

PID Controller Tuning for Desired Closed-Loop Response for SI/SO System 指導老師 : 曾慶耀 學生 : 詹佳翔.
Chapter 4: Basic Properties of Feedback
Supervisory Control of Hybrid Systems Written by X. D. Koutsoukos et al. Presented by Wu, Jian 04/16/2002.
Digital Control Systems INTRODUCTION. Introduction What is a control system? Objective: To make the system OUTPUT and the desired REFERENCE as close as.
The Illinois Society of Electroneurodiagnostic Technologists (ISET) Fall Meeting: Electronics Crash Course for Technologists Saturday, November 9, 2013.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Digital/Analog conversion How do we convert analog signals to digital data and vice versa?
Shuvra Das University of Detroit Mercy
Real-Time Scheduling CIS700 Insup Lee October 3, 2005 CIS 700.
Introduction to Data Conversion
President UniversityErwin SitompulSMI 7/1 Dr.-Ing. Erwin Sitompul President University Lecture 7 System Modeling and Identification
Basic Real Time Concepts Systems Concepts Real-Time Definitions Events and Determinism CPU Utilization Real-Time System Design Issues Example Real-Time.
Feedback Controllers Chapter 8
Lecture161 Instrumentation Prof. Phillips March 14, 2003.
Data Acquisition. Data Acquisition System Analog Signal Signal Conditioner ADC Digital Processing Communication.
Chapter 7 PID Control.
Proportional/Integral/Derivative Control
Computer Control: An Overview Wittenmark, Åström, Årzén Computer controlled Systems The sampling process Approximation of continuous time controllers Aliasing.
Echivalarea sistemelor analogice cu sisteme digitale Prof.dr.ing. Ioan NAFORNITA.
The sampling of continuous-time signals is an important topic It is required by many important technologies such as: Digital Communication Systems ( Wireless.
Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK Astronomical Data Analysis I 11 lectures, beginning autumn 2008.
Discrete-Time and System (A Review)
1 Signals & Systems Spring 2009 Week 3 Instructor: Mariam Shafqat UET Taxila.
Side 1 af Digital Control Systems Sampling, Z-transform, transfer function Reg1_slide4 Chap ,4,(5) J.Nybo Rev.:
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Book Adaptive control -astrom and witten mark
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
1. Introduction 1.1 Background 1.2 Real-time applications 1.3 Misconceptions 1.4 Issues in real-time computing 1.5 Structure of a real-time system.
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
Data Acquisition Systems
PHY 202 (Blum)1 Analog-to-Digital Converter and Multi-vibrators.
Ch. 9 Application to Control. 9.1 Introduction to Control Consider a causal linear time-invariant system with input x(t) and output y(t). Y(s) = Gp(s)X(s)
Scheduling policies for real- time embedded systems.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Analog-To-Digital convertor Sampler Quantization Coding.
Fourier Analysis of Discrete Time Signals
Design Realization lecture 22
Lab 3 Real-Time Control of a Hot Air Plant using RTOS µC/OSII Due Date: Week of Nov. 2 nd, 2010.
Chapter 8 Feedback Controllers 1. On-off Controllers Simple Cheap Used In residential heating and domestic refrigerators Limited use in process control.
Digital Control CSE 421.
Features of PID Controllers
Feedback Controllers Chapter 8
Discrete Controller Design
Signals and Systems Analysis NET 351 Instructor: Dr. Amer El-Khairy د. عامر الخيري.
Embedded Control Systems Dr. Bonnie Heck School of ECE Georgia Tech.
Meghe Group of Institutions
Topics 1 Specific topics to be covered are: Discrete-time signals Z-transforms Sampling and reconstruction Aliasing and anti-aliasing filters Sampled-data.
Lecture 9: PID Controller.
PAM Modulation Lab#3. Introduction An analog signal is characterized by the fact that its amplitude can take any value over a continuous range. On the.
Learning from the Past, Looking to the Future James R. (Jim) Beaty, PhD - NASA Langley Research Center Vehicle Analysis Branch, Systems Analysis & Concepts.
ΨΗΦΙΑΚΟΣ ΕΛΕΓΧΟΣ (22Δ802) Β΄ ΕΞΑΜΗΝΟ Καθηγητής Πέτρος Π. Γρουμπός  Ώρες Γραφείου: Τετάρτη Πέμπτη Παρασκευή 11:00- 12:00 Γραφείο: 1.
Lecture Notes / PPT UNIT III
Control engineering ( ) Time response of first order system PREPARED BY: Patel Ravindra.
Fourier Analysis Patrice Koehl Department of Biological Sciences National University of Singapore
MECH 373 Instrumentation and Measurements
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
Digital Control CSE 421.
Feedback Controllers Chapter 8
Chapter 4 Dynamical Behavior of Processes Homework 6 Construct an s-Function model of the interacting tank-in-series system and compare its simulation.
OSE801 Engineering System Identification Spring 2010
Echivalarea sistemelor analogice cu sisteme digitale
Digital Control Systems
Signal conditioning.
Lesson 1: Overview of Sequential Control and Data Acquisition
لجنة الهندسة الكهربائية
The sampling of continuous-time signals is an important topic
Features of PID Controllers
數位控制理論簡介.
Feedback Controllers Chapter 8
Presentation transcript:

CMPE-443 Real-Time System Design (Spring 2009) 1 RTS Introduction Terminology Real-Time System Design Issues Example RTS Common Misconceptions Brief History

CMPE-443 Real-Time System Design (Spring 2009) 2 Terminology

CMPE-443 Real-Time System Design (Spring 2009) 3 System

CMPE-443 Real-Time System Design (Spring 2009) 4 Real-Time Definitions Deadlines come from the underlying physical phenomena of the system under control. For example, in animated displays, images must be updated at approximately 30 frames/second to provide continuous motion

CMPE-443 Real-Time System Design (Spring 2009) 5 Events and Determinism

CMPE-443 Real-Time System Design (Spring 2009) 6 Determinism

CMPE-443 Real-Time System Design (Spring 2009) 7 CPU Utilization

CMPE-443 Real-Time System Design (Spring 2009) 8 Real-Time System Design Issues

CMPE-443 Real-Time System Design (Spring 2009) 9 Example Real-Time Systems

Single-input single-output PID controller PID (Proportional, Integral and Derivative). The analog sensor reading y(t) gives the measured state of the plant at time t. Let e(t)=r(t)-y(t) denote the difference between the desired state r(t) and the measured state y(t) at time t. CMPE-443 Real-Time System Design (Spring 2009) 10

PID Controller The output u(t) of the controller depends on three terms: a term that is proportional to e(t), to the integral of e(t) and to the derivative of e(t). In the sampled data version, the inputs to the control-law computation are the sampled values y k and r k, k=0,1,2,.., which analog-to-digital converters produce by sampling and digitizing y(t) and r(t) periodically every T units of time. e k =r k -y k is the k-th sample value of e(t). There are many ways to discretize the derivative and integral of e(t). For example, we can approximate derivative of e(t) for (k-1)T<=t<=kT by (e k -e k-1 )/T and use the right rectangular rule of numerical integration to transform a continuous integral into a discrete form: CMPE-443 Real-Time System Design (Spring 2009) 11

PID Controller a,b,c are some constants; they are chosen at the design time. During the k-th sampling period, the RTS computes the output of the controller according to this expression. Different discretization methods may lead to different expressions for u k, but they all are simple to compute (10-20 machine instructions). CMPE-443 Real-Time System Design (Spring 2009) 12

Controller algorithm Set timer to interrupt periodically with period T; At each timer interrupt, do Do analog-to-digital conversion to get y Compute control output u Make digital-to-analog conversion and output u End do CMPE-443 Real-Time System Design (Spring 2009) 13

Time sampling The length T of time between any two consecutive instants at which y(t) and r(t) are sampled is called the sampling period. T is a key design choice. The behavior of the resultant digital controller critically depends on this parameter. Ideally, we want the sampled data version behave like the analog version. This can be done by making T small. However, this will lead to more frequent control-law computation and higher processor-time demand. The operator may issue a command at any time, say at t. The consequent change in the reference input is read and reacted to by the digital controller at the next sampling instant. This instant can be as late as t+T. Thus, sampling introduces a delay in a system response. The operator will feel the system sluggish when the delay exceeds a tenth of a second. Therefore, the sampling period should be under this limit. The second factor is the dynamic behavior of the plant (considered earlier). It is recommended to use sampling frequency twice as highest possible frequency occurring in the system to be able to reproduce such signals (Nyquist-Kotelnikov theorem). CMPE-443 Real-Time System Design (Spring 2009) 14

CMPE-443 Real-Time System Design (Spring 2009) 15 Common Misconceptions

CMPE-443 Real-Time System Design (Spring 2009) 16 Brief History