Lab 3 Real-Time Control of a Hot Air Plant using RTOS µC/OSII Due Date: Week of Nov. 2 nd, 2010.

Slides:



Advertisements
Similar presentations
Short introduction to the use of PEARL General properties First tier assessments Higher tier assessments Before looking at first and higher tier assessments,
Advertisements

Real Time Scheduling.
Priority INHERITANCE PROTOCOLS
1 Advanced Embedded Systems, BAE 5030 Presentation Topic: Rate Monotonic Analysis By Aswin Ramachandran
COSC 513 Operating Systems Yue Dou
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Access Control Protocols.
CMPE-443 Real-Time System Design (Spring 2009) 1 RTS Introduction Terminology Real-Time System Design Issues Example RTS Common Misconceptions Brief History.
Tasks Periodic The period is the amount of time between each iteration of a regularly repeated task Time driven The task is automatically activated by.
MotoHawk Training Model-Based Design of Embedded Systems.
P. Albertos* & A. Crespo + Universidad Politécnica de Valencia * Dept. of Systems Engineering and Control, + Dept. of Computer Engineering POB E
ECEN 4623/5623 RT Embedded Systems Mid-Term Review Lecture.
Project 2 – solution code
Multiprocessor and Real-Time Scheduling Chapter 10.
Design Realization lecture 23
Real-Time Kernels and Operating Systems. Operating System: Software that coordinates multiple tasks in processor, including peripheral interfacing Types.
By Group: Ghassan Abdo Rayyashi Anas to’meh Supervised by Dr. Lo’ai Tawalbeh.
Spring 2002Real-Time Systems (Shin) Rate Monotonic Analysis Assumptions – A1. No nonpreemptible parts in a task, and negligible preemption cost –
Real-Time Operating System Chapter – 8 Embedded System: An integrated approach.
Real-Time Operating Systems Suzanne Rivoire November 20, 2002
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 15 Slide 1 Real-time Systems 1.
Proportional/Integral/Derivative Control
Joe Clifton Computer Science and Software Engineering University of Wisconsin – Platteville.
Real-Time Software Design Yonsei University 2 nd Semester, 2014 Sanghyun Park.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
OS Implementation On SOPC Midterm Presentation Performed by: Ariel Morali Nadav Malki Supervised by: Ina Rivkin.
Thanks to Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 1: Introduction n What is an Operating System? n Mainframe Systems.
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.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
1 of 14 1/15 Synthesis-driven Derivation of Process Graphs from Functional Blocks for Time-Triggered Embedded Systems Master thesis Student: Ghennadii.
Scheduling policies for real- time embedded systems.
Real-Time Operating Systems for Embedded Computing 李姿宜 R ,06,10.
Multiprocessor and Real-Time Scheduling Chapter 10.
Chapter 101 Multiprocessor and Real- Time Scheduling Chapter 10.
Towards the Design of Heterogeneous Real-Time Multicore System m Yumiko Kimezawa February 1, 20131MT2012.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
Real Time Scheduling Telvis Calhoun CSc Outline Introduction Real-Time Scheduling Overview Tasks, Jobs and Schedules Rate/Deadline Monotonic Deferrable.
CS Spring 2011 CS 414 – Multimedia Systems Design Lecture 31 – Multimedia OS (Part 1) Klara Nahrstedt Spring 2011.
Real-Time Scheduling CS4730 Fall 2010 Dr. José M. Garrido Department of Computer Science and Information Systems Kennesaw State University.
REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
ENGG*4420 Real Time System Design Labs Introduction
Uniprocessor Scheduling
Aws Abu-KhudhairENGG*44201 ENGG*4420 Real Time System Design Lab 4: Multi-core Real-Time Suspension Controller using LabVIEW RTOS TA: Aws Abu-Khudhair.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems RMS and EDF Schedulers.
Group no.2 Presented to : Eng.Ahmed Hassan Sunday, March 04,2012.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
Implementing PID on a microcontroller
Special Class on Real-Time Systems
1 Real-Time Scheduling. 2Today Operating System task scheduling –Traditional (non-real-time) scheduling –Real-time scheduling.
CSCI1600: Embedded and Real Time Software Lecture 24: Real Time Scheduling II Steven Reiss, Fall 2015.
Real time scheduling G.Anuradha Ref:- Stallings. Real time computing Correctness of the system depends not only on the logical result of computation,
Introduction to Embedded Systems Rabie A. Ramadan 5.
A presentation for Brian Evans’ Embedded Software Class By Nate Forman Liaison Technology Inc. 3/30/2000 For Real-Time Scheduling.
CSCI1600: Embedded and Real Time Software Lecture 23: Real Time Scheduling I Steven Reiss, Fall 2015.
Chapter - Continuous Control
Lecture 2, CS52701 The Real Time Computing Environment I CS 5270 Lecture 2.
CS333 Intro to Operating Systems Jonathan Walpole.
For a good summary, visit:
Unit - I Real Time Operating System. Content : Operating System Concepts Real-Time Tasks Real-Time Systems Types of Real-Time Tasks Real-Time Operating.
Review etc.. Want to get out of here by 10am Go see 373 projects.
SOC Consortium Course Material SoC Design Laboratory Lab 8 Real-time OS - 1 Speaker: Yung-Chih Chen Advisor: Prof. Chun-Yao Wang November 17, 2003 Department.
Real-Time Operating Systems RTOS For Embedded systems.
REAL-TIME OPERATING SYSTEMS
Lecture 12: Real-Time Scheduling
Advanced Operating Systems CIS 720
EEE 6494 Embedded Systems Design
Real-time Software Design
CSCI1600: Embedded and Real Time Software
EE 472 – Embedded Systems Dr. Shwetak Patel.
CSCI1600: Embedded and Real Time Software
Processes and operating systems
Presentation transcript:

