Laurea Specialistica in Ingegneria. Ingegneria dell'automazione: Sistemi in Tempo Reale

Similar documents
Introduction to Real-Time Systems

Introduction to Real-time software systems Draft Edition

a) List HW and SW components of the device, and briefly discuss how those components are exploited in the embedded systems

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Winter Semester, Linear control systems design Part 1

An Overview of Linear Systems

UMLEmb: UML for Embedded Systems. II. Modeling in SysML. Eurecom

Introduction to Discrete-Time Control Systems

Notes S5 breakout session - Hybrid Automata Verification S5 Conference June 2015

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Loop Design. Chapter Introduction

Deadline scheduling: can your mobile device last longer?

EECS 473. Review etc.

Hardware-Software Co-Design Cosynthesis and Partitioning

CHAPTER 6 PHASE LOCKED LOOP ARCHITECTURE FOR ADC

Prototyping Unit for Modelbased Applications

Development of a MATLAB Data Acquisition and Control Toolbox for BASIC Stamp Microcontrollers

BandPass Sigma-Delta Modulator for wideband IF signals

Networked and Distributed Control Systems Lecture 1. Tamas Keviczky and Nathan van de Wouw

EECS 473. Review etc.

Time Triggered Protocol (TTP/C): A Safety-Critical System Protocol

PHASELOCK TECHNIQUES INTERSCIENCE. Third Edition. FLOYD M. GARDNER Consulting Engineer Palo Alto, California A JOHN WILEY & SONS, INC.

Outline. Digital Control. Lecture 3

Graduate Programs in Advanced Systems Engineering

Lecture Schedule: Week Date Lecture Title

System on a Chip. Prof. Dr. Michael Kraft

Frequency Response Analysis and Design Tutorial

ENGG4420 END OF CHAPTER 1 QUESTIONS AND PROBLEMS

Phase interpolation technique based on high-speed SERDES chip CDR Meidong Lin, Zhiping Wen, Lei Chen, Xuewu Li

