Data description method for nuclear fusion control algorithm

By designing a data description method for nuclear fusion control algorithms and using markup language and XML files to ensure data consistency, the problem of metadata configuration in plasma control systems is solved and development efficiency is improved.

CN118760432AInactive Publication Date: 2024-10-11HEFEI INSTITUTE OF PHYSICAL SCIENCE CHINESE ACADEMY OF SCIENCES
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410978256.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the plasma control system, the metadata of the nuclear fusion control algorithm is manually configured and managed by developers, making it difficult to ensure consistency within the system, easily causing data errors during operation, and reducing development efficiency.

Method used

Design a data description method to describe the configuration data of the nuclear fusion control algorithm through markup language, generate XML files, scan and generate IDL files, uniformly generate C++ files, and generate storage nodes through the MDSPlus database to ensure the consistency of data in the system.

Benefits of technology

Through this method, the consistency of the data of the nuclear fusion control algorithm in the entire system is ensured, errors in development are reduced, and efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760432A_ABST
    Figure CN118760432A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of plasma control, and discloses a data description method for a nuclear fusion control algorithm. Comprising the following steps: S1, designing an algorithm and all data required by the algorithm, and determining each item of data and whether data can be used as data of a data group; s2, finding all corresponding data in the software development platform, and filling values of related labels; s3, generating an algorithm XML file through a software development platform; s4, scanning the XML file in the step S3, generating an IDL file from the custom static data in the XML file, and uniformly generating a C + + file; s5, generating a user interface through the XML file; and S6, generating a storage node in the MDSPlus database according to the pointname in the XML (Extensible Markup Language). A model is designed to describe configuration data of a nuclear fusion control algorithm, and markup languages are used for representation in practical application. And meanwhile, the method is used by a back-end program and a front-end interface of the algorithm, so that the consistency of the data in the whole system is ensured, errors in development are reduced, and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of plasma control, and in particular relates to a data description method for a nuclear fusion control algorithm. Background Art

[0002] In the plasma control system, the nuclear fusion control algorithm uses various types of data to describe its discharge configuration data, guide the discharge, and is used by the front and back ends. In the current stage of nuclear fusion research, the algorithm and its discharge configuration data are often changed. Each change often involves multiple modifications, usually including real-time algorithm code, front-end code, database configuration, etc. In the different components of these systems, some metadata needs to be strictly consistent to ensure the correct operation of the system. In the existing plasma control system solution, metadata is manually configured and managed by developers, which places high demands on developers. In the manual configuration and management of developers, it is difficult to ensure the consistency of metadata within the system, which is easy to cause data errors in operation and greatly reduces development efficiency. Summary of the invention

[0003] The purpose of the present invention is to provide a data description method for nuclear fusion control algorithm.

[0004] To achieve the above object, the present invention proposes a data description method for a nuclear fusion control algorithm, comprising the following method steps:

[0005] S1. Design the algorithm and all the data required, determine each data and whether there is data that can be used as data set data;

[0006] S2. Find all the corresponding data in the software development platform and fill in the values ​​of the relevant tags;

[0007] S3, generate algorithm XML file through software development platform;

[0008] S4, scan the XML files in S3, generate IDL files from the custom static data therein, and then generate C++ files uniformly;

[0009] S5, generating a user interface through an XML file;

[0010] S6. Generate a storage node according to the pointname in the XML through the MDSPlus database.

[0011] Optionally, all data in S1 are divided into interface data and real-time data, the interface data includes: general waveform, shared waveform, external waveform, static data; the real-time data includes intermediate data and command data.

[0012] Optionally, the waveform data in the interface data has display elements such as description, x-axis and y-axis labels, coordinate axis limits and default vertices, while the static data is customized by the user and has no fixed pattern.

[0013] Optionally, the real-time data includes the name of the produced variable, the name of the variable registered in the real-time framework and the name of the final archive.

[0014] Optionally, the waveform data in the interface data is a continuous or step waveform described by vertices, vertices are set on the interface, the vertices are archived in MySQL, and the real values ​​of real-time calculations are archived in MDSplus.

[0015] Optionally, the data group data in S1 is one or more groups of entries of equal number and a complete definition of data of this type, but the different parts are replaced by TOKEN.

[0016] Optionally, the specific steps of S4 are as follows:

[0017] S41, determine the generated data type according to type, generate the variable name according to varname, and register the variable to the framework data engine according to domain and name;

