Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

12
Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Transcript of Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Page 1: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Real-Time Systems

Chapter 1

Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Page 2: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Definition• A real-time computer system is a computer

system in which its correctness depends on– The logical results of the computation– The physical time at which they are produced

Page 3: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Embedded Systems

• Embedded system: A RTCS that controls a larger system (e.g., cars, planes, washers).

• Properties:– Not visible from outside the system.– Limited resources.

Page 4: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Functional Requirements• Data collection

– Variables or RT entities• In the sphere of control (SOC) of some subsystem• Cannot be changed outside its SOC• Only temporaly accurate; has accuracy interval• Collection can be time- or event-triggered

Page 5: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Functional Requirements• Data collection

– Variables or RT entities• …

– Signal conditioning• Raw sensor data becomes measured data• Then checked for plausibility: agreed data

– Alarm monitoring• Abnormal behavior must be detected and generate

alarms (alarm showers)• Logs must help identify a primary event

Page 6: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Functional Requirements

• Direct digital control– From the data collected, the RTCS must

calculate the set points for the actuators– The target is to reduce the difference

between the sensed values and the reference values

– Control done periodically as a loop of data collection, set points computing,and output to the actuators

Page 7: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Functional Requirements

• Man-machine interaction– A RTCS must inform the operator of the

state of the controlled object– Bad interfaces can lead to accidents– Contain

• Extensive data logging• Data reporting

Page 8: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Temporal Requirements• Mainly come from the control loop.• Example:

– container with liquid– target is selected temperature (set point)– The RTCS only controls the steam valve

Page 9: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

The Controlled Object• Change in steam flow has two main temporal

parameters:– dobject: initial inertia– drise: time until new equilibrium

Page 10: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Controlling Computer System

• The system must – Sample the temperature periodically– Compare it with the set point– Adjust the control valve accordingly

Page 11: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Temporal Parameters

Page 12: Real-Time Systems Chapter 1 Hermann Kopetz. Real-Time-Systems, Kluwer 1997.

Computer Delay Jitter• Additional value error• Must be small wrt the delay