Lab 3 Real-Time Control of a Hot Air Plant using RTOS µC/OSII Due Date: Week of Nov. 2 nd, 2010

Today's Activities  Lab 3 Presentation  Special topic presentation Rate Monotonic Scheduling (RMS)  Lab 2 demos.

Lab 1 Development Environment  LabVIEW 2009 software  Nios II IDE  Altera Nios II Embedded Evaluation Kit

Simple Hot Air Blower PT 326 Process Trainer

Lab 1 Architecture UART WriteSerial Read UART ReadSerial Write LabVIEWAltera Nios II Plant Model Plant Comm. PID Controller Operator Input Feedback Signal Control Signal Input Voltage Measured Voltage

Plant/Controller Features

Lab Requirements  Plant interface Input from plant Output to plant  PID control system  Operator Interface LCD display Operator input

Plant Interface  Input from plant Plant output voltage (from LabVIEW)  Output to plant Heater control (manipulated variable)  Communication implemented using serial communication with termination character.

Operator Interface - Inputs  Input from LCD touch screen ON/OFF signal Auto/Manual mode control Setpoint voltage (Auto Mode) Voltage input (Manual Mode)

Operator Interface - Outputs  Output to LCD Voltage/Time graph (Lab 1) + voltage setpoint Current sampling time Voltage reference Voltage output (output to plant) Proportional gain (Kc) Integral time (Ti) Derivative Time (Td) Current time (HH:MM:SS)

Operator Display

PID Control System  m(t) = manipulated variable (output to plant)  r(t) = plant setpoint  c(t) = controlled variable (voltage from LabVIEW)  e(t) = plant error = r(t) – c(t)  K p = Proportional gain  T i = Integral time  T d = Derivative time

PID Control Discrete Time Implementation  Where s(n) is the sum of errors  T s = sampling time = ∆t

Implementation Requirements  LabVIEW model Two tasks: Plant Model task, communication task. Data communication between tasks using queues. Serial communication using termination character  Altera implementation Must employ at least three tasks PID controller must have a dedicated task Semaphores used for data synchronization  Note that ALL timing requirements discussed in the lab manual MUST be implemented.  Task priorities MUST be discussed and justified in your report  Time delays on time critical tasks MUST be discussed and justified in your report

Real-Time System Implementation – pg of lab manual

Real-Time Constraints  Control system must operate with a sampling rate of [ ] ms  ON/OFF buttons Sampled every 2-5 seconds  Auto/Manual controls Sampled every 2-5 seconds  Vinput and Vref buttons Sampled every 1-2 seconds  Clock/Time Must execute every 1 second  Operator display must be updated every 5 seconds

Task Priorities  uC/OS II can manage up to 63 tasks  OS has it’s own system tasks It is recommended that you DON’T use priorities 0-5 (Highest priority = 6)  Each task must be assigned a unique priority level.  The lower the priority number the higher the priority of the task  uC/OS II will always execute the highest priority task ready to run.

Assigning Task Priorities  Assigning task priorities in complex real- time systems is a difficult job Noncritical tasks should obviously be given low priorities  Most real-time systems have a combination of soft and hard requirements Soft RT systems: tasks are performed as quickly as possible but they don’t have to finish by specific times Hard RT systems: tasks must be performed correctly within the required time

Rate Monotonic Scheduling (RMS)  Priorities are assigned based on how often the tasks execute Tasks with the highest rate of execution are given the highest priorities Task Execution Rate (HZ) High Priority Low

RMS Theorem– cont…  RMS makes a number of assumptions All tasks are periodic (occur at regular intervals) The CPU must always execute the highest priority task that is ready to run  Given a set of n tasks that are assigned RMS priorities, the basic RMS theorem states that all task hard-real time deadlines are always met if the following inequality holds

 Where E i = maximum execution time of task i T i = execution period of task i E i /T i = the fraction of CPU time required to execute task i  Note: CPU use of all time-critical tasks should be less than 70% Cont… Number of Tasks Inf0.693

Deadlines and Marking  Lab 3 is worth 12%.  6% for the report, and 6% for the demo  The Demo is due Nov. 2 nd, 2010 in the Lab.  The Report is due Nov. 2 nd, 2010 in the Lab.  A signed group evaluation sheet must be submitted with the lab report