SlideShare a Scribd company logo
REAL-TIME SOFTWARE
SYSTEMS DEVELOPMENT
Instructor: Dr. Hany H. Ammar
Dept. of Computer Science and
Electrical Engineering, WVU
Introduction to Real-Time
Systems
What is a Real-Time System?
Is defined as a system in which the time where the outputs are
produced is significant (within specified bounds or
deadlines)
.
RTS
Sensor Data
Commands
Actuator Outputs
Displays
Correctness depends on output values and the time at which
the inputs are processed and the outputs are produced
Introduction to Real-Time
Systems
 Real-Time Systems can be Hard Real-Time systems or Soft
Real-Time systems
 In Hard Real-Time systems outputs must be produced
within the specified deadlines or a system failure will
occur (Examples include: Flight Control systems, Air
Traffic Control systems, Robots, Automotive Control
Systems,..)
 In Soft Real-Time Systems, deadlines can be occasionally
missed ( Examples include: communications systems using
time out protocols, ATMs, Air line Reservation Systems,
Process Control Systems designed to tolerate delays)
Engineering Applications of
Real-Time Systems
1. Process Control and Manufacturing Systems
Controller
Plant
Sensor
Data
Control Signals
Raw Material Finished Products
Operator
Commands Displays
Engineering Applications of
Real-Time Systems
2. Integrated Communication, Command, and Control
(IC3) Systems
Comm.
Command
Control
Data
From
Sensing devices/
Control signals to
Actuating devices,
and data to displays
Filtered data/
Controls info
Decisions
Sensor Data
Control
Signals
Characteristics of Real-Time
Systems
• Real-Time systems are often embedded systems (i.e., contained
within a larger system to provide monitoring, control, and
computation functions)
• They often require concurrent processing of multiple inputs.
Concurrent tasks must be created and managed in order to
fulfill the functions of the system.
• Task scheduling is one of the important aspects of managing
concurrency. Since tasks will compete for the same resources
(such as the Processor)
Embedded/Concurrent Systems
Plant
Sensor HW
Sensor HW
Actuator control
Actuator Control
Sensor
IO
Drivers
Actuator
IO
Drivers
Micro-
Controller
Data/Control BUS
Characteristics of Real-Time
Systems : Task Scheduling
0 10 20 35
A B
Example: two periodic tasks A and B, Ap=10, Ad=20, Bp=25,
Bd=50
Fixed
Priority
Scheduling
B > A
A will miss its deadline
in the second execution
A B A B B A
0 10 20 30 40 45 55
Nearest
deadline
scheduling
Ad Bd
Ad
Ad
Characteristics of Real-Time
Systems
 Real-Time systems need to respond to synchronous events
( i.e., periodic events) as well as asynchronous events
(those that could occur at any time)
 Real-Time systems often require high Reliability and
Safety requirements.
 Real-Time systems often have special environmental,
interfacing, and fault-tolerance requirements.
 Environmental factors such as temperature (e.g., in space
exploration applications systems must operate in a
temperature range of -55 to 200 degree centigrade), shock
and vibration, size limits, weight limits, usually have an
impact on the system hardware and software requirements
Characteristics of Real-Time
Systems
 Fault-tolerant requirements and Exception handling have
special consideration due to the high reliability and critical
timing requirements. Fault-tolerance requirements greatly
impact and usually complicate the design of software and
hardware components of the system.
 Interfacing requirements. The devices which are typically
interfaced to a RTS are many (Examples include sensors,
actuators, switches, displays, communication links, D/A
and A/D converters, and pulse-width-modulated
controllers)
A CASE STUDY
 The functional requirements of an Aircraft
