J.Q. Zhu, Zherui Cai, Q P Yuan, Zhongmin Huang, Ruirui Zhang, Junjie Huang, Heru Guo, Gen Xu, Bingjia Xiao
Plasma Physics and Controlled Fusion·Sep 21, 2026Control & DiagnosticsAI, Modeling & Simulation To support high-performance long-pulse plasma discharges, the Lingshu Plasma Control System (PCS) has been successfully developed and deployed, shifting the focus of current research toward the development and iterative refinement of advanced control algorithms. Simulink is a widely used and powerful tool for control algorithm development. However, integrating Simulink models into the FunctionBlock-based architecture of Lingshu PCS still requires substantial manual adaptation, resulting in low integration efficiency and prolonged deployment cycles. To address this issue, this paper proposes a Simulink-to-FunctionBlock transformation framework for the Lingshu PCS. The framework establishes an automated workflow from model development to system deployment, enabling the direct conversion of Simulink models into deployable FunctionBlocks. By bridging the semantic gaps between Simulink models and the FunctionBlock architecture, the proposed approach significantly reduces manual integration effort and accelerates algorithm deployment. The proposed framework is validated using a plasma control algorithm from the EAST tokamak. Experimental results demonstrate that Simulink models can be successfully transformed into FunctionBlocks and deployed on the Lingshu PCS while preserving the original algorithm behavior and satisfying real-time control requirements, thereby validating the effectiveness of the proposed framework.IntroductionMagnetic confinement tokamaks offer a promising pathway toward the realization of clean fusion energy. In recent years, next-generation fusion facilities in China, including the China Fusion Engineering Test Reactor (CFETR)[1] and the Comprehensive Research Facility for Fusion Technology (CRAFFT/BEST), have entered an accelerated construction phase. These devices are designed to operate under more demanding conditions, featuring higher performance parameters and requiring steady-state plasma discharges with pulse durations extending to thousands of seconds or longer. To meet these stringent control requirements, a new plasma control system(PCS), named Lingshu, has been independently developed.Similar to existing fusion control frameworks such as MARTe[2], DCS[3][4], and RTF[5][6], Lingshu adopts a component-based architecture characterized by autonomous operation, low coupling, and high performance. Within the framework, control functionalities are encapsulated as Function Blocks (FBs) and deployed inside software components to implement signal acquisition, state diagnosis, plasma control, and command output. A set of supporting services, including workflow scheduling, parameter management, and data archiving, provides the underlying infrastructure for system-wide coordination and reliable operation.The system has been successfully applied to more than 9,000 discharges on the EAST tokamak. Its control components can operate with execution periods as short as 50 s, and simulation results indicate that the framework is capable of supporting steady-state long-pulse operation exceeding 25