(1) Identify individual entries in a Control Loop Diagram. (2) Sketch Bode Plots by hand (when we could have used a computer

FIBER OPTICS. Prof. R.K. Shevgaonkar. Department of Electrical Engineering. Indian Institute of Technology, Bombay. Lecture: 24. Optical Receivers-

Distributed Virtual Environments!

Lecture 8 ECEN 4517/5517

Policy-Based RTL Design

16.30 Learning Objectives and Practice Problems - - Lectures 16 through 20

Chapter 10 Digital PID

Real-Time Systems Hermann Härtig Introduction

Grundlagen Microcontroller Analog I/O. Günther Gridling Bettina Weiss

Reducing Negative Effects of Jitter in Digital Control Systems Through a Jitter Compensating PID Controller

The CPAL programming language. Lean Model-Driven Development through Model-Interpretation

Comparison of Simulation-Based Dynamic Traffic Assignment Approaches for Planning and Operations Management

Energy Efficient Soft Real-Time Computing through Cross-Layer Predictive Control

INF4420 Switched capacitor circuits Outline

Chapter # 1: Introduction

CL Digital Control Kannan M. Moudgalya


CSE 466 Software for Embedded Systems. What is an embedded system?

CHAPTER 4 IMPLEMENTATION OF ADALINE IN MATLAB

FPGA Based Hardware Efficient Digital Decimation Filter for - ADC

Gechstudentszone.wordpress.com

Signals, Instruments, and Systems W7. Embedded Systems General Concepts and

Lehrstuhl für Technische Elektronik. Mixed-Signal IC Design LAB

System-Level Simulation for Continuous-Time Delta-Sigma Modulator in MATLAB SIMULINK

Data Conversion Techniques (DAT115)

A Compact, Low-Power Low- Jitter Digital PLL. Amr Fahim Qualcomm, Inc.

INF4420. Switched capacitor circuits. Spring Jørgen Andreas Michaelsen

UAV: Design to Flight Report

This chapter discusses the design issues related to the CDR architectures. The

Combining Multipath and Single-Path Time-Interleaved Delta-Sigma Modulators Ahmed Gharbiya and David A. Johns

Closed Loop Magnetic Levitation Control of a Rotary Inductrack System. Senior Project Proposal. Students: Austin Collins Corey West

Ideas beyond Number. Activity worksheets

Introduction (concepts and definitions)

Teaching Embedded Systems to Berkeley Undergraduates

CHAPTER 5 CONTROL SYSTEM DESIGN FOR UPFC

Chapter -3 ANALYSIS OF HVDC SYSTEM MODEL. Basically the HVDC transmission consists in the basic case of two

Non-linear Control. Part III. Chapter 8

Embedded Robust Control of Self-balancing Two-wheeled Robot

*Engineering and Industrial Services, TATA Consultancy Services Limited **Professor Emeritus, IIT Bombay

Subject-wise Tests Tests will be activated at 06:00 pm on scheduled day

FUNDAMENTALS OF ANALOG TO DIGITAL CONVERTERS: PART I.1

Modeling a Hybrid Electric Vehicle and Controller to Optimize System Performance

15 th Asia Pacific Conference for Non-Destructive Testing (APCNDT2017), Singapore.

DATA CONVERSION AND LAB (17.368) Fall Class # 07. October 16, 2008

PRODUCT DESIGN and DEVELOPMENT

Lab 4 Digital Scope and Spectrum Analyzer

The Disappearing Computer. Information Document, IST Call for proposals, February 2000.

DSP based Digital Control Design for DC-DC Switch Mode Power Converter. Shamim Choudhury Texas Instruments Inc.

ECE317 : Feedback and Control

6.976 High Speed Communication Circuits and Systems Lecture 17 Advanced Frequency Synthesizers

Teleoperation and System Health Monitoring Mo-Yuen Chow, Ph.D.

Data Conversion and Lab (17.368) Fall Lecture Outline

EE 280 Introduction to Digital Logic Design

ME 487 Mechatronics. Office: JH 515, Tel.: (505)

Andrea Zanchettin Automatic Control 1 AUTOMATIC CONTROL. Andrea M. Zanchettin, PhD Spring Semester, Linear control systems design

Hot Swap Controller Enables Standard Power Supplies to Share Load

LabVIEW and MatLab. E80 Teaching Team. February 5, 2008

Automotive Control Solution for Brushless DC Motors

Comparison of Digital Control Loops Analytical Models, Laboratory Measurements, and Simulation Results

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

DESIGN TECHNOLOGY FOR THE TRILLION-DEVICE FUTURE

Resource-Efficient Vibration Data Collection in Cyber-Physical Systems

EE 461 Experiment #1 Digital Control of DC Servomotor

Elements of Power Electronics PART III: Digital control

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

Fundamentals of Industrial Control

Design of a Simulink-Based Control Workstation for Mobile Wheeled Vehicles with Variable-Velocity Differential Motor Drives

Dr Ian R. Manchester

4F3 - Predictive Control

Unit level 5 Credit value 15. Introduction. Learning Outcomes

Motor Control. Suppose we wish to use a microprocessor to control a motor - (or to control the load attached to the motor!) Power supply.

Closing the loop around Sensor Networks

Transcription:

Laurea Specialistica in Ingegneria dell'automazione Sistemi in Tempo Reale email: palopoli@sssup.it Tel. 050 883444 Introduzione

Lecture schedule Introduction Selected topics on discrete time and sampled data systems Discrete Equivalents Design Quantisation effects Sampling rate selection and multirate systems FSM Hybrid systems

Outline Generalities The development flow An introductory example

Outline Generalities The development flow An introductory example

A real time system Instrumentation Operator Real time controller Plant A real time controller is a computer based system, which produces results to inputs complying with some temporal constraints

Some useful definitions Event triggered vs Time triggered Event triggered: system's reactions are elicited by the occurrence of certain events in the environment Time triggered: interactions with the environment take place upon well defined instants

Some useful definitions... I Single node vs distributed 1 CPU Platform Plant Single node: computation is concentrated in one node, which has direct access to sensors and actuators Distributed: computation is distributed across different nodes which communicate by means of a bus

Some useful definitions... II Hard real time vs Soft real time Hard real time: computation must terminate within certain deadlines Soft real time: deadlines can occasionally be missed but the anomaly has to be kept in check, lest the Quality of Service be severely degraded

Real time systems: what's in a name? Event triggered Software Time triggered Software Computing Platform Embedded Software Operating System Board Support Packages Embedded Hardware Environment A an embedded controller is a complex ensemble of software and hardware components: Hardware devices Software support components Software applications Event triggered and Time triggered semantics are often intertwined

Why should a control engineer care about real time software? instantaneous computations and communication infinite bandwidth links and nodes ideal sampling infinite precision The polluted delta of system engineer The pure springs of control engineer: communication and computation take a (random) time links and nodes have finite bandwidth there is sampling and actuation jitter information is quantised Performance can be severely degraded

Design Design: act of defining a system or a subsystem Usually design amounts to: defining one or more models of the system refining the models until a desired functionality is obtained Informal specification and design always lead to problems

Example Where is the problem in the following specification? The system has two inputs, reset and next, and three outputs: a, b and c. Whenever reset appears, a is emitted. After this, the first next signal produces b and the second next signal produces c. What if reset and next are present together?

A formal model for design Functional Specification relations between inputs outputs, inputs and internal state describe the system's behaviour Properties a set of relations between inputs, outputs and states that should always hold true assertions on the system's behaviour Performance indexes Cost, reliability, speed, size... Constraints inequalities on performance indexes

Our goal To devise design techniques and tools that preserve properties If a property has been proved correct at a certain step, it has to be preserved in the next phases

Outline Generalities The development flow An introductory example

A meet in the middle approach Plant Model Control Design Palopoli Lipari Tasks F(s) (RTOS) Discrete time approximation SW Arch. definition F(z) Sensors Actuators Code generation F.c, F.h Computer Board Mapping HW Arch. definition

First step: control law design Plant Model Control Design F(s) Control law design: analytical and semi analytical procedures Validation by Matlab/Simulink tools

Is that all? Plant Model Control Design F1(s) F2(s) F3(s) Not really! We can have multiple controllers to choose between according to the occurrence of certain events Combination of FSM + continuous time controller: HYBRID systems

Second Step: a discrete time model for the controller Discrete time approximation F(s) F(z) Problems Effects of sampling Choice of the sampling period Numerical problems Matlab control toolbox is a nice friend...

Third step: generating C code F(z) Code Generation This is easy, ain't it? No! Quantisation (finite precision) Computation delays! F.h F.c Done by hand or by CAD tools RTW, Embedded Coder, Targetlink

Fourth step: mapping F.c, F.h Mapping Tasks Critical passage Scheduling delays and jitter Enforcement of real time constraints

Architecture selection Tasks RTOS Device Drivers Hardware Further delays Quantisation effects

Outline Generalities The development flow An introductory example

Example + e u F(s) G(s) y 1 G s = s s 1 Recall definitions for 2nd order systems: 1 2 s 2 n s 2 n Natural frequency Damping

Bode plot Phase Margin =51

Control design We use a gain to increase the badwidth A lead compensantor around the cross over frequency helps us improve the phase margin s 2 F s =70 s 10

Bode plots 70 G(s) F(s)G(s) G(s)

Step responses (70 G)/(70 G+1) (F G)/(F G+1) G/(G+1)

Let's go to implementation + e Diff. Equation u D/A and Hold G(s) y Clock A/D U s s 2 F s = =70 E s s 10 u 10 u=70 e 140 e uk 1 u k ek 1 ek FW Euler Approximation : u, e T T u k 1 = 1 10 T uk 70 ek 1 140T 70 ek

Step Responses Analog controller f=1/t=20hz f=1/t=40hz Sampling decreases damping

Why? The transfer function of a ZoH 1 e st Z s = s 1 st / 2 T st e Z s 1 st / 2 1 st / 2 The ZoH results into a phase decrease of T/2 The Phase Margin (PM) is reduced and so is the damping f = PM/100

Conclusions Sampling introduces an inherent delays There are problems for stability and performance (damping is reduced) We will present techniques to analyse and reduce these problems that will be presented through the course