Monitoring System (AMS)
1. The system shall perform various aircraft monitoring and
recording functions.
2. The aircraft has one engine. the engine is fitted with
pressure and temperature sensors.
3. The sensors are polled by the system at regular 1 second
intervals.
4. All sensors readings shall be sent to dials, one for each
sensor.
5. All sensor readings shall be tested to be within a safe
working range.
A CASE STUDY
6. When three consecutive readings from a sensor were found
to be out of range, a lamp corresponding to the sensor is
changed from green to red.
7. When a sensor fails to respond to a poll sequence, a time
out signal is generated.
8. A timed out sensor shall be treated as if it had supplied an
out of range reading
9. Three consecutive time outs shall cause a warning lamp to
switch from green to red.
10. A number of smoke detectors are installed in the aircraft.
When smoke is first detected, an interrupt is generated by
the smoke detectors.
A CASE STUDY
11. When smoke is subsequently no longer detected, an
interrupt is generated by the smoke detectors.
12 The system shall switch a smoke warning lamp from green
to red when a smoke detection interrupt occurs.
13. A sensor is installed in the fuel tank of the aircraft to
provide information on the quantity of fuel remaining.
14. The fuel sensor shall be polled and read by the system at 1
second intervals.
15. The fuel sensor reading shall be passed to a dial.
16. A warning lamp shall be switched from green to red when
a 10% or less fuel reading is obtained from the fuel sensor.
A CASE STUDY
17. The system shall have the capability to support a CRT
display and a keyboard
18. Measures calculated from the sensor data (such as rate of
change of pressure, rate of fuel consumption, etc.) can be
requested by the pilot using the keyboard.
19. These measures shall be displayed on the CRT display.
20. Out of limit readings from the sensors or smoke detectors
which cause the warning red light to be set shall cause a
warning message to be displayed on the CRT.
21 The warnings message shall be of a higher precedence
over the measures requested to be displayed By the pilot.
A CASE STUDY
22. The warning messages persist until acknowledged by the
pilot via the keyboard.
23. When all warning messages have been acknowledged, the
last request shall be displayed.
24. The key board shall be used by the pilot to request the
system to simulate the smoke detection.
25. All smoke or no smoke interrupts shall be recorded on a
magnetic medium.
26 All readings recorded on the magnetic medium shall be
tagged with time at which they were received.

More Related Content

Similar to 5107368.ppt

CONCEPT OF SCADA System EMERSON EDUARDO RODRIGUES
CONCEPT OF SCADA System  EMERSON EDUARDO RODRIGUESCONCEPT OF SCADA System  EMERSON EDUARDO RODRIGUES
CONCEPT OF SCADA System EMERSON EDUARDO RODRIGUESEMERSON EDUARDO RODRIGUES
 
MECHATRONICS Part-2.pdf
MECHATRONICS Part-2.pdfMECHATRONICS Part-2.pdf
MECHATRONICS Part-2.pdfabelmeketa
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital ControlIOSR Journals
 
Introduction of wide area mesurement syatem
Introduction of wide area mesurement syatemIntroduction of wide area mesurement syatem
Introduction of wide area mesurement syatemPanditNitesh
 
QAC020X355A Designing And Developing Products For The Internet Of Everything....
QAC020X355A Designing And Developing Products For The Internet Of Everything....QAC020X355A Designing And Developing Products For The Internet Of Everything....
QAC020X355A Designing And Developing Products For The Internet Of Everything....write5
 
Prototype of multifunctional transmitter with Rejection of disturbances
Prototype of multifunctional transmitter with Rejection of disturbancesPrototype of multifunctional transmitter with Rejection of disturbances
Prototype of multifunctional transmitter with Rejection of disturbancesTELKOMNIKA JOURNAL
 
Overheat and smoke detection with gsm
Overheat and smoke detection with gsmOverheat and smoke detection with gsm
Overheat and smoke detection with gsmVishal Kumar
 
Phasor data concentrator
Phasor data concentratorPhasor data concentrator
Phasor data concentratorPanditNitesh
 
Wireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 pptWireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 pptVarun B P
 
RTOS APPLICATIONS
RTOS  APPLICATIONSRTOS  APPLICATIONS
RTOS APPLICATIONSDr.YNM
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)Ashok Kumar Barla
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)Ashok Kumar Barla
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)Ashok Kumar Barla
 
UNITESSAMBIENT — Real-Time environmental conditions monitoring system
UNITESSAMBIENT — Real-Time environmental conditions monitoring systemUNITESSAMBIENT — Real-Time environmental conditions monitoring system
UNITESSAMBIENT — Real-Time environmental conditions monitoring systemUNITESS
 

Similar to 5107368.ppt (20)

