Using Python Modules in Real-Time Plasma Systems for Fusion.
Python
real-time systems
Journal
Sensors (Basel, Switzerland)
ISSN: 1424-8220
Titre abrégé: Sensors (Basel)
Pays: Switzerland
ID NLM: 101204366
Informations de publication
Date de publication:
10 Sep 2022
10 Sep 2022
Historique:
received:
06
08
2022
revised:
03
09
2022
accepted:
07
09
2022
entrez:
23
9
2022
pubmed:
24
9
2022
medline:
28
9
2022
Statut:
epublish
Résumé
One of the most important applications of sensors is feedback control, in which an algorithm is applied to data that are collected from sensors in order to drive system actuators and achieve the desired outputs of the target plant. One of the most challenging applications of this control is represented by magnetic confinement fusion, in which real-time systems are responsible for the confinement of plasma at a temperature of several million degrees within a toroidal container by means of strong electromagnetic fields. Due to the fast dynamics of the underlying physical phenomena, data that are collected from electromagnetic sensors must be processed in real time. In most applications, real-time systems are implemented in C++; however, Python applications are now becoming more and more widespread, which has raised potential interest in their applicability in real-time systems. In this study, a framework was set up to assess the applicability of Python in real-time systems. For this purpose, a reference operating system configuration was chosen, which was optimized for real time, together with a reference framework for real-time data management. Within this framework, the performance of modules that computed PID control and FFT transforms was compared for C++ and Python implementations, respectively. Despite the initial concerns about Python applicability in real-time systems, it was found that the worst-case execution time (WCET) could also be safely defined for modules that were implemented in Python, thereby confirming that they could be considered for real-time applications.
Identifiants
pubmed: 36146196
pii: s22186847
doi: 10.3390/s22186847
pmc: PMC9503853
pii:
doi:
Types de publication
Journal Article
Langues
eng
Sous-ensembles de citation
IM
Références
Sensors (Basel). 2020 May 21;20(10):
pubmed: 32455732
Nature. 2020 Sep;585(7825):357-362
pubmed: 32939066