CN112711589A - Storage control method and system for MDSplus - Google Patents

Storage control method and system for MDSplus Download PDF

Info

Publication number
CN112711589A
CN112711589A CN202011602212.9A CN202011602212A CN112711589A CN 112711589 A CN112711589 A CN 112711589A CN 202011602212 A CN202011602212 A CN 202011602212A CN 112711589 A CN112711589 A CN 112711589A
Authority
CN
China
Prior art keywords
data
mdsplus
channel
storage
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011602212.9A
Other languages
Chinese (zh)
Inventor
夏凡
吴豪
李宜轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southwestern Institute of Physics
Original Assignee
Southwestern Institute of Physics
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southwestern Institute of Physics filed Critical Southwestern Institute of Physics
Priority to CN202011602212.9A priority Critical patent/CN112711589A/en
Publication of CN112711589A publication Critical patent/CN112711589A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a storage control method and a system for MDSplus, wherein the method comprises the following steps: acquiring acquisition channel data of different types of data in a nuclear fusion experimental process; step two, taking all channels of different types in the system as tree nodes and synchronizing the tree nodes to the model tree of the MDSplus and the existing gun number tree file; step three, uniformly storing the collected different types of data in the MDSplus database according to the channel storage structure obtained after the synchronous processing in the step two. The invention combines the storage characteristics of the MDSplus, compatibly converts different types of storage data according to different data types and the conditions of the stored database, achieves the aim of uniformly storing the data in the MDSplus data, and is convenient for uniform calling and secondary processing in the system.

Description

