CN116933566B - Data recording, data playback and data analysis method based on simulation system - Google Patents

Data recording, data playback and data analysis method based on simulation system Download PDF

Info

Publication number
CN116933566B
CN116933566B CN202311187266.7A CN202311187266A CN116933566B CN 116933566 B CN116933566 B CN 116933566B CN 202311187266 A CN202311187266 A CN 202311187266A CN 116933566 B CN116933566 B CN 116933566B
Authority
CN
China
Prior art keywords
data
simulation
playback
scene
recording
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.)
Active
Application number
CN202311187266.7A
Other languages
Chinese (zh)
Other versions
CN116933566A (en
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.)
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp Ltd
Original Assignee
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp Ltd
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 Research Institute of Nuclear Power Operation, China Nuclear Power Operation Technology Corp Ltd filed Critical Research Institute of Nuclear Power Operation
Priority to CN202311187266.7A priority Critical patent/CN116933566B/en
Publication of CN116933566A publication Critical patent/CN116933566A/en
Application granted granted Critical
Publication of CN116933566B publication Critical patent/CN116933566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • 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/23Updating
    • 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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B9/00Simulators for teaching or training purposes
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H15/00ICT specially adapted for medical reports, e.g. generation or transmission thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Public Health (AREA)
  • Geometry (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The simulation system comprises a coach station and a simulation simulator, wherein the coach station is used for generating control instructions for starting recording, saving scenes, stopping recording, starting playback, pausing playback and stopping playback, and the simulation simulator is provided with a simulation data service module, a first database and a second database; a recorded data point list and a scene list are arranged in the first database, the recorded data point list is used for storing entry information of the designated data points of the corresponding nuclear power equipment, and the scene list is used for storing scene information; the second database is used for storing data values of corresponding data points in the simulation running process; the simulation data service module is used for analyzing a first type of control instruction sent by the coach station and executing corresponding logic; the method can record the operation data in the simulation process and play back and analyze the data based on the recorded data.

Description

Data recording, data playback and data analysis method based on simulation system
Technical Field
The invention belongs to the technical field of nuclear power, and particularly relates to a data recording, data playback and data analysis method based on a simulation system.
Background
The nuclear facility simulation system is mainly used for training nuclear facility operators, the existing nuclear facility simulation system has a replay function, namely, the state of the simulation system at a certain previous moment in the running process can be reset, the simulation models of the simulation system are recalled from the moment to carry out recirculation calculation, and the same intervention is carried out from the input of a disk table or a coach station at the same simulation time point, so that the same operation result of a logic program of the simulation system is ensured.
In addition to training operators, in recent years, nuclear facility simulation systems have also been used for design optimization and verification, and technical improvement verification. However, in the simulation process, the conventional nuclear facility simulation system cannot synchronously store process data, if design optimization and verification are performed through the replay function of the nuclear facility simulation system, the calculated amount of the nuclear facility simulation system is large and limited by hardware performance, and the transient process cannot be wholly and quickly performed, so that the replay process needs a time equivalent to the real process, and the operations of copying, displaying and analyzing cannot be performed by selecting a scene at any time, so that the design optimization and verification and technical transformation verification are very inconvenient when the nuclear facility simulation system is used.
Disclosure of Invention
The invention aims to provide a data recording, data playback and data analysis method based on a simulation system, which can save each scene and record parameter values at each moment in the simulation process of the simulation system so as to record, play back and analyze data, thereby realizing scene playback, display and analysis at any moment.
In order to achieve the above object, the present invention provides a method for data recording, data playback and data analysis based on a simulation system: the simulation system comprises a coach station and a simulation simulator in communication connection with the coach station, wherein: the coach station is used for generating a first type of control instruction, wherein the first type of control instruction comprises the steps of starting recording, saving a scene, stopping recording, starting playback, pausing playback and stopping playback; the simulation simulator is provided with a simulation data service module, and a first database and a second database which are in communication connection with the simulation data service module; the simulation data service module is used for analyzing a first type of control instruction sent by the coach station and executing business logic; a recorded data point list and a scene list are arranged in the first database, the recorded data point list is used for storing entry information corresponding to data points specified by the nuclear power equipment, and the scene list is used for storing scene information; the second database is used for storing data values of specified data points in the simulation running process;
the data record comprises the steps of:
when the simulation simulator is in an operating state, after receiving a recording starting instruction, the simulation data service module acquires a recording data point list of corresponding nuclear power equipment from the first database, reads real-time values of all data points in the recording data point list from a real-time shared memory of the simulation simulator according to a preset configuration frequency and stores the real-time values into a second database until the simulation data service module finishes data recording after receiving the recording stopping instruction; in the data recording process, if the simulation data service module receives a scene saving instruction, new scene information is generated in a scene list of the first database corresponding to the scene saving instruction;
the data playback includes the steps of:
when the simulation simulator is in a frozen state, after receiving a playback scene instruction, the simulation data service module acquires corresponding scene information from the scene list, acquires corresponding historical data from the second database according to the default frequency acquired at the time and the scene information, and writes the corresponding historical data into a real-time shared memory, and each simulation system of the simulation simulator refreshes a picture according to the historical data written into the real-time shared memory;
the data analysis includes the steps of:
and (3) data export: the simulation data service module acquires corresponding scene information from the scene list after receiving a scene export instruction, acquires corresponding historical data from the second database according to the scene information and exports the historical data to form a simulation system file;
data comparison: analyzing the simulation system file and the real data file of the same time period and forming an analysis report.
Preferably, the data points respectively comprise a point variable name, a point description and mark information, wherein the point description is used for marking equipment attributes corresponding to the data points, and the mark information comprises marks of whether the data points appear in a point list at a coach station or not and marks of whether the data points support file derivation or not; the scene information comprises scene time, scene name and node description.
Preferably, the first type of control instruction further includes a playback progress dragging instruction, after the simulation data service module receives the playback progress dragging instruction, the simulation data service module analyzes the playback progress dragging instruction to obtain a current position time point as a new data acquisition starting point, reads historical data from the second database according to the new data acquisition starting point, writes the historical data into the real-time shared memory, and each simulation system refreshes a picture according to the historical data until reaching a scene time end point, and ends the playback.
Preferably, the first type of control instruction further includes a playback speed setting instruction, after the simulation data service module receives the playback speed setting instruction, after confirming the multiplying power time according to the newly received playback speed parameter, historical data is obtained from the second database according to the multiplying power time interval, and the historical data is written into the real-time shared memory, and each simulation system refreshes the picture according to the historical data.
Preferably, the first type of control instruction further includes a playback suspension instruction, and after the simulation data service module receives the playback suspension instruction, the simulation data service module suspends obtaining historical data from the second database and writing the historical data into the real-time shared memory.
Preferably, the first type of control instruction further includes a scene deleting instruction, and after the simulation simulator receives the scene deleting instruction, the first database responds to the instruction to delete the corresponding scene information from the scene list.
Preferably, different commands and parameter information are transmitted between the trainer station and the simulation data service module through preset control words.
Preferably, the data analysis includes trend comparison and/or abnormal data period statistical analysis;
the trend contrast analysis includes: after the variables to be compared and analyzed are obtained, two groups of variable curves are respectively generated according to the data of the corresponding variables in the simulation system file and the real data file, so that the trend of the parameter curve of the same variable in the same operation scene is compared;
the anomaly data time period statistical analysis comprises the following steps: and counting the data points at the moment when the point value in the real data file exceeds the minimum value or the maximum value, and outputting the data points.
Further, the trend comparison further includes performing a bias analysis when the parameter curves of the same variable are in the same trend, the bias analysis including: if the parameter curves of the same variable are in the same trend, calibrating and comparing all data points according to the minimum value and the maximum value, and counting and outputting the data points with deviation exceeding the set range.
Preferably, the data analysis further includes a step of time point alignment, if the starting times of the parameter points of the simulation system file and the real data file are inconsistent, calculating a time shift length between the two, and aligning the curve starting times according to the time shift length.
According to the data recording, data playback and data analysis method based on the simulation system, a control window IS added on a coach station and a simulation simulator respectively, so that a teacher can send out first-class control commands for data playback, recording and analysis and the like, a simulation data service module, a first database and a second database are additionally arranged on the simulation simulator, the simulation simulator stores configuration information of data through the first database, data values recorded in the running process are stored through the second database so as to set data configuration and storage modes, meanwhile, an interface control protocol IS designed, the simulation data service module can analyze first-class control commands sent out by the coach station (IS) according to the protocol, service logic IS executed, and accordingly various scenes can be stored and parameter values at various moments can be recorded in the simulation process, and the scene can be selected, displayed and analyzed at any moment.
Drawings
FIG. 1 is a schematic diagram of a simulation system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating the overall steps of a method for data recording, data playback and data analysis in a base simulation system according to an embodiment 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 will be further described in detail with reference to the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
As shown in fig. 1, the invention discloses a data recording, data playback and data analysis method of a base simulation system: the nuclear facility simulation system comprises a coach station and a simulation simulator in communication connection with the coach station, wherein: the coach station is used for generating a first type of control instruction, wherein the first type of control instruction comprises the steps of starting recording, saving a scene, stopping recording, starting playback, pausing playback and stopping playback; the simulation simulator is provided with a simulation data service module, and a first database and a second database which are in communication connection with the simulation data service module; the simulation data service module is used for analyzing a first type of control instruction sent by the coach station according to a preset protocol and executing business logic; the method comprises the steps that a point configuration file is pre-stored in a first database and used for storing configuration information of data, the configuration information comprises a recorded data point list and a scene list, the recorded data point is used for storing entry information of a designated data point of corresponding nuclear power equipment, and the scene list is used for storing scene information; the second database is used for storing data values of corresponding data points in the simulation running process, and in this embodiment, the first database may be a MYSQL database, and the second database may be a time sequence database INFLUXDB;
the data recording comprises the steps of:
when the simulation simulator is in an operating state, after receiving a recording starting instruction, the simulation data service module acquires real-time values of all data points in a recording data point list from a real-time shared memory of the simulation simulator according to a preset configuration frequency, and stores the real-time values into a second database until the simulation data service module receives the recording stopping instruction and then finishes data recording; meanwhile, in the data recording process, if the simulation data service module receives a scene saving instruction, generating a new scene sub-node in the scene list for storing the scene information;
the data playback includes the steps of:
when the simulation simulator is in a frozen state, after receiving a playback scene instruction, the simulation data service module acquires corresponding scene information from the scene list, acquires corresponding historical data from the second database according to default frequency and current scene information sent by the coach station and writes the corresponding historical data into the real-time shared memory, and the simulation system HMII refreshes a picture according to the historical data;
the data analysis includes the steps of:
and (3) data export: after receiving the scene export instruction, the simulation data service module finds out the appointed scene information from the scene list, reads the corresponding historical data from the second database according to the current scene information and exports the historical data to form a simulation system file;
data comparison: uploading the simulation system file and the real data file to a data analysis tool for data analysis and forming an analysis report.
The invention discloses a data recording, data playback and data analysis method of a basic simulation system, which IS characterized in that a control window IS added on a coach station and a simulation simulator by respectively improving the coach station, so that a instructor can send out a first type of control command for data playback, recording and analysis, a simulation data service module, a first database and a second database are additionally arranged on the simulation simulator, the simulation simulator stores configuration information of data through a MYSQL database, and the data values recorded in the running process are stored through a time sequence database INFLUXDB so as to set data configuration and storage modes, and meanwhile, an interface control protocol IS designed, so that the simulation data service module can analyze the first type of control command sent by the coach station (IS) according to the protocol to execute business logic, thereby being capable of storing various scenes and recording parameter values at various moments in the simulation process, so as to realize scene multiple disc selection, display and analysis at any moment.
The invention discloses a data recording, data playback and data analysis method based on a nuclear facility simulation system, which comprises the following steps of:
firstly, performing recording parameter configuration on a data recording point list (record_points) of a MYSQL database, namely adding the data recording point list (record_points) into the MYSQL database, and storing variable names, descriptions and mark information of data recording points to be recorded, wherein the mark information comprises whether the points appear in a point list of a coach station (IS) or not and whether file export IS supported or not; adding a scene list, and storing scene information, including scene time, names and descriptions; correspondingly, a control window is newly added on the coach station and is used for data recording and man-machine interaction control playback. The coach station adds a control window for user interaction control, which comprises the steps of recording, saving scenes, deleting scenes, exporting scene data, stopping recording, starting playback, pausing playback, stopping playback, setting playback progress and setting playback speed.
Considering the numerous data points involved in the simulation, if all the data points are stored in the simulation process, the calculated amount and the storage amount are huge for subsequent playback or analysis, and the data points do not need to be excessively concerned relatively, so in this embodiment, according to the different nuclear power equipment to be simulated, the data points needed to be stored are selected to be used as data record points in the MYSQL database to form a data record point list, for example, the number of points IS limited to 5000, and each data record point comprises a point variable name, description and mark information, wherein the mark information comprises whether the points appear in a coach station (IS) point list or not and whether file export IS supported or not; meanwhile, the data volume stored in one data record is relatively large, so that the data is convenient to position in data playback, a scene list is also arranged, and the scene list stores scene information, including scene time, names and descriptions. In this way, the scene is used as a label, and the stored data in the time sequence database is further divided, so that an operator can quickly find the data to be played through the scene information when the data is played back;
meanwhile, in order to achieve efficient transmission of commands between the trainer station (IS) and the simulation data service module, as a preferred scheme, in this embodiment, different commands and parameter information are transmitted between the trainer station and the simulation data service module via preset control words. The method provides for a set of trainer stations (IS) and simulation data service module control words for communicating the different control commands and parameter information.
The control word protocol is designed as follows:
1. recording is started
The control word format is specifically as follows:
qrrecord#reqkey:xxx;type:x;des:xx;id:xxx;tablename:xxx;
reqkey return message channel
type 0: creation table 1 creates a record point
des Description of the invention
id Recording point number
tablename Record the name of the list
2. Playback is started:
the specific format of the control word is as follows:
qrstart#reqkey:xxx;tablename:xxx ;starttime:xxx;endtime:xxx;
reqkey return message channel
tablename Record the name of the list
starttime Start time
endtime End time
3. And starting running state control in the playback process, wherein the running state control comprises the steps of stopping playback and stopping playback, and the control word format is as follows:
qrsetstatus#reqkey:xxx; status:xxx;
reqkey return message channel
status 0. Pause 1 and continue 2 stop
4. When the playback progress is dragged and the data is played back, resetting the current time and continuing from the reset time when the play time axis is pulled, wherein the specific format of the control word is as follows:
qrreset#reqkey:xxx; curtime:xxx;
reqkey return message channel
curtime Time to pre-reset
5. Playback speed setting, control word specific format is as follows:
qrsetspeed#reqkey:xxx; speed:xxx;
reqkey return message channel
speed Rate 1-20
6. Parameter updating: recording all playback parameters, and updating in real time after command execution and in the playback process, wherein the specific parameters are as follows:
parameters (parameters) Description of the invention
starttime Start time
endtime End time
curtime Current time of
tablename Influx data table name
status 0: unrevealed 1: record 2: run 3: pause 4: ending
7. Deleting a scene
The specific format of the control word is as follows:
qrdel#reqkey:xxx;id:xxx;tablename:xxx;
reqkey return message channel
id Recording point number
tablename Record the name of the list
8. Deriving scene data:
the specific format of the control word is as follows:
qrexport#reqkey:xxx;tablename:xxx;
reqkey return message channel
tablename Record the name of the list
As shown in fig. 2, after the preset operations are set, loading the simulation simulator and IS, including starting each simulation system HMI and a simulation system data service module in the simulation simulator. After the IS and the simulation machine are started, a reset and operation command IS sequentially sent out in the IS, and the simulation machine starts to operate from a selected working condition.
(1) Data recording
In this embodiment, only when the simulation simulator IS in an operating state, an instruction for starting recording may be sent to the simulation simulator through a control window of the trainer station, and the IS control window starts the starting recording including the following operations: and adding the record item in the IS list, hiding the history record information, and adding an initial scene node under the record item, wherein the playback function related buttons are not available at the moment, and displaying a data record in a state pane of the simulation simulator.
When the simulation simulator IS in an operating state, each simulation system HMI and a corresponding simulation logic scheduling service response instruction carry out data simulation, at the moment, after a simulation data service module receives a start record command sent by an IS, a data point to be recorded at this time IS obtained from a record data point list (record_points) of a MYSQL database, a simulation system data obtaining API IS automatically called according to configuration frequency, real-time values of the record_points data point are obtained from a real-time shared memory and stored into a time sequence database INFLUXDB, wherein the configuration frequency IS preset in a starting configuration file of the simulation data service module.
In the process of data recording, if a user judges that certain scenes are needed to be particularly focused or studied with great importance, the user can also send out instructions for saving the scenes from the coach station so as to add corresponding labels to the current data recording according to actual requirements,
during data recording, the simulation data service module samples and stores all data point values in the recorded data point list according to the instruction, and although the data points are screened relative to the actual measuring points, the data quantity stored after each recording is relatively large, so in the embodiment, the scene is synchronously saved in the process of data recording, and in the subsequent data playback, a user can quickly find the data to be played back from the data recording according to the scene information. In addition, the node description may be modified in the IS control window to further facilitate locating at playback.
The scene preservation method specifically comprises the following steps: when the user IS in the data recording process, sending a scene saving command at the IS control window, adding a new scene child node under a record item displayed in the IS control window, displaying action triggering time in node information, and correspondingly generating scene information in a scene list of the MYSQL database; if the user sends out a plurality of scene saving commands in the IS control window in the data recording process, the scene list correspondingly generates a plurality of scene information;
when a user clicks a stop button in an IS control window, a stop record command IS correspondingly generated, at the moment, the simulation data service module stops data reading and storing of data points, all historical record information in a record item list of the IS control window appears, and a playback button IS started to be available for scene playback selection.
In this embodiment, the data record further includes an operation of deleting a scene, and the corresponding first type of control instruction further includes a scene deleting instruction, when the user determines that a certain scene IS less important or has repetition with other scenes, the user may select the scene in the IS control window, click to delete to generate the scene deleting instruction, and then delete the corresponding scene information from the table in the scene list of the MYSQL database, and the IS control window IS not displaying the scene.
(2) Data playback
The data recording operation can complete the process of one time of data recording, after the data recording IS completed, the first-level node of the list displays the recorded item information (data points) in the control window of the IS, and the second-level node displays the scene list stored in the current record. At this time, if data playback IS required, interaction between the IS and the simulation simulator IS required first, so that the simulation simulator enters a frozen state.
When the simulation simulator IS in a frozen state, a user can click a start button in a playback column in a control window of an IS to generate a start playback command, after receiving a start playback command sent by the IS, a simulation data service module analyzes a corresponding control word, obtains a start point and an end point of the current playback time, reads historical data from INFLUXDB according to a default frequency, writes the historical data into a real-time shared memory, and a simulation system HMI reads the historical data from INFLUXDB and writes the historical data into the real-time shared memory, so that the simulation system HMI refreshes a picture according to a historical record to play data, wherein the default frequency can be set in the IS control window according to user requirements.
Besides the data playback of all the recording points, the user can select a certain stored scene to perform data playback, at this time, the simulation data service module interacts with the MYSQL database, acquires the corresponding scene information in the scene list, reads the historical data from the INFLUXDB according to the default frequency and writes the historical data into the real-time shared memory according to the scene time, the name and the description information stored in the scene information, so that the simulation system HMI reads the corresponding historical data from the INFLUXDB and writes the corresponding historical data into the real-time shared memory, and the simulation system HMI refreshes the picture according to the historical record.
Preferably, in the process of playing back the data, the operation of playing back the progress drag IS further included, and the corresponding first type control instruction further includes a playback progress drag instruction, in this embodiment, in the process of playing back the data, the user may perform the drag operation of the playback progress bar through the IS control window to generate the playback progress drag instruction, after the simulation data service module receives the playback progress drag instruction, the simulation data service module obtains the current position time point as a new data obtaining starting point, reads the historical data from the INFLUXDB according to the new data obtaining starting point until reaching the scene time end point, and ends the playback.
Preferably, the data playback further includes an operation of setting a playback speed, and the first type of control instruction further includes a playback speed setting instruction, and the user can modify the default frequency in the process of data playback in addition to setting the default frequency in the generation of the start playback command, and after the user modifies the default frequency to generate the instruction of setting the playback speed, the simulation data service module obtains data from the INFLUXDB according to the newly received playback speed parameter at a multiplying power time interval, so that a fast forward effect of fast playback of the historical data is seen on a flowchart of the simulation system HMI.
Preferably, the data playback further includes an operation of suspending playback, and the corresponding first type of control instruction further includes a playback suspension instruction, when the simulation data service module receives the playback suspension instruction during the data playback, the simulation data service module stops the operations of acquiring data from the time sequence database and writing into the shared memory.
Specifically, after the IS control window issues a playback start command, the "pause" and "stop" buttons in the control window are available, and the list only presents the record and sub-scene nodes to which the scene belongs, and the simulator status pane displays "data playback". The simulator status pane "data disappear". In addition, when the playback start instruction is sent, the rate frequency of the playback can be input in the control window, for example, the playing rate is set to be 5 times, so that fast forward playing can be performed according to the speed required by the user. After receiving a playback command sent by the IS, the simulation data service module acquires data from the INFLUXDB according to the multiplying power time interval, so that the fast forward effect of fast playback of the historical data IS seen on the flow chart of the simulation system HMI, and 20 times fast forward IS supported at maximum.
Meanwhile, in the data playback process, if the progress bar is dragged in the right lower corner of the control window, the simulator time can be seen to jump to the dragging point, at this time, the simulation data service module acquires the current position time point, changes the data acquisition starting point, and reads the historical data from the INFLUXDB. The simulator time displayed by the simulator IS starts from the recording start point, IS refreshed, and IS played back until the scene time point.
(3) Data analysis
After the steps are performed, data can be derived for data analysis and comparison. In this embodiment, after the simulation process is finished, the simulation system and the trainer station are unloaded, and then data analysis and comparison are performed offline, which specifically includes:
and (3) data export: when the simulation data service module receives the scene export instruction, reading historical data from the INFLUXDB according to the appointed initial and termination time of the current scene and exporting the historical data to form a simulation system file;
data comparison: uploading the simulation system file and the real data file to a data analysis tool for data analysis and forming an analysis report.
Preferably, the data analysis includes trend contrast and anomaly data period statistical analysis, the trend contrast analysis including: after the variables to be compared and analyzed are obtained, two groups of variable curves are respectively generated according to the data in the simulation system file and the real data file so as to compare the trend of the parameter curve of the same variable in the same operation scene; further, the trend comparison further comprises performing deviation analysis when the parameter curves of the same variable are in the same trend, wherein the trend comparison comprises comparing data calibrated according to the minimum value and the maximum value if the parameter curves of the same variable are in the trend in the same operation scene, and counting and outputting data with deviation exceeding a set value (such as default 10 percent);
the statistical analysis of the abnormal data time period comprises the following steps: counting and outputting the data at the moment when the point values in the real data file all exceed the minimum value or the maximum value; since the data in the simulation data file is generated based on simulation, no abnormal data will exist in general, in this embodiment, only the real data file is subjected to statistical analysis of abnormal data time periods.
Preferably, the data analysis further includes a step of aligning time points, and if the starting times of the parameter points of the simulation system file and the real data file are inconsistent, after calculating the time shift length, the starting times of the curves are aligned by setting the time shift length, so as to compare the trend of the same parameter curve in the same operation scene.
In this embodiment, when a certain scene IS selected in IS and a data export instruction IS issued, the emulation data service module reads the history data from the INFLUXDB according to the start and stop time of the current scene, and writes the history data into the CSV file. Selecting and opening a file in a main window of a control window, popping up an uploading data window, selecting a data file, clicking and uploading, enabling a file name to appear in the window, clicking a next step, enabling a variable list in the file to be seen, clicking and uploading data, and continuing uploading the file in the popping window such as clicking and clicking, wherein another file needing to be compared can be selected, and the variable needing to be compared is checked in the corresponding list. After the selection is finished, clicking to close, and exiting the window. The curve of the selected variable appears in the main window of the control window, the mouse moves on the curve, and the point value corresponding to the current abscissa moment can be seen in the floating window. If the initial time of the parameter points of the simulation system file and the actual data file are inconsistent, the initial time of the curve can be aligned by setting the time translation length, and then the data analysis module respectively performs trend comparison analysis and abnormal data time period statistical analysis on the designated variables and generates an analysis report.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A data recording, data playback and data analysis method based on a simulation system comprises the following steps: the simulation system is characterized by comprising a coach station and a simulation simulator in communication connection with the coach station, wherein: the coach station is used for generating a first type of control instruction, wherein the first type of control instruction comprises the steps of starting recording, saving a scene, stopping recording, starting playback and stopping playback; the simulation simulator is provided with a simulation data service module, and a first database and a second database which are in communication connection with the simulation data service module; the simulation data service module is used for analyzing a first type of control instruction sent by the coach station and executing business logic; a recorded data point list and a scene list are arranged in the first database, the recorded data point list is used for storing entry information corresponding to data points specified by the nuclear power equipment, and the scene list is used for storing scene information; the second database is used for storing data values of specified data points in the simulation running process;
the data record comprises the steps of:
when the simulation simulator is in an operating state, after receiving a recording starting instruction, the simulation data service module acquires a recording data point list of corresponding nuclear power equipment from the first database, reads real-time values of all data points in the recording data point list from a real-time shared memory of the simulation simulator according to a preset configuration frequency and stores the real-time values into a second database until the simulation data service module finishes data recording after receiving the recording stopping instruction; in the data recording process, if the simulation data service module receives an instruction for saving a scene, new scene information is generated in a scene list of the first database corresponding to the instruction for saving the scene;
the data playback includes the steps of:
when the simulation simulator is in a frozen state, after receiving a playback scene instruction, the simulation data service module acquires corresponding scene information from the scene list, acquires corresponding historical data from the second database according to default frequency input externally and the scene information, and writes the corresponding historical data into a real-time shared memory, and each simulation system of the simulation simulator refreshes a picture according to the historical data written into the real-time shared memory;
the data analysis includes the steps of:
and (3) data export: the simulation data service module acquires corresponding scene information from the scene list after receiving a scene export instruction, acquires corresponding historical data from the second database according to the scene information and exports the historical data to form a simulation system file;
data comparison: analyzing the simulation system file and the real data file of the same time period and forming an analysis report.
2. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the data points respectively comprise a point variable name, a point description and mark information, wherein the point description is used for marking equipment attributes corresponding to the data points, and the mark information comprises marks whether the data points appear in a point list at a coach station or not and marks whether the data points support file derivation or not; the scene information comprises scene time, scene name and node description.
3. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the first control instruction further comprises a playback progress dragging instruction, after the simulation data service module receives the playback progress dragging instruction, the simulation data service module analyzes the playback progress dragging instruction to obtain a current position time point as a new data acquisition starting point, reads historical data from a second database according to the new data acquisition starting point, writes the historical data into a real-time shared memory, and each simulation system refreshes a picture according to the historical data until reaching a scene time end point to finish the playback.
4. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the first control instruction further comprises a playback speed setting instruction, after the simulation data service module receives the playback speed setting instruction, after the multiplying power time is confirmed according to the newly received playback speed parameter, historical data are obtained from the second database according to multiplying power time intervals and written into the real-time shared memory, and each simulation system refreshes a picture according to the historical data.
5. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the first control instruction further comprises a playback suspension instruction, and after the simulation data service module receives the playback suspension instruction, the simulation data service module suspends obtaining historical data from the second database and writing the historical data into the real-time shared memory.
6. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the first type of control instruction further comprises a scene deleting instruction, and after the simulation simulator receives the scene deleting instruction, the first database responds to the instruction to delete corresponding scene information from the scene list.
7. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the trainer station and the simulation data service module are used for transmitting different commands and parameter information through preset control words.
8. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the data analysis comprises trend comparison and/or abnormal data time period statistical analysis;
the trend contrast analysis includes: after the variables to be compared and analyzed are obtained, two groups of variable curves are respectively generated according to the data of the corresponding variables in the simulation system file and the real data file, so that the trend of the parameter curve of the same variable in the same operation scene is compared;
the anomaly data time period statistical analysis comprises the following steps: and counting the data points at the moment when the point value in the real data file exceeds the minimum value or the maximum value, and outputting the data points.
9. The simulation system-based data recording, data playback and data analysis method of claim 8, wherein: the trend comparison also comprises deviation analysis when the parameter curves of the same variable are in the same trend, wherein the deviation analysis comprises: if the parameter curves of the same variable are in the same trend, calibrating and comparing all data points according to the minimum value and the maximum value, and counting and outputting the data points with deviation exceeding the set range.
10. The simulation system-based data recording, data playback and data analysis method of claim 1, wherein: the data analysis further comprises a step of aligning time points, if the starting time of the parameter points of the simulation system file and the real data file are inconsistent, the time shift length between the simulation system file and the real data file is calculated, and the starting time of the curve is aligned according to the time shift length.
CN202311187266.7A 2023-09-14 2023-09-14 Data recording, data playback and data analysis method based on simulation system Active CN116933566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311187266.7A CN116933566B (en) 2023-09-14 2023-09-14 Data recording, data playback and data analysis method based on simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311187266.7A CN116933566B (en) 2023-09-14 2023-09-14 Data recording, data playback and data analysis method based on simulation system

Publications (2)

Publication Number Publication Date
CN116933566A CN116933566A (en) 2023-10-24
CN116933566B true CN116933566B (en) 2023-12-15

Family

ID=88389979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311187266.7A Active CN116933566B (en) 2023-09-14 2023-09-14 Data recording, data playback and data analysis method based on simulation system

Country Status (1)

Country Link
CN (1) CN116933566B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117314398B (en) * 2023-11-30 2024-03-19 福建福清核电有限公司 Nuclear power plant unit transient state data analysis and playback method
CN117609253A (en) * 2024-01-24 2024-02-27 中电普信(长沙)科技发展有限公司 Simulation data storage and access method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054377A (en) * 2010-11-24 2011-05-11 江苏省电力试验研究院有限公司 Remote simulation training system for electrical tests of transformer
CN103425700A (en) * 2012-05-25 2013-12-04 中广核(北京)仿真技术有限公司 Data storage, inquiry and updating method for nuclear power plant analog machine
CN109657818A (en) * 2018-12-21 2019-04-19 核动力运行研究所 A kind of nuclear power analog machine instructor station software fault introduces the implementation method of system
CN110264811A (en) * 2019-05-24 2019-09-20 福建福清核电有限公司 A kind of nuclear fuel operation whole process simulation training system
CN112363409A (en) * 2020-11-10 2021-02-12 中国核动力研究设计院 Operating condition backtracking and rehearsing system of nuclear power plant security level instrument control simulation system
WO2021244667A1 (en) * 2020-12-03 2021-12-09 中广核工程有限公司 Ultra-real-time calculation method for axial power deviation, electronic device, and storage medium
CN116578441A (en) * 2023-03-23 2023-08-11 阳江核电有限公司 Analog machine historical data playback system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102054377A (en) * 2010-11-24 2011-05-11 江苏省电力试验研究院有限公司 Remote simulation training system for electrical tests of transformer
CN103425700A (en) * 2012-05-25 2013-12-04 中广核(北京)仿真技术有限公司 Data storage, inquiry and updating method for nuclear power plant analog machine
CN109657818A (en) * 2018-12-21 2019-04-19 核动力运行研究所 A kind of nuclear power analog machine instructor station software fault introduces the implementation method of system
CN110264811A (en) * 2019-05-24 2019-09-20 福建福清核电有限公司 A kind of nuclear fuel operation whole process simulation training system
CN112363409A (en) * 2020-11-10 2021-02-12 中国核动力研究设计院 Operating condition backtracking and rehearsing system of nuclear power plant security level instrument control simulation system
WO2021244667A1 (en) * 2020-12-03 2021-12-09 中广核工程有限公司 Ultra-real-time calculation method for axial power deviation, electronic device, and storage medium
CN116578441A (en) * 2023-03-23 2023-08-11 阳江核电有限公司 Analog machine historical data playback system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GIS技术在核电厂应急管理平台的应用研究;谢明亮;魏巍;李青;谷韫丰;侯雪燕;谢政权;戴浩;朱彤;陈龙;核科学与工程(第005期);1085-1092 *
模拟机中OPC接口技术研究;景应刚;侯雪燕;刘伟;;科技传播(第10期);116-117+131 *

Also Published As

Publication number Publication date
CN116933566A (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN116933566B (en) Data recording, data playback and data analysis method based on simulation system
US8255799B2 (en) Dynamic action recorder
CN102222043B (en) Testing method and testing device
CN105608258B (en) A kind of Model-based diagnosis and information flow visual simulation system and method
US11216358B2 (en) Video game testing and automation framework
WO2016078335A1 (en) Method and apparatus for writing automatic script
CN112383451B (en) Intelligent household appliance intelligent level testing system and method based on voice interaction
CN112506766B (en) Automatic generation method of interactive test case
CN109308250A (en) A kind of GUI automated testing method and system
CN103933718A (en) Football tactics designing and rehearsing method and system
JP2001005690A (en) Program test system
CN105786693A (en) Self-testing execution system and method as well as mobile terminal
US5513316A (en) Method and apparatus for exercising an integrated software system
CN114897296A (en) RPA flow labeling method, execution process playback method and storage medium
CN108459848A (en) A kind of script acquisition methods and system applied to Excel softwares
CN117311798A (en) RPA flow generation system and method based on large language model
CN103685975A (en) Video playing system and method
CN109270530B (en) Test method and system for trace point processing of air traffic control primary radar
CN109426612B (en) Automatic use case development system based on intelligent machine learning
CN102519514A (en) One-click automatic testing realization method of electronic test instrument
CN109815288A (en) A kind of data visualization method and system
CN113626621A (en) Course content generation system and editing device for online interactive teaching
CN104765616B (en) A kind of method and system for automatically generating I/O model
CN116028376B (en) Method for rapidly generating interface automation use cases based on flow recording
CN113360399A (en) Real vehicle debugging system and device for automatic driving system and storage medium

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
GR01 Patent grant
GR01 Patent grant