[0018] S42. After the custom data is generated and IDL is compiled, h and cpp files are generated and introduced into the algorithm file.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] The present invention designs a model to describe the configuration data of the nuclear fusion control algorithm, uses a markup language to represent it in actual application, and is used by the back-end program and front-end interface of the algorithm at the same time, ensuring the consistency of these data in the entire system, reducing errors in development, and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of the steps of the present invention.

[0022] Figure 2 and Figure 3 It is a schematic diagram of the processing flow of data group data equivalence in the present invention.

[0023] Figure 4 It is a schematic diagram of metadata in a general waveform in the present invention.

[0024] Figure 5 It is a schematic diagram of generating an XML file data description in the present invention.

[0025] Figure 6 It is a schematic diagram of the data positioning process in real-time data in the present invention.

[0026] Figure 7 It is a schematic diagram of the data registration process in the real-time data of the present invention. DETAILED DESCRIPTION

[0027] 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.

[0028] According to the requirements of the nuclear fusion control algorithm, the data will be used by three parts of the system, namely, the algorithm real-time calculation, the user graphical interface and the archiving system. In the autonomous plasma control system, these three parts are: the data engine of the autonomous plasma control system framework using C++, the graphical interface based on Python and the MySQL configuration database used by it, and the archiving system based on MDSPlus real-time data. The metadata of the corresponding data can also be mainly divided into three parts: public elements, real-time elements used only by real-time code, and interface elements used only by the interface.

[0029] Control algorithm data can be classified into several types of data by several key attributes according to its use in the algorithm. The first is whether the data is set by the user on the interface. If it is not set by the user, it is intermediate data or final result data used only in the algorithm code. These data do not need to generate corresponding user interfaces, and their metadata does not have interface elements. This type of data is divided into intermediate data and command data according to whether it will be used across algorithms. Usually the final result will be sent to another system algorithm for final processing, so it needs to be marked as cross-process data.

[0030] Most of the data is set by the user on the interface, and they contain all metadata elements. It is also distinguished whether it is used across algorithms. Among the data used across algorithms, there are two types: shared and external, depending on whether editing is allowed. Among them, shared data is a data source, and external data is a reference to a shared data. It is displayed on the user interface for user reference and cannot be edited or modified. In another dimension, local data can also be divided into static data and waveform data. Static data remains unchanged in an experiment, while waveform data changes over time. Static data is divided into user-defined static data and built-in static data. User-defined data is a user-defined structure, which requires an additional IDL compilation process. Built-in static data is provided by the framework, common general static data, such as files, matrices, etc. Waveform data is divided into continuous data that needs to calculate and fill real-time values ​​and discontinuous changes, step waveforms that are only selected in a few specific values, and are generally used to represent switch quantities.

[0031] Due to the characteristics of plasma control algorithms, there is often a group of similar data, called a data group. Such data is similar in name, function and use. Therefore, a data group container is designed to package such data. For example, a group of power supplies ps1 to ps12 is represented as elements that differ only in name and have the same other metadata.

[0032] See also Figure 1-Figure 7 In this embodiment, a data description method for a nuclear fusion control algorithm is provided. The method is implemented in sequence by the following steps:

[0033] Step 1: Design the algorithm and all the data it needs, determine each item of data and whether there is data that can be used as data set data;

[0034] In step 1, the data group data is one or more groups of equal number of entries and a complete definition of this type of data, but the different parts are replaced by TOKEN. When generating the code, the name is brought into TOKEN for replacement and expansion. Multiple groups of entries can be replaced as long as the number is equal.

[0035] In the current plasma control system, the data used are classified as follows:

[0036] 1. Independent Data

[0037] 1.1, General waveform;

[0038] 1.2. Shared waveform;

[0039] 1.3, External waveform;

[0040] 1.4, intermediate variables;

[0041] 1.5. Command variables;

[0042] 2. Composite Data

[0043] 2.1、Time-varying matrix;

[0044] 2.2, PID controller;

[0045] 2.3、Collect data;

[0046] 2.4、Customized data;

[0047] 2.5 Files

[0048] 2.6 Arrays

[0049] 3. Element group;

[0050] The characteristics of the above data are as follows:

[0051] Shared waveform: The main metadata is the same as the general waveform, but it will be shared by other algorithms.

[0052] External waveform: needs to be archived, only displayed on the interface, no vertex editing is allowed, and synchronized to a shared waveform.

[0053] Intermediate variables: local intermediate variables that need to be archived and have no interface.

[0054] File: Static variable, used to save customized text data file name.