Storage control method and system for MDSplus
Technical Field
The invention belongs to the technical field of nuclear fusion, and particularly relates to a storage control method and a storage control system for MDSplus, a computer storage medium and computer equipment for storing and executing the control method.
Background
MDSplus (model Drive System plus) is a model-driven data acquisition System, is jointly developed for nuclear fusion experiments by IGI, MIT and LAN in Italy, and provides a universal and portable software System for nuclear fusion pulse experiments.
Physical storage logic: the experimental data is represented as a tree structure, and the physical storage structure of the experimental data is also suitable for the characteristic. The data are respectively stored in three data files according to different types: tree file,. character file and. data file.
The tree file: contains some header information, a set of node definitions, an index sorted by tag name, a definition of the tag and a list of nodes to which the sub-tree relates. A tree file is typically mapped into memory to speed up the node traversal.
A character file: an NCI record is included for each node in the tree, recording a version of information for each node and the offset address stored in the datafile for the data contained by the node.
Data file: containing the large amount of actual data stored in the node.
And (3) data tree operation:
MDSplus provides two tools to view and manipulate the tree structure, Traverser and TCI.
Traverser displays all information of a shot in an intuitive graphical manner.
Tci (tree Command language) is a Command interpreter that interprets tree operation commands, and completes operations such as adding nodes, tags, and the like through a Command line.
The mdplus API provides some simple calls to implement data access. Routines such as IDL, C, FORTRAN, PHP, PYTHON, MATLAB, etc. are provided on their websites.
After the tree is built and data are stored, if data are accessed remotely through Jscope, an mdsip protocol needs to be installed on a data end, and then paths of the tree are stored in envsys files under usr/local/mdscope/etc catalogs.
However, the data types, databases and communication protocols stored in each subsystem in the nuclear fusion experimental system are different, the data can be inquired only by personnel in the nuclear fusion experimental system, and all the data are not stored uniformly through conversion, so that a data isolated island exists, and uniform calling and secondary processing are not convenient to perform.
Disclosure of Invention
The invention provides a storage control method for MDSplus, which aims to solve the technical problems that different types of data in the existing nuclear fusion experimental system are stored in different databases, so that data islanding exists and unified calling and secondary processing are inconvenient to carry out.
The invention is realized by the following technical scheme:
the invention discloses a storage control method for MDSplus, which comprises the following steps:
acquiring channel data of different types of data in a nuclear fusion experimental process;
step two, taking all channels of different types in the system as tree nodes and synchronizing the tree nodes to the model tree of the MDSplus and the existing gun number tree file;
step three, uniformly storing the collected different types of data in the MDSplus database according to the channel storage structure obtained after the synchronous processing in the step two.
Preferably, the synchronization processing process of the present invention specifically comprises:
acquiring a data storage structure, wherein the data storage structure consists of a channel name, an MDSplus storage name and a tag; the channel name is used for reading and writing channel data, the MDSplus storage name is a number node name in an MDSplus database, and tag is used for being matched with an upstream channel data acquisition record;
and converting the channel data of different types of data into data with the same structure by adopting the data storage structure to obtain the channel storage structures of different types of data.
Preferably, the channel name of the invention comprises a logic unit, and the logic unit has no more than 12 characters;
the MDSplus storage name is in the same format as the channel name.
Preferably, the channel name of the present invention includes at least two logic units, each logic unit has no more than 12 characters, and the logic units are connected by a hyphen "-".
Preferably, the mdplus storage name format of the present invention is the same as the conversion from "-" to "_" of the hyphen in the channel name format.
Preferably, the channel name and the MDSplus storage name of the present invention both use a separator ": "split into two parts, separator": "preceding subsystem prefix, delimiter": "later is a specific name.
Preferably, the data types obtained in the first step of the present invention include a configuration parameter channel, an experimental data curve channel and a data acquisition channel.
On the other hand, the invention also provides a storage control system for the MDSplus, and the system comprises a storage conversion module;
the storage conversion module is used for acquiring the data of the acquisition channels of different types of data in the nuclear fusion experimental process, synchronizing all channels of different types in the system as tree nodes to a model tree of the MDSplus and an existing gun number tree file, and uniformly storing the acquired data of different types in the MDSplus database according to a channel storage structure obtained after synchronization processing.
The invention also proposes a computer device comprising a memory and a processor, said memory storing a computer program, said processor implementing the steps of the method of the invention when executing said computer program.
The invention also proposes a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to the invention.
The invention has the following advantages and beneficial effects:
according to the storage control method for the MDSplus, disclosed by the invention, the channel formats with the same structure are obtained by carrying out unified treatment on the acquisition channels of different types of storage data, and an interface for reading and writing data is provided, so that the different types of data acquired by each subsystem of a nuclear fusion experiment can be stored in an MSDPlus database in a unified manner, and the centralized management and query of the experiment data are facilitated.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a schematic flow chart of the method of the present invention.
FIG. 2 is a flow chart of a data conversion method according to the present invention.
FIG. 3 is a schematic diagram of a computer device according to the present invention.
Fig. 4 is a schematic block diagram of the system architecture of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.
Example 1
Compared with the technical problems that in the existing nuclear fusion experiment process, different types of data are collected and stored in different storage databases, and data islands exist, so that query and management are inconvenient, the embodiment provides the storage control method for the MDSplus. The method of the embodiment performs unified conversion on different types of data channels, provides an interface for data reading and writing, and can store different types of data acquired by each subsystem into the MDSplus database in a unified manner so as to perform unified calling and secondary processing in the system.
Specifically, as shown in fig. 1, the method of this embodiment includes the following steps:
the method comprises the following steps of firstly, acquiring channel data of different types of data in the nuclear fusion experimental process.
In the nuclear fusion experimental process, the states of various semaphore in the nuclear fusion experimental process need to be collected and monitored, and signals mainly involved in the nuclear fusion experimental process comprise relevant signals such as experimental parameter configuration, experimental data curves and collected data.
And step two, taking all channels of different types in the nuclear fusion experimental system as tree nodes and synchronizing the tree nodes to the model tree of the MDSplus and the existing gun number tree file.
The data types of various semaphore in the nuclear fusion experimental process are different, and the data to be stored are in various different databases, namely the data in the nuclear fusion experimental process are not uniformly stored, so that the unified management and query are not convenient. Therefore, in order to uniformly enter related data in an experimental process, the embodiment converts channel data of different types of collected data through a uniform data storage structure, obtains a channel storage structure with the same structure, and provides a data read-write interface, so that different types of data collected by each subsystem are stored in the mdplus database in a uniform manner, as shown in fig. 2.
The data storage structure adopted by the embodiment is composed of a channel name, an MDSplus storage name and a tag; the channel name is used for reading and writing channel data, the MDSplus storage name is the name of a number node in an MDSplus database, and the tag is used for being matched with an upstream channel data acquisition record. In this embodiment, the acquisition data corresponding to the upstream channel data (channel data of each subsystem) can be obtained through the tag value, that is, an interface for data reading and writing is provided.
The reason why the channel name and the mdplus storage name are set in this embodiment is that the mdplus database has a limitation on the name of the storage node: 1. the node name does not exceed 12 characters, and the 2-node name cannot contain "-". In actual use, the name node can exceed 12 characters, and the name meaning is not easy to understand if the name node is abbreviated. The channel name is connected with each logic part by using "-", and MDSplus needs to be replaced by "_".
That is, in the present embodiment, the channel name includes at least one logical unit, each logical unit does not exceed 12 characters, and the mdplus storage name has the same format as the channel name. If more than two logic units exist, all the logic units are connected through the hyphen "-", the MDSplus storage name format is converted into the same as the hyphen "-" in the channel name format.
The channel name and the mdplus storage name of this embodiment both use separators ": "split into two parts, separator": "preceding subsystem prefix, delimiter": "later is a specific name.
In the embodiment, 3 types of data are stored by using an mdsflus, 1 is an acquisition channel, 2 is a preset curve channel, and 3 is a parameter configuration channel. The prefix of the acquisition channel is as follows: "subsystem identifier", the prefix of the preset curve channel is: "subsystem identifier-VEC", the prefix of the parameter configuration channel is: "subsystem identifier-CFG".
The embodiment can also perform dynamic maintenance on the data storage structure, specifically: because the MDSplus database is a cannon number and is read and written based on the stored node name, the existing node can be read and written. And each subsystem can not be on line at one time, and each system can be on line in batches. In the using process, the requirements of adding and renaming channels are met. The newly added channel should be newly added on the stored gun number file and the model gun number file at the same time so as to be beneficial to the storage of the data again, and the renamed channel also needs to rename the stored gun number file and the model gun number file so as to be convenient for correctly reading the channel data after renaming.
And step three, uniformly storing the acquired data of different types in an MDSplus database according to a channel storage structure obtained after synchronous processing.
As shown in fig. 3, the computer device includes a processor, a memory, and a system bus; various device components including a memory and a processor are connected to the system bus. A processor is hardware used to execute computer program instructions through basic arithmetic and logical operations in a computer system. Memory is a physical device used for temporarily or permanently storing computing programs or data (e.g., program state information). The system bus may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus. The processor and the memory may be in data communication via a system bus. Including read-only memory (ROM) or flash memory (not shown), and Random Access Memory (RAM), which typically refers to main memory loaded with an operating system and computer programs.
Computer devices typically include a storage device. The storage device may be selected from a variety of computer readable media, which refers to any available media that can be accessed by a computer device, including both removable and non-removable media. For example, computer-readable media includes, but is not limited to, flash memory (micro SD cards), CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer device.
A computer device may be logically connected in a network environment to one or more network terminals. The network terminal may be a personal computer, a server, a router, a smart phone, a tablet, or other common network node. The computer apparatus is connected to the network terminal through a network interface (local area network LAN interface). A Local Area Network (LAN) refers to a computer network formed by interconnecting within a limited area, such as a home, a school, a computer lab, or an office building using a network medium. WiFi and twisted pair wiring ethernet are the two most commonly used technologies to build local area networks.
It should be noted that other computer systems including more or less subsystems than computer devices can also be suitable for use with the invention.
As described in detail above, the computer device adapted to the present embodiment can perform the designated operations of the storage control method for the mdplus database. The computer device performs these operations in the form of software instructions executed by a processor in a computer-readable medium. These software instructions may be read into memory from a storage device or from another device via a local area network interface. The software instructions stored in the memory cause the processor to perform the method of processing group membership information described above. Furthermore, the present invention can be implemented by hardware circuits or by a combination of hardware circuits and software instructions. Thus, implementation of the present embodiments is not limited to any specific combination of hardware circuitry and software.
Example 2
Based on the foregoing embodiment 1, this embodiment further provides a storage control system for MDSplus. Specifically, as shown in fig. 4, the system of the present embodiment includes a storage conversion module.
The storage conversion module of the embodiment is used for acquiring channel data of different types of data in a nuclear fusion experimental process (including experimental parameter channels of each subsystem, experimental data curve channels of each subsystem and data acquisition channels of each subsystem in a nuclear fusion experimental system), synchronizing all channels of different types in the nuclear fusion experimental system as tree nodes to a model tree of the MDSplus and a pre-existing gun number tree file, and uniformly storing the acquired different types of data in an MDSplus database according to a channel storage structure obtained after synchronization processing.
The synchronization process in this embodiment is the same as that in embodiment 1, and is not described again here.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A storage control method for MDSplus, the method comprising the steps of:
acquiring channel data of different types of data in a nuclear fusion experimental process;
step two, taking all channels of different types in the system as tree nodes and synchronizing the tree nodes to the model tree of the MDSplus and the existing gun number tree file;
step three, according to the channel storage structure obtained after the synchronous processing in the step two, different types of data are uniformly stored in the MDSplus database.
2. The storage control method for the mdplus according to claim 1, wherein the synchronization processing procedure specifically is:
acquiring a data storage structure, wherein the data storage structure consists of a channel name, an MDSplus storage name and a tag; the channel name is used for reading and writing channel data, the MDSplus storage name is a number node name in an MDSplus database, and tag is used for being matched with an upstream channel data acquisition record;
and converting the channel data of different types of data into data with the same structure by adopting the data storage structure to obtain the channel storage structures of different types of data.
3. The storage control method for mdplus according to claim 2, wherein the channel name includes one logical unit, and the logical unit has no more than 12 characters;
the MDSplus storage name is in the same format as the channel name.
4. The storage control method for mdplus according to claim 2, wherein the channel name comprises at least two logical units, each logical unit has no more than 12 characters, and the logical units are connected by a hyphen "-".
5. The storage control method for the MDSplus of claim 4, wherein the MDSplus storage name format is converted into "_" same as the hyphen "-" in the channel name format.
6. The storage control method for the MDSplus of any one of claims 2-5, wherein the channel name and the MDSplus storage name both adopt a separator ": "split into two parts, separator": "preceding subsystem prefix, delimiter": "later is a specific name.
7. The storage control method for the MDSplus of any one of claims 2-5, wherein the data acquired in the first step comprises a parameter configuration channel, an experimental data curve channel and a data acquisition channel.
8. A storage control system for MDSplus, the system comprising a storage translation module;
the storage conversion module is used for collecting channel data of different types of data in the nuclear fusion experiment process, synchronizing all channels of different types in the system as tree nodes to a model tree of the MDSplus and an existing gun number tree file, and uniformly storing the collected different types of data in an MDSplus database according to a channel storage structure obtained after synchronization processing.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202011602212.9A 2020-12-29 2020-12-29 Storage control method and system for MDSplus Pending CN112711589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011602212.9A CN112711589A (en) 2020-12-29 2020-12-29 Storage control method and system for MDSplus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011602212.9A CN112711589A (en) 2020-12-29 2020-12-29 Storage control method and system for MDSplus

