Digital controllers are increasingly designed and built using commercial off-the-shelf (COTS) hardware and software components. This is a result of the availability of high-performance, low-cost microcontrollers, specialized embedded processors, and various real-time operating systems (RTOSs). The wide selection of RTOSs does not necessarily translate into an increased availability of systems that are capable of facilitating the construction of controllers meeting the performance and stability requirements demanded by the mechatronics applications. A primary contributing factor to that disparity is that the design goals of many RTOSs focus on the overall system response time and may neglect other timing constraints in the controller.
This chapter examines the major components of an RTOS and the implementation of the controller using those components from a computing science perspective. By introducing the various operating system concepts and the way in which these concepts affect the digital controller design, this chapter aims to aid control engineers in better understanding an RTOS. With this knowledge, design decisions can be made to compensate for the deficiencies in the underlying software platform. This chapter also provides a survey of the results of the various research topics in the field of computer-controlled systems design. The contribution of this chapter is its synthesis of topics from control engineering theory with concepts from real-time systems in the RTOS context. We thus aim to help the control engineer to develop a systematic approach to the implementation of control systems using either a COTS RTOS or an open source-based research RTOS.
The main objective of this chapter is to assist the control engineer in architecting the controller implementation while taking into consideration the issues that are present in the underlying supporting RTOS, thus creating an optimal design.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
L. Abeni and G. Buttazzo. Integrating multimedia applications in hard real-time systems. In Proc. IEEE Real-Time Systems Symposium, Dec. 1998.
J. H. Anderson, S. Ramamurthy, and K. Jeffay. Real-time computing with lock-free shared objects. ACM Transactions on Computer Systems, 15(2):134-165, May 1997.
K-E. Årzen, B. Bernhardsson, J. Eker, A. Cervin, K. Nilsson, P. Persson, and L. Sha. Integrated control and scheduling. Technical Report ISSN 0820-5316, Dept. Automatic Control, Lund Institute of Technology, Sweden, 1999.
G. Buttazzo. Real-time operating systems: Problems and novel solutions. In Proc. of 7th Int. Symposium on Formal Techniques in Real-Time and Fault-Tolerant Systems, Oldenburg, Germany, Sept. 2002.
M. Caccamo, G. Buttazzo, and L. Sha. Handling execution overruns in hard real-time control systems. IEEE Transactions on Computers, 51(7), 2002.
A. Cervin. Improved scheduling of control tasks. In Proceedings of the 11th Euromicro Conference on Real-Time Systems, pages 4-10. York, U.K., June 1999.
H. Thane, A. Pettersson, and D. Sundmark. The Asterix real-time kernel. In Proceedings of the 13th Euromicro International Conference On Real-Time Sys-tems, June 2001.
Q. Li and C. Yao. Real-Time Concepts for Embedded Systems. CMP Books, 2003.
P. Gai, L. Abeni, M. Giorgi, and G. Buttazzo. A new kernel approach for modu-lar real-time systems development. In Proceedings of the 13th IEEE Euromicro Conference on Real-Time Systems, Delft, Netherlands, June 2001.
R. Gerber, S. Hong, and M. Saksena. Guaranteeing real-time requirements with resource-based calibration of periodic processes. IEEE Transactions on Software Engineering, 21(7), July 1995.
M. Greenwald and D. Cheriton. The synergy between non-blocking synchroniza-tion and operating system structure. In 2nd Symposium on Operating Systems Design and Implementation (OSDI ’96), Seattle WA, pages 123-136. USENIX, Oct. 1996.
M. Hohmuth and H. Hartig. Pragmatic non-blocking synchronization for real-time systems. In Proc. of the USENIX Annual Technical Conference, 2001.
Asterix kernel. http://www.mrtc.mdh.se/projects/asterix/.
Fiasco kernel. http://os.inf.tu-dresden.de/fiasco/.
L4 Linux. http://os.inf.tu-dresden.de/l4/linuxonl4/.
R. Liu and Layland. Scheduling algorithms for multiprogramming in hard-real time environment. Journal of the Association of Computing Machinery 20, 20(1):174-189, 1973.
K. Ramamritahm and J. A. Stankovic. Scheduling algorithms and operating systems support for real-time systems. Proceedings of the IEEE, pages 55-67, Jan. 1994.
O. Redell. Global scheduling in distributed real-time computer systems-An automatic control perspective. Technical Report TRITA-MMK 1998:6, ISSN 1400-1179, ISRN KTH/MMK-98/6-SE, Department of Machine Design, Royal Institute of Technology, S-100 44 Stockhom, 1998.
M. Ryu and S. Hong. Toward automatic synthesis of schedulable real-time systems: From the temporal perspectives. International Journal of Integrated Computer-Aided Engineering, 5(3):261-277, May 1998.
M. Saksena. Real-time system design: A temporal perspective. In Proc. of IEEE Conference on Electrical and Computer Engineering, pages 405-408, Waterloo, Canada, May 1998.
D. Seto, J.P. Lehoczky, L. Sha, and K.G. Shin. On task schedulability in real-time control system. In Proc. IEEE Real-Time Systems Symposium, Dec. 1996.
S.Ha.R.K. http://shark.sssup.it.
M. Spuri and G. Buttazzo. Scheduling aperiodic tasks in dynamic priority systems. The Journal of Real-Time Systems, 10(2):179-210, March 1996.
J. Stankovic, M. Spuri, M. Di Natale, and G. Buttazzo. Implications of classical scheduling results for real-time systems. IEEE Computer, pages 16-25, June 1995.
J. A. Stankovic and K. Ramamritham. The Spring kernel: A new paradigm for hard real-time operating systems. IEEE Software, 8(3):62-72, May 1991.
H. Thane and H. Hansson. Using deterministic replay for debugging of dis-tributed real-time systems. In Proceedings of the 12th Euromicro Conference on Real-Time Systems, pages 265-272, June 2000.
M. Törngren. Fundamentals of implementing realtime control applications in distributed computer systems. J. of Real-Time Systems, 14:219-260, 1998.
B. Wittenmark, J. Nilsson, and M. Törngren. Timing problems in real-time control systems: Problem formulation. In Proc. of the American Control Con-ference, 1995.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2005 Birkhäuser Boston
About this chapter
Cite this chapter
Li, Q. (2005). Fundamentals of RTOS-Based Digital Controller Implementation. In: Hristu-Varsakelis, D., Levine, W.S. (eds) Handbook of Networked and Embedded Control Systems. Control Engineering. Birkhäuser Boston. https://doi.org/10.1007/0-8176-4404-0_15
Download citation
DOI: https://doi.org/10.1007/0-8176-4404-0_15
Publisher Name: Birkhäuser Boston
Print ISBN: 978-0-8176-3239-7
Online ISBN: 978-0-8176-4404-8
eBook Packages: EngineeringEngineering (R0)