19-Soft-A4 Real-Time Systems · May 2013
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
National Exams — May 2013 — 04-Soft-A4 Real-Time Systems. Three-hour, closed-book exam (Casio or Sharp approved calculators only). Format: six questions of equal value (20% each); any five constitute a complete paper and only the first five as they appear in the answer book are marked. All six are solved below for completeness. Where a doubt exists as to interpretation, the candidate is expected to state assumptions — engineering assumptions used below are flagged in check callouts.
Reference texts: Jane W. S. Liu, Real-Time Systems (Prentice Hall, 2000) — task models, timing requirements, FCFS and EDF scheduling; Giorgio C. Buttazzo, Hard Real-Time Computing Systems: Predictable Scheduling Algorithms and Applications (Springer, 3rd ed.) — preemptive dynamic-priority scheduling and the optimality of EDF; Hermann Kopetz, Real-Time Systems: Design Principles for Distributed Embedded Applications (Springer, 2nd ed.) — distributed real-time control, network-induced delay and time-triggered protocols; Katsuhiko Ogata, Modern Control Engineering (Pearson, 5th ed.) — frequency-domain stability, phase margin and delay margin; Ian Sommerville, Software Engineering (Pearson, 10th ed.) — general software-engineering process context.
Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.
Given. Cylindrical tank, diameter $D = 1.0\ \text{m}$, height (rim / spill level) $H = 5.0\ \text{m}$; inlet flow rate $Q = 400\ \text{L/min}$; shut-off command is issued at level $h_{\text{shutoff}} = 4.9\ \text{m}$; the closed loop is over-damped (no overshoot in the level response).
| Quantity | Value |
|---|---|
| Diameter, $D$ | 1.0 m |
| Rim / spill level, $H$ | 5.0 m |
| Shut-off trigger level, $h_{\text{shutoff}}$ | 4.9 m |
| Inlet flow rate, $Q$ | 400 L/min |
Find. The largest time delay the decision-logic function can take, between the shut-off level being reached and the valve actually closing, without the tank spilling over.
Approach. Because the loop is over-damped, the level rises monotonically with no overshoot, so the worst case is simply that the inlet keeps flowing at its full rated rate for the whole delay: the decision logic's response time is bounded by how long it takes to fill the remaining 0.1 m margin between the shut-off level and the rim, at the full inlet rate.
| Quantity | Result |
|---|---|
| Tank cross-sectional area, $A$ | 0.7854 m² |
| Safety-margin volume, $\Delta V$ | 78.54 L (0.07854 m³) |
| Largest tolerable decision-logic delay, $t_{\max}$ | ≈ 11.78 s |