Publications (1)

Publication Number Publication Date
CN112711589A true CN112711589A (en) 2021-04-27

Family

ID=75546855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011602212.9A Pending CN112711589A (en) 2020-12-29 2020-12-29 Storage control method and system for MDSplus

Country Status (1)

Country Link
CN (1) CN112711589A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253480A (en) * 2021-12-21 2022-03-29 北京云迹科技股份有限公司 Data storage method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150058363A1 (en) * 2013-08-21 2015-02-26 Robert Lancer Cloud-based enterprise content management system
CN108802650A (en) * 2018-07-17 2018-11-13 中国科学院合肥物质科学研究院 The real-time detection system and method for tearing mode magnetic island position in a kind of plasma
CN109194704A (en) * 2018-07-06 2019-01-11 广东省智能制造研究所 A kind of end B/S three-dimensional modeling data storage method, device and storage medium
CN112083986A (en) * 2020-07-24 2020-12-15 咪咕文化科技有限公司 Remote assistance method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150058363A1 (en) * 2013-08-21 2015-02-26 Robert Lancer Cloud-based enterprise content management system
CN109194704A (en) * 2018-07-06 2019-01-11 广东省智能制造研究所 A kind of end B/S three-dimensional modeling data storage method, device and storage medium
CN108802650A (en) * 2018-07-17 2018-11-13 中国科学院合肥物质科学研究院 The real-time detection system and method for tearing mode magnetic island position in a kind of plasma
CN112083986A (en) * 2020-07-24 2020-12-15 咪咕文化科技有限公司 Remote assistance method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
杨振汉等: "基于MDSplus的NBI数据采集***", 《计算机***应用》 *
沈湘等: "EAST现场高速数据采集子***", 《计算机工程》 *
魏沛杰等: "HT-7分布式数据采集控制***", 《计算机工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114253480A (en) * 2021-12-21 2022-03-29 北京云迹科技股份有限公司 Data storage method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108052681B (en) Method and system for synchronizing structured data between relational databases
CN102439818B (en) Method and device for auto-generating goose signal connection topology from substation level
EP0466626A2 (en) Method for document type transformation in a data processing system
US9749072B2 (en) End point parameterization management of generic devices
KR20220097956A (en) Method and apparatus for managing IOT devices, and server and storage medium thereof
CN101632076A (en) Realtime unification management information data conversion and monitoring apparatus and method for thereof
CN109213820A (en) Method for realizing fusion use of multiple types of databases
WO2014073941A1 (en) Apparatus and method for converting electronic form
CN110795418A (en) Json-based data extraction method from mongoDB to mysql
CN109150854A (en) Dynamic and configurable communication protocol converting system based on XML file
CN105468793B (en) A kind of automatic management method of simulation model data
CN101815012B (en) Method and device for acquiring performance data
CN112711589A (en) Storage control method and system for MDSplus
CN109274742A (en) A kind of internet of things data acquisition and supervisor control
CN110390082A (en) A kind of communication matrix control methods and system
CN103441988B (en) Across GIS platform data migration method
CN106302485B (en) The bi-directional conversion system of OPC standard and power remote agreement
CN114928587B (en) AIoT equipment multiplexing modeling method based on cloud edge cooperative system
CN107133040A (en) A kind of standardized product service apparatus and business module extend method of replacing
CN109271350B (en) Database and information point table automatic comparison and synchronization method based on telecontrol communication
CN111078483A (en) Communication protocol state conversion sequence generation method
CN110209722A (en) A kind of data-interface for data exchange
CN103220224B (en) The processing method of message repeating and device and the network equipment
CN104735097A (en) Information collecting method and system
CN112650797A (en) Isomerous DBMS data exchange method and system applying same

Legal Events

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210427