[0055] Time-varying matrix: Contains a which waveform (a step-like general waveform) that specifies the matrix number used at different times and a set of general matrix static data.

[0056] PID controller: contains one target waveform (continuous general waveform); 6 PID parameter waveforms (continuous general waveform, gp, gi, gd, tp, td, ti); 4 intermediate variables (v, d, i, p)

[0057] Collection data: A specific set of collection data.

[0058] Custom data: static data defined by the user, which is defined using IDL and generates a description in markup language.

[0059] Array: A group of similar data as a whole, similar to an array.

[0060] Element group: Data used by a group of similar independent data.

[0061] Step 2: Find all the corresponding data in the software development platform and fill in the values ​​of the relevant tags;

[0062] Step 3: Generate algorithm XML file through software development platform;

[0063] Step 4: Scan the XML file in step 3, generate IDL files from the custom static data therein, and then generate C++ files uniformly;

[0064] Step 41, determine the generated data type according to type, generate the variable name according to varname, and register the variable to the framework data engine according to domain and name;

[0065] Step 42, generate h and cpp files after IDL compilation based on custom data, and introduce them into the algorithm file;

[0066] Step 5: Generate an interface based on the XML file through the user interface;

[0067] Step 6: Generate a storage node based on the pointname in the XML through the MDSPlus database.

[0068] All data in step 1 include interface data, namely: general waveform, shared waveform, external waveform and static data; real-time data, namely: intermediate variables and command variables.

[0069] The interface data has a description, labels for the x and y axes, axis limits, and default vertices.

[0070] The real-time data includes the name of the generated variable, the name of the variable registered with the real-time framework and the name of the final archive.

[0071] Generally, waveforms are continuous or step waveforms described by vertices. The vertices are set on the interface, archived in MySQL, and the real values ​​of real-time calculations are archived in MDSplus.

[0072] In summary: a model is designed to describe the configuration data of the nuclear fusion control algorithm, which is expressed in a markup language in actual application. It is also used by the algorithm's back-end program and front-end interface to ensure the uniformity of these data in the entire system, reduce human errors in the fusion algorithm development process, and improve development efficiency.

[0073] 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.

Claims

1. A data description method for a nuclear fusion control algorithm, characterized in that: The method includes the following steps: S1. Design the algorithm and all the data required, determine each data and whether there is data that can be used as data set data; S2. Find all the corresponding data in the software development platform and fill in the values ​​of the relevant tags; S3, generate algorithm XML file through software development platform; S4, scan the XML files in S3, generate IDL files from the custom static data therein, and then generate C++ files uniformly; S5, generating a user interface through an XML file; S6. Generate a storage node in the MDSPlus database according to the pointname in the XML.

2. A data description method for a nuclear fusion control algorithm according to claim 1, characterized in that: All data in S1 are divided into interface data and real-time data. The interface data includes: general waveform, shared waveform, external waveform, static data; the real-time data includes intermediate data and command data.

3. A data description method for a nuclear fusion control algorithm according to claim 2, characterized in that: The waveform data in the interface data has display elements of description, x-axis and y-axis labels, coordinate axis limits and default vertices, and the static data is input by user definition.

4. A data description method for a nuclear fusion control algorithm according to claim 2, characterized in that: The real-time data includes the name of the generated variable, the name of the variable registered in the real-time framework and the name of the final archive.

5. A data description method for a nuclear fusion control algorithm according to claim 2, characterized in that: The waveform data in the interface data is a continuous or step waveform described by vertices. The vertices are set on the interface, the vertices are archived in MySQL, and the real values ​​of real-time calculations are archived in MDSplus.

6. A data description method for a nuclear fusion control algorithm according to claim 1, characterized in that: The data group data in S1 is one or more groups of entries of equal number and a complete definition of data of this type, but the different parts are replaced by TOKEN.

7. A data description method for a nuclear fusion control algorithm according to claim 1, characterized in that: The specific steps of S4 are as follows: S41, determine the generated data type according to type, generate the variable name according to varname, and register the variable to the framework data engine according to domain and name; S42. After the custom data is generated and IDL is compiled, h and cpp files are generated and introduced into the algorithm file.

Citation Information

Patent Citations

  • Storage control method and storage control system for MDSplus

    CN112711589A

  • Software design method based on template self-adaption

    CN114443006A

  • Method for managing fusion experiment configuration parameters

    CN118034764A

  • Real-time data management method for plasma control system

    CN118245478A

  • Using Static Data in a Markup Language

    US20080183736A1