CONCEPT OF SCADA System EMERSON EDUARDO RODRIGUES
CONCEPT OF SCADA System  EMERSON EDUARDO RODRIGUESCONCEPT OF SCADA System  EMERSON EDUARDO RODRIGUES
CONCEPT OF SCADA System EMERSON EDUARDO RODRIGUES
 
MECHATRONICS Part-2.pdf
MECHATRONICS Part-2.pdfMECHATRONICS Part-2.pdf
MECHATRONICS Part-2.pdf
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital Control
 
Introduction of wide area mesurement syatem
Introduction of wide area mesurement syatemIntroduction of wide area mesurement syatem
Introduction of wide area mesurement syatem
 
QAC020X355A Designing And Developing Products For The Internet Of Everything....
QAC020X355A Designing And Developing Products For The Internet Of Everything....QAC020X355A Designing And Developing Products For The Internet Of Everything....
QAC020X355A Designing And Developing Products For The Internet Of Everything....
 
Prototype of multifunctional transmitter with Rejection of disturbances
Prototype of multifunctional transmitter with Rejection of disturbancesPrototype of multifunctional transmitter with Rejection of disturbances
Prototype of multifunctional transmitter with Rejection of disturbances
 
DCS
DCSDCS
DCS
 
Real time system
Real time systemReal time system
Real time system
 
UNIT-5-PPT.ppt
UNIT-5-PPT.pptUNIT-5-PPT.ppt
UNIT-5-PPT.ppt
 
Overheat and smoke detection with gsm
Overheat and smoke detection with gsmOverheat and smoke detection with gsm
Overheat and smoke detection with gsm
 
Phasor data concentrator
Phasor data concentratorPhasor data concentrator
Phasor data concentrator
 
125910167
125910167125910167
125910167
 
Wireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 pptWireless ai based intelli industrial security robot 2 ppt
Wireless ai based intelli industrial security robot 2 ppt
 
RTOS APPLICATIONS
RTOS  APPLICATIONSRTOS  APPLICATIONS
RTOS APPLICATIONS
 
Real Time System
Real Time SystemReal Time System
Real Time System
 
E033021025
E033021025E033021025
E033021025
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)
 
What you about_dcs_system (1)
What you about_dcs_system (1)What you about_dcs_system (1)
What you about_dcs_system (1)
 
UNITESSAMBIENT — Real-Time environmental conditions monitoring system
UNITESSAMBIENT — Real-Time environmental conditions monitoring systemUNITESSAMBIENT — Real-Time environmental conditions monitoring system
UNITESSAMBIENT — Real-Time environmental conditions monitoring system
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfPo-Chuan Chen
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxssuserbdd3e8
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxDenish Jangid
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 

Recently uploaded (20)

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 

