技术领域Technical Field
本发明属于磁约束核聚变技术领域,具体涉及一种用于管理聚变实验配置参数的方法。The invention belongs to the technical field of magnetic confinement nuclear fusion, and in particular relates to a method for managing configuration parameters of a fusion experiment.
背景技术Background technique
面向未来聚变堆稳态运行需求的等离子体控制系统“灵枢”由软硬件基础架构、装置运行控制所需的算法构成,并通过两个辅助平台用于算法的可视化开发及控制功能的仿真模拟验证。灵枢在软件上采用了灵活可扩展的组件模块化架构,具有跨CPU、跨主机以及跨网络分布式部署的能力,能够如搭积木般构建大型复杂的实时控制系统。The plasma control system "Lingshu" for the steady-state operation needs of future fusion reactors consists of software and hardware infrastructure, algorithms required for device operation control, and two auxiliary platforms for algorithm visualization development and simulation verification of control functions. Lingshu uses a flexible and scalable component modular architecture in software, with the ability to be deployed across CPUs, hosts, and networks, and can build large and complex real-time control systems like building blocks.
所有聚变实验配置参数均需要在放电前设定完成,在放电时传输到实时节点。配置参数结构繁多,有随着时间变化的数据,也有在放电期间保持不变的数据。数据可以是单个的浮点数据值,或指示状态等的开关变量,或是长度不同、维度不同的数组等等。进一步来说,等离子体控制系统是一个发展的控制系统,控制算法会随着实验需要不断优化或增加,未知的控制算法会带来未知的配置参数结构,使得实验配置参数管理与控制算法紧密耦合,也给数据在组件间传输带来极大的问题。All fusion experiment configuration parameters need to be set before discharge and transmitted to the real-time node during discharge. The configuration parameter structure is diverse, with data that changes over time and data that remains unchanged during discharge. The data can be a single floating-point data value, or a switch variable indicating a state, or an array of different lengths and dimensions, etc. Furthermore, the plasma control system is an evolving control system, and the control algorithm will be continuously optimized or increased as the experiment requires. Unknown control algorithms will lead to unknown configuration parameter structures, making the experimental configuration parameter management tightly coupled with the control algorithm, and also causing great problems for data transmission between components.
中国科学院等离子体物理研究所磁约束核聚变实验装置EAST,其等离子体控制系统实验配置参数通过宏定义的方式定义在算法代码文件中,用户界面与参数管理进程通过socket通讯传递参数设置。这种设计达到了用户界面与控制算法一定程度上的解耦,但设计方案较为复杂,数据和逻辑混杂在一起,开发新算法易出错。其每炮的所有配置参数以字节流整体存储到文件或者MDSplus数据库(MDSplus是专为核聚变脉冲实验设计,集数据采集、存储和分析显示为一体的软件系统)中,通过编程获取某一个配置参数的设置数据非常困难,不利于数据的访问。作为等离子体控制系统的必要功能,初步在灵枢系统上实现了对聚变实验配置参数的管理[谢文静,张睿瑞,肖炳甲等,计算机系统应用,2023,32(10),115-122],在该篇文章中,提出采用可扩展标记语言XML描述实验配置参数的方法,它将配置参数划分为两类:一类随时间变化的波形数据,由一组顶点组成;一类是不随时间变化的静态数据。在XML描述中分别以<waveform>和<staticdata>标记。随着更多的控制算法加入控制系统,该方法存在以下不足:针对不同数据结构的静态数据,没有统一的处理方式,新增或者修改静态数据需要改动的代码过多。The plasma control system experimental configuration parameters of the EAST, a magnetic confinement nuclear fusion experimental device at the Institute of Plasma Physics, Chinese Academy of Sciences, are defined in the algorithm code file through macro definitions, and the user interface and parameter management process transmit parameter settings through socket communication. This design achieves a certain degree of decoupling between the user interface and the control algorithm, but the design is relatively complex, data and logic are mixed together, and it is easy to make mistakes when developing new algorithms. All configuration parameters of each gun are stored as a byte stream in a file or MDSplus database (MDSplus is a software system designed for nuclear fusion pulse experiments, integrating data acquisition, storage, analysis and display). It is very difficult to obtain the setting data of a certain configuration parameter through programming, which is not conducive to data access. As a necessary function of the plasma control system, the management of fusion experiment configuration parameters has been initially implemented on the Lingshu system [Xie Wenjing, Zhang Ruirui, Xiao Bingjia, et al., Computer System Applications, 2023, 32(10), 115-122]. In this article, a method of using extensible markup language XML to describe experimental configuration parameters is proposed. The configuration parameters are divided into two categories: one is waveform data that changes with time, consisting of a group of vertices; the other is static data that does not change with time. In the XML description, they are marked with <waveform> and <staticdata> respectively. As more control algorithms are added to the control system, this method has the following shortcomings: there is no unified processing method for static data of different data structures, and too much code needs to be changed to add or modify static data.
发明内容Summary of the invention
本发明的目的是提供一种用于管理聚变实验配置参数的方法,对不同类型的配置参数进行抽象建模,通过可扩展标记语言XML描述定义所有的配置参数,能够与具体控制算法解耦。通过接口定义语言定义配置参数数据结构,并采用JSON序列化传输实现了统一的数据传输格式。易于算法开发人员利用算法开发平台进行算法的可视化开发,提高控制算法集成到等离子体控制系统的效率。The purpose of the present invention is to provide a method for managing fusion experiment configuration parameters, abstractly modeling different types of configuration parameters, and defining all configuration parameters through extensible markup language XML description, which can be decoupled from specific control algorithms. The configuration parameter data structure is defined through interface definition language, and a unified data transmission format is realized by using JSON serialization transmission. It is easy for algorithm developers to use the algorithm development platform to perform algorithm visualization development, thereby improving the efficiency of integrating the control algorithm into the plasma control system.
为实现上述目的,本发明提出一种用于管理聚变实验配置参数的方法,包括有以下方法步骤:To achieve the above object, the present invention provides a method for managing fusion experiment configuration parameters, comprising the following method steps:
S1、对聚变实验配置参数进行抽象建模;S1. Abstract modeling of fusion experiment configuration parameters;
S2、用户通过用户界面设置实验配置参数;S2, the user sets the experimental configuration parameters through the user interface;
S3、将S2中的实验配置参数传输到实时节点;S3, transmit the experimental configuration parameters in S2 to the real-time node;
S4、存储实验配置参数。S4. Store the experimental configuration parameters.
可选的,所述S1中抽象建模,具体建模步骤为:Optionally, the abstract modeling in S1 includes the following specific modeling steps:
S11、根据聚变实验确定配置参数的类型;S11. Determine the type of configuration parameters according to the fusion experiment;
S12、定义配置参数的属性。S12. Define the properties of the configuration parameters.
可选的,所述S11中配置参数的类型包括:随时间变化的波形数据以及不随时间变化的静态数据。Optionally, the types of configuration parameters in S11 include: waveform data that changes with time and static data that does not change with time.
可选的,所述S12中定义配置参数的属性,具体为:Optionally, the attributes of the configuration parameters defined in S12 are specifically:
S12.1、定义波形数据的属性;S12.1. Define the properties of waveform data;
S12.2、定义静态数据的属性;S12.2. Define the attributes of static data;
S12.3、定义静态数据的数据结构。S12.3. Define the data structure of static data.
可选的,所述定义波形数据的属性,具体如下:Optionally, the attributes of the defined waveform data are as follows:
通过XML语言对波形数据的属性进行扩展定义。The attributes of waveform data are extended and defined through XML language.
可选的,所述定义静态数据属性,具体为:Optionally, the definition of static data attributes is specifically:
通过定义<varclass>标签,文本内容为具体的数据结构名称,指示如何去解析相应的数据。By defining the <varclass> tag, the text content is the specific data structure name, indicating how to parse the corresponding data.
可选的,所述定义静态数据的数据结构,具体如下:Optionally, the data structure defining the static data is as follows:
通过接口定义语言IDL定义配置参数的数据结构,IDL编译器生成对应的C++、Python文件。在这两种编程语言中,数据结构都被生成为类,并提供对其成员访问、修改及序列化、反序列化函数;当需要修改数据结构时,通过修改IDL文件并重新使用IDL编译器编译生成新的C++、Python文件,保持了配置参数的数据结构在多个组件、进程中结构的一致。The data structure of configuration parameters is defined through the interface definition language IDL, and the IDL compiler generates the corresponding C++ and Python files. In both programming languages, data structures are generated as classes, and provide functions for accessing, modifying, serializing, and deserializing their members; when the data structure needs to be modified, the IDL file is modified and recompiled using the IDL compiler to generate new C++ and Python files, keeping the data structure of configuration parameters consistent in multiple components and processes.
可选的,所述S2中用户通过用户界面设置实验配置参数,具体为:Optionally, in S2, the user sets the experimental configuration parameters through the user interface, specifically:
S21、用户界面启动的时候通过遍历读取所有算法的XML描述文件,获得实验配置参数的描述信息;S21, when the user interface is started, the XML description files of all algorithms are read through the traversal to obtain the description information of the experimental configuration parameters;
S22、用户界面通过发布订阅消息通讯机制与参数管理组件通讯获取当前实验配置参数的设置数据,并更新在用户界面上展示;S22, the user interface communicates with the parameter management component through the publish-subscribe message communication mechanism to obtain the setting data of the current experimental configuration parameters, and updates and displays them on the user interface;
S23、对于波形数据类型的配置参数,用户在用户界面编辑当前参数的顶点信息,通过主界面的apply按钮提交;对于静态数据类型的配置参数,用户界面单独以编辑器对话框展示,修改后在对话框的apply按钮提交。S23. For configuration parameters of waveform data types, the user edits the vertex information of the current parameters in the user interface and submits it through the apply button of the main interface; for configuration parameters of static data types, the user interface is displayed separately in an editor dialog box, and after modification, it is submitted through the apply button of the dialog box.
S24、将实验配置参数的设置数据根据其数据结构序列化为JSON字符串,通过发布订阅消息通讯机制,参数管理组件获得该配置参数的设置值;S24, serializing the setting data of the experimental configuration parameters into a JSON string according to its data structure, and obtaining the setting value of the configuration parameter by the parameter management component through a publish-subscribe message communication mechanism;
可选的,所述S3中实验配置参数传输到实时节点,具体如下:Optionally, the experimental configuration parameters in S3 are transmitted to the real-time node, as follows:
S31、在接收到炮号消息后,参数管理组件会停止与用户界面的参数修改;S31. After receiving the gun number message, the parameter management component stops modifying parameters with the user interface;
S32、当参数管理组件准备好数据后发送数据准备好话题;S32, when the parameter management component prepares the data, it sends a data ready topic;
S33、实时节点支持组件事先订阅S32所述消息话题,收到消息后实时节点支持组件依次请求各实时进程需要的配置参数,参数管理组件接收到数据请求话题后将每个实时进程请求的控制目录列表中的配置数据发送给实时节点支持组件;S33, the real-time node support component subscribes to the message topic in S32 in advance, and after receiving the message, the real-time node support component sequentially requests the configuration parameters required by each real-time process, and after receiving the data request topic, the parameter management component sends the configuration data in the control directory list requested by each real-time process to the real-time node support component;
S34、实时节点支持组件收到相应数据后,序列化数据并写到各个实时进程的共享内存数据区内,完成配置参数从参数管理组件到实时节点的传输。S34. After receiving the corresponding data, the real-time node support component serializes the data and writes it into the shared memory data area of each real-time process, completing the transmission of the configuration parameters from the parameter management component to the real-time node.
可选的,所述S4中存储实验配置参数,具体为:实验配置参数发送给实时节点后,参数管理组件会将当前的配置参数信息写到以炮号为识别号的配置参数数据库中。Optionally, the experimental configuration parameters are stored in S4, specifically: after the experimental configuration parameters are sent to the real-time node, the parameter management component will write the current configuration parameter information into the configuration parameter database with the gun number as the identification number.
与现有技术相比,本发明的有益效果是:Compared with the prior art, the present invention has the following beneficial effects:
本发明对不同类型的配置参数进行抽象建模,通过可扩展标记语言XML描述定义所有的配置参数,能够与具体控制算法解耦。通过接口定义语言定义配置参数数据结构,并采用JSON序列化传输实现了统一的数据传输格式。易于算法开发人员利用算法开发平台进行算法的可视化开发,提高控制算法集成到等离子体控制系统的效率。聚变实验配置参数具有一定的研究价值,可以利用历史的配置参数设置数据进行仿真模拟,指导未来的聚变实验,采用MySQL数据库存储配置参数数据,方便研究人员便利高效的访问。The present invention abstractly models different types of configuration parameters, and defines all configuration parameters through extensible markup language XML description, which can be decoupled from specific control algorithms. The configuration parameter data structure is defined through interface definition language, and a unified data transmission format is realized by using JSON serialization transmission. It is easy for algorithm developers to use the algorithm development platform to perform visual development of the algorithm, thereby improving the efficiency of integrating the control algorithm into the plasma control system. The fusion experiment configuration parameters have certain research value, and historical configuration parameter setting data can be used for simulation to guide future fusion experiments. The configuration parameter data is stored in MySQL database, which is convenient and efficient for researchers to access.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明的方法流程示意图。FIG. 1 is a schematic flow chart of the method of the present invention.
图2是灵枢控制系统用户界面示意图。FIG. 2 is a schematic diagram of the user interface of the Lingshu control system.
图3是实验配置参数传输到实时节点流程示意图。FIG3 is a schematic diagram of the process of transmitting the experimental configuration parameters to the real-time node.
图4是配置参数数据库ER图。Figure 4 is the ER diagram of the configuration parameter database.
图5是极向场线圈电流PF2在界面上显示及在算法描述XML文件中的定义示意图。FIG. 5 is a schematic diagram showing the display of the poloidal field coil current PF2 on the interface and its definition in the algorithm description XML file.
图6是HCN参数在界面上显示及在算法描述XML文件中的定义示意图。FIG. 6 is a schematic diagram showing the HCN parameters displayed on the interface and defined in the algorithm description XML file.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
实施例一Embodiment 1
请参阅图1,本实施例中一种用于管理聚变实验配置参数的方法,该方法通过以下步骤按顺序实现:Please refer to FIG. 1 , which is a method for managing fusion experiment configuration parameters in this embodiment. The method is implemented in sequence by the following steps:
S1、对聚变实验配置参数进行抽象建模;S1. Abstract modeling of fusion experiment configuration parameters;
可扩展标记语言(extensible markup language,XML),可以结构化存储以及传输信息。本发明利用XML来定义聚变实验配置参数;Extensible markup language (XML) can store and transmit information in a structured manner. The present invention uses XML to define fusion experiment configuration parameters;
S11、根据聚变实验确定配置参数的类型;S11. Determine the type of configuration parameters according to the fusion experiment;
聚变实验配置参数为控制算法提供目标数据,在放电准备阶段传递到实时节点上,在放电过程中控制系统实时解析这些数据计算得到当前时刻的设置值,参与反馈控制。实验配置参数可划分为两类:一类随时间变化的波形数据,由一组顶点组成;一类是不随时间变化的静态数据。波形数据只需要设置发生变化时关键的顶点值(t1,y1),…,(tn,yn),其中,tn表示时刻,yn表示tn时刻的值。在两个设置时刻之间的数据在实时解析时有两种方式:1、通过线性插值的方法得到tm-1~tm之间的目标值,即y=(ym-ym-1)(x-xm-1)/(xm-xm-1)+ym-1;2、保持ym-1值直到tm时刻到来。利用<type>标签将三种形式的数据分别表示。type=0为线性变化的波形数据,type=1为跳变的波形数据,type=2为静态数据。The fusion experiment configuration parameters provide target data for the control algorithm, which are transmitted to the real-time node in the discharge preparation stage. During the discharge process, the control system analyzes these data in real time to calculate the setting value at the current moment and participate in feedback control. The experimental configuration parameters can be divided into two categories: one is the waveform data that changes with time, which consists of a group of vertices; the other is the static data that does not change with time. The waveform data only needs to set the key vertex values (t1 ,y1 ),…,(tn ,yn ) when the change occurs, where tn represents the moment andyn represents the value at the moment tn . There are two ways to analyze the data between the two setting moments in real time: 1. Obtain the target value between tm-1 and tm by linear interpolation, that is, y=(ym -ym-1 )(xxm-1 )/(xm -xm-1 )+ym-1 ; 2. Keep the ym-1 value until the moment tm arrives. The three forms of data are represented by the <type> tag. type=0 is linearly changing waveform data, type=1 is jump waveform data, and type=2 is static data.
S12、定义配置参数的属性;S12, defining attributes of configuration parameters;
S12.1、定义波形数据的属性;S12.1. Define the properties of waveform data;
对于波形数据,需要为每一个数据定义一个名称,方便在使用历史数据时通过名称查找到数据。需要记录其设置值,其取值范围,同时为能在用户界面上可视化的展示波形,还需要知道该波形的一些描述信息,波形数据主要属性定义如下表1所示,波形数据的定义很容易统一,通过XML语言描述易于扩展新的属性;For waveform data, a name needs to be defined for each data, so that it is convenient to find the data by name when using historical data. Its setting value and value range need to be recorded. At the same time, in order to be able to visualize the waveform on the user interface, some description information of the waveform is also required. The main attribute definitions of waveform data are shown in Table 1 below. The definition of waveform data is easy to unify, and it is easy to expand new attributes through XML language description;
表1Table 1
S12.2、定义静态数据属性;S12.2, define static data attributes;
静态数据是不随时间变化的一组值。为了设定方便,在用户界面上以弹窗的形式提供运行人员设定。静态数据的数据结构是由算法开发人员根据算法需要自定义,因此在对静态数据进行抽象建模描述时,不使用其具体的数据结构元素作为标签,而是通过定义<varclass>标签,指示了使用哪个结构去解析这个数据。由此所有的静态数据都有一致的属性,便于算法开发平台开发,主要的静态数据属性如表2所示;Static data is a set of values that do not change over time. For ease of setting, the user interface provides operators with settings in the form of pop-up windows. The data structure of static data is customized by algorithm developers according to algorithm requirements. Therefore, when abstractly modeling and describing static data, its specific data structure elements are not used as labels. Instead, the <varclass> tag is defined to indicate which structure is used to parse the data. Therefore, all static data have consistent attributes, which is convenient for the development of the algorithm development platform. The main static data attributes are shown in Table 2;
表2Table 2
S12.3、定义静态数据的数据结构;S12.3, define the data structure of static data;
在算法的XML描述文件中只定义了静态数据使用的结构类名称,具体的数据结构通过接口定义语言(Interface definition Language,IDL)来定义。IDL属于对象管理组织提出的CORBA(common object requestbroker architecture)规范,用于声明对象中的接口,通过IDL编译器生成对应的C++、Python文件,在这两种编程语言中,数据结构都被生成为类,并提供对其成员访问、修改及序列化、反序列化函数。当需要修改数据结构时,通过修改IDL文件并重新使用IDL编译器编译生成新的C++、Python文件,保持了数据结构在多个组件、进程中结构的一致。算法开发人员通过定义算法的*.idl文件,经过框架的IDL编译器后生成对应编程语言的数据结构,在算法的XML描述文件中填充该数据结构类名。In the algorithm's XML description file, only the structure class name used for static data is defined, and the specific data structure is defined by the Interface Definition Language (IDL). IDL belongs to the CORBA (common object requestbroker architecture) specification proposed by the Object Management Group. It is used to declare the interface in the object and generate the corresponding C++ and Python files through the IDL compiler. In these two programming languages, the data structure is generated as a class and provides access, modification, serialization and deserialization functions for its members. When the data structure needs to be modified, the IDL file is modified and recompiled with the IDL compiler to generate a new C++ and Python file, which keeps the data structure consistent in multiple components and processes. The algorithm developer defines the algorithm's *.idl file, and generates the data structure of the corresponding programming language after the framework's IDL compiler, and fills in the data structure class name in the algorithm's XML description file.
S2、用户通过用户界面设置实验配置参数;S2, the user sets the experimental configuration parameters through the user interface;
用户界面启动的时候通过遍历读取所有算法的XML描述文件,获得实验配置参数的描述信息。算法的XML描述文件定义的是配置参数的默认值,用户界面还需要通过与参数管理组件通讯获取当前的设置数据,更新在用户界面上展示,请参阅图2,展示了一个类型为0的实验配置参数。When the user interface is started, it traverses and reads the XML description files of all algorithms to obtain the description information of the experimental configuration parameters. The XML description files of the algorithms define the default values of the configuration parameters. The user interface also needs to communicate with the parameter management component to obtain the current setting data and update it on the user interface. Please refer to Figure 2, which shows an experimental configuration parameter of type 0.
用户可以在界面左下角通过编辑当前参数的顶点信息,通过apply提交。提交涉及到用户界面与参数管理组件的通讯,采用了控制框架提供的发布订阅通讯机制的通讯方式。通信函数需要指定传输数据的结构类名,由于静态数据的数据结构不定,需要为每一个静态数据通讯定义一个通讯的函数,代码复用差。本发明通过将需要传输的静态数据结构序列化成JSON(JavaScript ObjectNotation,JS对象简谱)字符串的方式实现了统一的数据传输格式,提交配置参数时通讯函数所使用IDL定义如下:The user can edit the vertex information of the current parameter in the lower left corner of the interface and submit it through apply. Submission involves communication between the user interface and the parameter management component, and adopts the communication method of the publish-subscribe communication mechanism provided by the control framework. The communication function needs to specify the structure class name of the transmitted data. Since the data structure of static data is uncertain, a communication function needs to be defined for each static data communication, and the code reuse is poor. The present invention realizes a unified data transmission format by serializing the static data structure to be transmitted into a JSON (JavaScript Object Notation, JS object notation) string. The IDL definition used by the communication function when submitting the configuration parameters is as follows:
不论是静态数据还是波形数据,在传输前先将设置的数据根据reqClass序列化为JSON字符串,放到reqMsg里,实现了统一的数据传输格式。在用户界面端,Python利用反射机制并使用json.loads()将reqMsg里内容反序列化回来,在参数管理组件端类似处理,这样可以使用同一个通信函数完成所有的实验配置参数的传输。Whether it is static data or waveform data, the set data is serialized into a JSON string according to reqClass before transmission and put into reqMsg, realizing a unified data transmission format. On the user interface side, Python uses the reflection mechanism and json.loads() to deserialize the content in reqMsg. Similar processing is done on the parameter management component side, so that the same communication function can be used to complete the transmission of all experimental configuration parameters.
S3、将S2中的实验配置参数传输到实时节点;S3, transmit the experimental configuration parameters in S2 to the real-time node;
实验配置参数需要在放电开始的准备阶段传递到实时节点,以便等离子体放电时实时解析配置参数。The experimental configuration parameters need to be transferred to the real-time node in the preparation stage of the discharge start so that the configuration parameters can be parsed in real time when the plasma discharges.
请参阅图3,在接收到炮号消息后,参数管理组件会停止与用户界面的参数修改,将当前的配置参数发送到实时节点。通讯采用了控制框架提供的发布订阅通讯机制的通讯方式,当参数管理组件准备好数据后,发布“CS_RT_READY_REQ_TOPIC”消息。实时支持组件事先订阅该消息,收到消息后实时支持组件依次请求各实时进程需要的配置参数,消息话题是“CS_RT_SETUP_REQ_TOPIC”。参数组件亦事先订阅了这个话题,接收到话题后按照每个实时进程请求的控制目录列表中的配置数据通过“CS_RT_SETUP_RES_TOPIC”话题将所需数据发送给实时支持组件。实时支持组件收到相应数据后,序列化数据并写到各个实时进程的共享内存数据区内,完成配置参数从参数管理组件到实时节点的传输。Please refer to Figure 3. After receiving the gun number message, the parameter management component will stop modifying the parameters with the user interface and send the current configuration parameters to the real-time node. The communication adopts the communication method of the publish-subscribe communication mechanism provided by the control framework. When the parameter management component prepares the data, it publishes the "CS_RT_READY_REQ_TOPIC" message. The real-time support component subscribes to this message in advance. After receiving the message, the real-time support component requests the configuration parameters required by each real-time process in turn. The message topic is "CS_RT_SETUP_REQ_TOPIC". The parameter component also subscribes to this topic in advance. After receiving the topic, it sends the required data to the real-time support component through the "CS_RT_SETUP_RES_TOPIC" topic according to the configuration data in the control directory list requested by each real-time process. After receiving the corresponding data, the real-time support component serializes the data and writes it to the shared memory data area of each real-time process, completing the transmission of the configuration parameters from the parameter management component to the real-time node.
S4、存储实验配置参数;S4, storage of experimental configuration parameters;
参数管理组件实验配置参数发送给实时节点后,会将当前的配置参数信息写到以炮号为识别号的配置参数数据库中,保存到数据库中的配置参数可以被调用用于控制系统模拟测试,验证和优化控制算法。请参阅图4,配置参数数据库ER图。After the parameter management component sends the experimental configuration parameters to the real-time node, the current configuration parameter information will be written to the configuration parameter database with the gun number as the identification number. The configuration parameters saved in the database can be called for control system simulation testing, verification and optimization of control algorithms. Please refer to Figure 4, the configuration parameter database ER diagram.
实施例二Embodiment 2
PF2线圈电流波形管理:PF2 coil current waveform management:
极向场线圈电流PF2是一个连续的波形配置参数,其在界面上显示及在XML中定义如下:The poloidal field coil current PF2 is a continuous waveform configuration parameter, which is displayed on the interface and defined in XML as follows:
请参阅图5,PF2的参数类型为0,其在用户界面上使用了描点绘图的显示方式,界面上显示了正确的X轴标签、Y轴标签、标题名称等。用户在用户界面上点击不同的配置参数数据项,绘图区域和顶点设置区域同步更新,说明用户界面对波形数据配置参数完全解耦。Please refer to Figure 5. The parameter type of PF2 is 0. It uses the point drawing display mode on the user interface, and the correct X-axis label, Y-axis label, title name, etc. are displayed on the interface. When the user clicks on different configuration parameter data items on the user interface, the drawing area and the vertex setting area are updated synchronously, indicating that the user interface is completely decoupled from the waveform data configuration parameters.
实施例三Embodiment 3
静态数据展示及数据获取:Static data display and data acquisition:
用户界面上带有…的数据项表示静态数据,点击会弹出静态数据的编辑对话框。如图6所示,是HCN参数的一些静态设置值,其数据结构IDL定义如下:The data items marked with ... on the user interface represent static data. Clicking on them will pop up a dialog box to edit the static data. As shown in Figure 6, these are some static setting values of HCN parameters. The IDL definition of their data structure is as follows:
IDL编译器将生成HcnParameters类定义。实时节点通过这个类定义能从数据引擎上获取到该数据下的各个元素值,可以看到用户界面上的设定值与XML中<resvalue>标签中data键值数值不一样。这是因为,XML存储的是默认的值组字符串,通过“|”分隔,在实际使用时分割成一个个数据值,与类中元素一一对应。在参数管理组件启动后会从数据库读取当前的配置信息覆盖默认值,并传递给用户界面。The IDL compiler will generate the HcnParameters class definition. The real-time node can obtain the values of each element under the data from the data engine through this class definition. You can see that the setting value on the user interface is different from the data key value in the <resvalue> tag in XML. This is because XML stores the default value group string, which is separated by "|". When it is actually used, it is divided into individual data values, which correspond to the elements in the class one by one. After the parameter management component is started, it will read the current configuration information from the database to overwrite the default value and pass it to the user interface.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311602859.5ACN118034764A (en) | 2023-11-28 | 2023-11-28 | Method for managing fusion experiment configuration parameters |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311602859.5ACN118034764A (en) | 2023-11-28 | 2023-11-28 | Method for managing fusion experiment configuration parameters |
| Publication Number | Publication Date |
|---|---|
| CN118034764Atrue CN118034764A (en) | 2024-05-14 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311602859.5APendingCN118034764A (en) | 2023-11-28 | 2023-11-28 | Method for managing fusion experiment configuration parameters |
| Country | Link |
|---|---|
| CN (1) | CN118034764A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118760432A (en)* | 2024-07-22 | 2024-10-11 | 中国科学院合肥物质科学研究院 | A data description method for nuclear fusion control algorithm |
| CN119720711A (en)* | 2024-12-03 | 2025-03-28 | 核工业西南物理研究院 | A concurrent data processing method and system suitable for tokamak integrated simulation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030024476A1 (en)* | 2001-02-01 | 2003-02-06 | The Regents Of The University Of California | Formation of a field reversed configuration for magnetic and electrostatic confinement of plasma |
| CN112631585A (en)* | 2020-12-22 | 2021-04-09 | 中国航空工业集团公司西安航空计算技术研究所 | XML-based rapid parameter interface configuration method |
| CN113056814A (en)* | 2018-04-27 | 2021-06-29 | 菲拓梅里克斯公司 | System and method for determining characteristics of semiconductor device |
| CN115600390A (en)* | 2022-10-08 | 2023-01-13 | 中国科学院合肥物质科学研究院(Cn) | A Modeling Simulation System for Plasma Control |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030024476A1 (en)* | 2001-02-01 | 2003-02-06 | The Regents Of The University Of California | Formation of a field reversed configuration for magnetic and electrostatic confinement of plasma |
| CN113056814A (en)* | 2018-04-27 | 2021-06-29 | 菲拓梅里克斯公司 | System and method for determining characteristics of semiconductor device |
| CN112631585A (en)* | 2020-12-22 | 2021-04-09 | 中国航空工业集团公司西安航空计算技术研究所 | XML-based rapid parameter interface configuration method |
| CN115600390A (en)* | 2022-10-08 | 2023-01-13 | 中国科学院合肥物质科学研究院(Cn) | A Modeling Simulation System for Plasma Control |
| Title |
|---|
| 谢文静等: "等离子体控制系统用户界面与参数管理", 《计算机应用》, vol. 32, no. 10, 31 October 2023 (2023-10-31), pages 1 - 8* |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118760432A (en)* | 2024-07-22 | 2024-10-11 | 中国科学院合肥物质科学研究院 | A data description method for nuclear fusion control algorithm |
| CN119720711A (en)* | 2024-12-03 | 2025-03-28 | 核工业西南物理研究院 | A concurrent data processing method and system suitable for tokamak integrated simulation |
| Publication | Publication Date | Title |
|---|---|---|
| CN112527383B (en) | Method, apparatus, device, medium and program for generating a multi-task model | |
| CN118034764A (en) | Method for managing fusion experiment configuration parameters | |
| CN111414380B (en) | Method, equipment and storage medium for generating SQL (structured query language) sentences of Chinese database | |
| US20240370237A1 (en) | Visual Programming for Deep Learning | |
| CN112199086B (en) | Automatic programming control system, method, device, electronic equipment and storage medium | |
| US9087296B2 (en) | Navigable semantic network that processes a specification to and uses a set of declaritive statements to produce a semantic network model | |
| JP7350923B2 (en) | Deep learning framework operator registration method, equipment, device and storage medium | |
| CN117389541B (en) | Configuration system and device for generating template based on dialogue retrieval | |
| CN113762702B (en) | Workflow deployment method, device, computer system and readable storage medium | |
| US20100218199A1 (en) | Method for programmatic editing of configuration files | |
| US20200278969A1 (en) | Unified metrics computation platform | |
| Manduchi et al. | MARTe2 and MDSplus integration for a comprehensive fast control and data acquisition system | |
| CN114238072B (en) | HIL requirement design method, device, computer equipment and storage medium | |
| KR101175950B1 (en) | Method, apparatus, and computer readable medium storing a software program for managing system specifications | |
| CN114860869A (en) | A controllable general dialogue model with intent generalization | |
| CN112199075B (en) | Intelligent information processing method and framework system based on micro-service | |
| CN114443035A (en) | Code generation method for application program, code generator, electronic device, and medium | |
| US11010140B2 (en) | Integration of workflow and logical data objects using visual programming | |
| CN115600977A (en) | A workflow orchestration system and method | |
| US10157360B1 (en) | Smart bricks information system | |
| CN116010444A (en) | Low-code interactive graph query statement construction method | |
| Chen et al. | A Services Development Approach for Smart Home Based on Natural Language Instructions. | |
| CN119046123B (en) | Benchmark test generation method, device and equipment for distributed system modeling | |
| US20240311098A1 (en) | Automated data modeling | |
| US20230368103A1 (en) | Knowledge graph enabled augmentation of natural language processing applications |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20240514 |