Feasibility Study for a Python-Based Embedded Real-Time Control System
Electronics · 16.03.2023 · 12 (6) · 1426
DOI: 10.3390/electronics12061426 ↗Kurz gefasst
Fachartikel in der Zeitschrift Electronics, online erschienen am 16.03.2023. Verfasst von Se Yeon Cho und 2 weiteren Autor:innen. Die Arbeit wurde bisher 13-mal zitiert (Crossref) und nennt 25 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: SeoulTech (Seoul National University of Science and Technology).
Abstract (Originalsprache)
Because of its simplicity and the support of numerous useful libraries, Python has become one of the most popular programming languages for application development, even in embedded systems. However, in existing control systems where specific tasks must meet specific temporal deadlines and support schedulability with proper priority assignments, the Python interpreter may not satisfy real-time requirements, owing to features such as the global interpreter lock and garbage collector. This paper addresses these constraints with an approach that executes periodic real-time tasks under the fixed-priority preemptible scheduler of RT-Preempt. First, we implemented a Python real-time module that allows users to create and execute periodic tasks with fixed priorities based on Python. Then, we conducted experiments on an open embedded system, in this case, a Raspberry Pi 4. We evaluated the real-time performance, focusing on test metrics for control systems, such as task periodicity, responsiveness, and interrupt response. The results were then compared to those of conventional real-time tasks developed using the C language to validate the feasibility of the proposed method. Finally, we performed experimental validation by tracking the position of EtherCAT servo motors to demonstrate the feasibility of a Python-based real-time control system in a practical application.
Förderung
- SeoulTech (Seoul National University of Science and Technology)
Zitieren
APA
Cho, S. Y., Delgado, R., & Choi, B. W. (2023). Feasibility Study for a Python-Based Embedded Real-Time Control System. Electronics, 12(6), 1426. https://doi.org/10.3390/electronics12061426
Vancouver
Cho SY, Delgado R, Choi BW. Feasibility Study for a Python-Based Embedded Real-Time Control System. Electronics. 2023;12(6):1426. doi:10.3390/electronics12061426
BibTeX
@article{Cho2023,
author = {Cho, Se Yeon and Delgado, Raimarius and Choi, Byoung Wook},
title = {Feasibility Study for a Python-Based Embedded Real-Time Control System},
journal = {Electronics},
year = {2023},
volume = {12},
number = {6},
pages = {1426},
doi = {10.3390/electronics12061426}
}
EUVIMED