5107368.ppt

  • 1. REAL-TIME SOFTWARE SYSTEMS DEVELOPMENT Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU
  • 2. Introduction to Real-Time Systems What is a Real-Time System? Is defined as a system in which the time where the outputs are produced is significant (within specified bounds or deadlines) . RTS Sensor Data Commands Actuator Outputs Displays Correctness depends on output values and the time at which the inputs are processed and the outputs are produced
  • 3. Introduction to Real-Time Systems  Real-Time Systems can be Hard Real-Time systems or Soft Real-Time systems  In Hard Real-Time systems outputs must be produced within the specified deadlines or a system failure will occur (Examples include: Flight Control systems, Air Traffic Control systems, Robots, Automotive Control Systems,..)  In Soft Real-Time Systems, deadlines can be occasionally missed ( Examples include: communications systems using time out protocols, ATMs, Air line Reservation Systems, Process Control Systems designed to tolerate delays)
  • 4. Engineering Applications of Real-Time Systems 1. Process Control and Manufacturing Systems Controller Plant Sensor Data Control Signals Raw Material Finished Products Operator Commands Displays
  • 5. Engineering Applications of Real-Time Systems 2. Integrated Communication, Command, and Control (IC3) Systems Comm. Command Control Data From Sensing devices/ Control signals to Actuating devices, and data to displays Filtered data/ Controls info Decisions Sensor Data Control Signals
  • 6. Characteristics of Real-Time Systems • Real-Time systems are often embedded systems (i.e., contained within a larger system to provide monitoring, control, and computation functions) • They often require concurrent processing of multiple inputs. Concurrent tasks must be created and managed in order to fulfill the functions of the system. • Task scheduling is one of the important aspects of managing concurrency. Since tasks will compete for the same resources (such as the Processor)
  • 7. Embedded/Concurrent Systems Plant Sensor HW Sensor HW Actuator control Actuator Control Sensor IO Drivers Actuator IO Drivers Micro- Controller Data/Control BUS
  • 8. Characteristics of Real-Time Systems : Task Scheduling 0 10 20 35 A B Example: two periodic tasks A and B, Ap=10, Ad=20, Bp=25, Bd=50 Fixed Priority Scheduling B > A A will miss its deadline in the second execution A B A B B A 0 10 20 30 40 45 55 Nearest deadline scheduling Ad Bd Ad Ad
  • 9. Characteristics of Real-Time Systems  Real-Time systems need to respond to synchronous events ( i.e., periodic events) as well as asynchronous events (those that could occur at any time)  Real-Time systems often require high Reliability and Safety requirements.  Real-Time systems often have special environmental, interfacing, and fault-tolerance requirements.  Environmental factors such as temperature (e.g., in space exploration applications systems must operate in a temperature range of -55 to 200 degree centigrade), shock and vibration, size limits, weight limits, usually have an impact on the system hardware and software requirements
  • 10. Characteristics of Real-Time Systems  Fault-tolerant requirements and Exception handling have special consideration due to the high reliability and critical timing requirements. Fault-tolerance requirements greatly impact and usually complicate the design of software and hardware components of the system.  Interfacing requirements. The devices which are typically interfaced to a RTS are many (Examples include sensors, actuators, switches, displays, communication links, D/A and A/D converters, and pulse-width-modulated controllers)
  • 11. A CASE STUDY  The functional requirements of an Aircraft Monitoring System (AMS) 1. The system shall perform various aircraft monitoring and recording functions. 2. The aircraft has one engine. the engine is fitted with pressure and temperature sensors. 3. The sensors are polled by the system at regular 1 second intervals. 4. All sensors readings shall be sent to dials, one for each sensor. 5. All sensor readings shall be tested to be within a safe working range.
  • 12. A CASE STUDY 6. When three consecutive readings from a sensor were found to be out of range, a lamp corresponding to the sensor is changed from green to red. 7. When a sensor fails to respond to a poll sequence, a time out signal is generated. 8. A timed out sensor shall be treated as if it had supplied an out of range reading 9. Three consecutive time outs shall cause a warning lamp to switch from green to red. 10. A number of smoke detectors are installed in the aircraft. When smoke is first detected, an interrupt is generated by the smoke detectors.
  • 13. A CASE STUDY 11. When smoke is subsequently no longer detected, an interrupt is generated by the smoke detectors. 12 The system shall switch a smoke warning lamp from green to red when a smoke detection interrupt occurs. 13. A sensor is installed in the fuel tank of the aircraft to provide information on the quantity of fuel remaining. 14. The fuel sensor shall be polled and read by the system at 1 second intervals. 15. The fuel sensor reading shall be passed to a dial. 16. A warning lamp shall be switched from green to red when a 10% or less fuel reading is obtained from the fuel sensor.
  • 14. A CASE STUDY 17. The system shall have the capability to support a CRT display and a keyboard 18. Measures calculated from the sensor data (such as rate of change of pressure, rate of fuel consumption, etc.) can be requested by the pilot using the keyboard. 19. These measures shall be displayed on the CRT display. 20. Out of limit readings from the sensors or smoke detectors which cause the warning red light to be set shall cause a warning message to be displayed on the CRT. 21 The warnings message shall be of a higher precedence over the measures requested to be displayed By the pilot.
  • 15. A CASE STUDY 22. The warning messages persist until acknowledged by the pilot via the keyboard. 23. When all warning messages have been acknowledged, the last request shall be displayed. 24. The key board shall be used by the pilot to request the system to simulate the smoke detection. 25. All smoke or no smoke interrupts shall be recorded on a magnetic medium. 26 All readings recorded on the magnetic medium shall be tagged with time at which they were received.