Offline editing method and system for human-machine operation records of virtual SVDU simulation scene files
By automatically extracting and parsing the engineering configuration page data of the virtual SVDU, loading the offline editing interface and verifying the human-machine operation data, and generating new human-machine operation records, the problem of the virtual SVDU simulation scene file not being able to run normally after offline editing is solved, and a fast and efficient large-scale human-machine operation test is achieved.
Patent Information
- Application Number
- CN202311611299.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2043-11-27
AI Technical Summary
In the existing technology, the normal operation of the virtual SVDU simulation scene file cannot be guaranteed after offline editing, resulting in low test efficiency and the inability to conduct large-scale human-machine operation tests quickly, immediately and frequently.
By automatically extracting engineering configuration page data, parsing control information, loading the scene offline editing interface, filtering and reading human-machine operation data, editing and verifying the data, generating new human-machine operation records, and saving simulation scene files.
It ensures that simulation scene files can still run normally after editing, supports fast, immediate, high-frequency large-scene human-machine operation tests, and improves test efficiency.
Smart Images

Figure CN117787222B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of nuclear power, and in particular relates to an off-line editing method and system for human-machine operation records of a virtual SVDU simulation scene file of a nuclear power plant. Background Art
[0002] The Safety Video Display Unit (SVDU) is a critical component of a nuclear safety-grade DCS platform. It displays various safety-related parameters and supports issuing necessary control commands to the safety system. It is classified as nuclear safety IE-level equipment. The virtual SVDU, based on a real SVDU, develops simulation and management functions to fully simulate the real SVDU, meeting engineering requirements for full-scale simulator configuration verification, operational training, fault drills, and simulation testing.
[0003] A simulation scenario file is a continuous and complete set of data used to restore the virtual SVDU's behavior at a specific point in time. It consists of data such as time stamps, human-machine operation records, and status information. Users can load a simulation scenario file and run it to recreate the entire virtual SVDU's operating state, thereby achieving various goals, such as operating condition reproduction, configuration verification, post-accident analysis, operational training, and fault drills.
[0004] When the scenario is running, the historical human-machine operations recorded in the scenario file and the current process data from the virtual TU station are used. The simulation scenario file can store up to 50 hours of historical data information. When performing functions such as configuration verification, operating condition analysis, and human-machine operation analysis, it is often necessary to perform different human-machine operation tests under the same operating conditions to observe different operating effects. When human-machine operation tests of large scenarios need to be performed multiple times, the test time will become quite long, and there is no guarantee that the same starting conditions will be used for each test. The test results cannot be compared in real time, and the test efficiency is very low. Offline editing (addition, deletion, modification, etc.) of historical human-machine operation records in the simulation scenario file can provide the possibility of fast, immediate, and high-frequency human-machine operation tests of large scenarios.
[0005] However, the use of controls such as the enable button, secondary confirmation button, control valve panel, and operation panel in the SVDU configuration project page makes the human-machine operation of the configuration project page complex and diverse. For example, offline editing only applies to button controls with the send command function, and human-machine operation editing of other controls is invalid; the human-machine operation of some controls may require several cycles to complete the execution of the corresponding function, and the corresponding controls must be identified during editing and sufficient execution cycles must be reserved for their human-machine operation; the secondary confirmation window overlaps with the underlying controls, and a human-machine operation at one point may cause the execution of two overlapping human-machine functions; and many invalid operations may occur when users use the SVDU for human-machine operation. Because the above factors need to be considered when performing offline editing of human-machine operation records recorded in simulation scenario files, the virtual SVDU currently does not have the technology to ensure that simulation scenario files can still operate normally after offline editing. Summary of the Invention
[0006] In order to solve the problem that the current virtual SVDU cannot ensure that the scene file can still operate normally after offline editing, the present invention provides an offline editing method and system for human-machine operation records of virtual SVDU simulation scene files. The offline editing method proposed in the present invention can ensure that the simulation scene file can still operate normally after editing. When using the virtual SVDU for configuration verification, working condition analysis, human-machine operation analysis and other functions, this method can be used to quickly, instantly and frequently perform large-scale human-machine operation tests, greatly shortening the test time and improving the test efficiency while ensuring the accuracy of the test.
[0007] The present invention is achieved through the following technical solutions:
[0008] An offline editing method for human-machine operation records of a virtual SVDU simulation scene file, the offline editing method comprising:
[0009] Automatically extract engineering configuration page data and parse out controls with the function of sending control instructions and other related engineering configuration information;
[0010] One-click loading of scene offline editing interface initialization information;
[0011] Loading the simulation scene file selected by the user, automatically filtering and reading the human-machine operation data in the simulation scene file;
[0012] Editing the human-machine operation data and verifying the edited human-machine operation data;
[0013] Generate a new human-machine operation record based on the edited human-machine operation data and save the simulation scenario file.
[0014] Currently, when offline editing human-machine operation records recorded in SVDU simulation scene files, many factors need to be considered. For example, offline editing is only applicable to button controls with the function of sending instructions, and human-machine operation editing of other controls is invalid; human-machine operation of one point may cause the execution of two overlapping human-machine functions; for some controls, sufficient execution cycles need to be reserved for their human-machine operations; when users use SVDU to perform human-machine operations, many invalid operations may occur, etc., resulting in the scene file being difficult to continue to operate normally after offline editing. The offline editing method of scene file human-machine operation records proposed in the present invention automatically loads all simulation scene files and manual operation records, filters out human-machine operation records that cannot be edited according to human-machine operation record editing rules, and performs rationality verification on edited human-machine operation records, thereby ensuring the correctness of human-machine operation record editing without damaging the original simulation scene file. The original simulation scene file can still operate normally after editing, meeting the needs of quickly adjusting human-machine operations to adapt to different working conditions when conducting large-scale human-machine operation experiments, greatly shortening the test time and improving the test efficiency.
[0015] As a preferred embodiment, the present invention automatically extracts engineering configuration page data and parses out controls with the function of sending control instructions and other related engineering configuration information, specifically including:
[0016] Parsing to obtain project configuration information, the project configuration information includes a project name, configuration information of a configuration page, and operator configuration information;
[0017] Reading the configuration page file according to the configuration information of the configuration page obtained by parsing, and extracting the control configuration information in the configuration page;
[0018] According to the control configuration information, all controls in the configuration page are parsed to obtain the property information of the controls;
[0019] All the controls obtained by parsing are added to the control buffer for standby use, and the attribute information of the controls is stored.
[0020] As a preferred embodiment, the interactive information of the one-key loading scene offline editing interface of the present invention is specifically as follows:
[0021] By monitoring hotkeys, you can load the scene offline editing interface with one click and prepare human-computer interaction information.
[0022] As a preferred embodiment, the present invention loads a simulation scene file selected by a user, and automatically filters and reads the human-machine operation data in the simulation scene file, specifically including:
[0023] Loading the simulation scene file, and extracting the timestamp recorded in the simulation scene file;
[0024] Load the data of 15-minute data blocks, 1-minute data blocks and each periodic data blocks in sequence according to the timestamp;
[0025] The loaded data is stored in a data buffer in a preset data structure for standby use; the information in the preset data structure includes all control linked list information, total cycle number information, human-machine operation information per cycle, page information per cycle, and network variable information per cycle; wherein the human-machine operation information recorded per cycle is the screen coordinates and the corresponding configuration page index;
[0026] According to the screen coordinates and the corresponding configuration page index, combined with the engineering configuration page data, it is analyzed whether the current human-machine operation corresponds to a valid human-machine operation button and displayed on the offline editing interface.
[0027] As a preferred embodiment, the method of editing the human-machine operation data of the present invention includes: clearing old human-machine operation data, modifying old human-machine operation data and / or adding new human-machine operation data.
[0028] As a preferred embodiment, the present invention clears old human-machine operation data, specifically including:
[0029] Acquire human-machine operation data of a corresponding period from the data buffer;
[0030] Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps;
[0031] Assigning the human-machine operation data to empty;
[0032] Put the new human-machine operation data back into the data buffer.
[0033] As a preferred embodiment, the present invention modifies old human-machine operation data, specifically including:
[0034] Acquire human-machine operation data of a corresponding period from the data buffer;
[0035] Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps;
[0036] Extracting buttons with network variable output function from the control buffer to obtain a button list;
[0037] Replace the old human-machine operation with any button in the button list;
[0038] Verify whether the edited human-machine operation is valid. If not, an error message will be displayed. Otherwise, continue with the next steps.
[0039] Put the new human-machine operation data back into the data buffer.
[0040] As a preferred embodiment, the present invention verifies whether the edited human-machine operation is valid, specifically by determining whether there are enough idle cycles to complete the corresponding function.
[0041] As a preferred embodiment, the present invention adds new human-machine operation data, specifically including:
[0042] Acquire human-machine operation data of a corresponding period from the data buffer;
[0043] Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps;
[0044] Extracting buttons with network variable output function from the control buffer to obtain a button list;
[0045] Determine whether the current cycle meets the editable conditions. If not, an error message will be displayed. Otherwise, continue with the next steps.
[0046] Replace the old human-machine operation with any button in the button list;
[0047] Verify whether the edited new human-machine operation is valid. If not, an error message will be displayed. Otherwise, continue with the next steps.
[0048] Put the new human-machine operation data back into the data buffer.
[0049] As a preferred embodiment, the present invention determines whether the current cycle meets the editable conditions, specifically whether the current cycle is within the execution cycle time of the previous human-machine input. If so, the current cycle is locked and the human-machine operation record cannot be edited.
[0050] As a preferred embodiment, the present invention generates a new human-machine operation record based on the edited human-machine operation data and saves the simulation scene file, specifically including:
[0051] Translating the human-machine operation data in the data buffer into corresponding screen coordinates;
[0052] Check the rationality of the translated human-machine operation data according to the screen coordinates;
[0053] Rewrite all data in the data buffer into a simulation scene file.
[0054] On the other hand, the present invention provides an offline editing system for human-machine operation records of a virtual SVDU simulation scene file, the offline editing system comprising:
[0055] A parsing unit, which automatically extracts data from the engineering configuration page and parses out controls with a function of sending control instructions and other relevant engineering configuration information;
[0056] A monitoring unit, which loads the initialization information of the scene offline editing interface with one click;
[0057] A loading unit, which loads a simulation scene file selected by a user, and automatically filters and reads human-machine operation data in the simulation scene file;
[0058] an editing unit, wherein the editing unit edits the human-machine operation data and verifies the edited human-machine operation data;
[0059] and a generating unit, wherein the generating unit generates a new human-machine operation record according to the edited human-machine operation data and saves a simulation scene file.
[0060] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0061] 1. The discrete editing method proposed in the present invention automatically loads all simulation scene files and manual operation records. Combined with the human-machine operation record editing rules, the human-machine operation records that cannot be edited are filtered out. At the same time, the rationality of the edited human-machine operation records is checked, ensuring the correctness of the human-machine operation record editing without damaging the original simulation scene file, so that the original simulation scene file can still run normally after editing.
[0062] 2. The discrete editing method proposed in this invention combines the configuration page data to translate the screen touch point coordinate information that is difficult for users to identify into the configuration page button information with high readability. When saving the simulation scene file, it is reversely translated, which has high readability, strong operability and friendly human-computer interaction.
[0063] 3. This invention makes it possible to return to the historical moments of the SVDU to change some operations. The edited simulation scene file can still run normally, meeting the needs of quickly adjusting human-machine operations to adapt to different working conditions when conducting large-scale human-machine operation experiments, greatly shortening the test time and improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0065] Figure 1 2 is a flow chart of a discrete editing method according to an embodiment of the present invention.
[0066] Figure 2 The figure is a schematic diagram of the data flow of parsing the engineering configuration page according to an embodiment of the present invention.
[0067] Figure 3 The figure is a schematic diagram of the process of loading a simulation scene file according to an embodiment of the present invention.
[0068] Figure 4 Schematic diagram of the clear edit operation flow in an embodiment of the present invention.
[0069] Figure 5 Schematic diagram of the modification and editing operation flow of an embodiment of the present invention.
[0070] Figure 6 The figure is a schematic diagram of the adding and editing operation flow in an embodiment of the present invention.
[0071] Figure 7 This is a schematic diagram of the process of generating a new human-machine operation record according to an embodiment of the present invention.
[0072] Figure 8 This is a functional block diagram of an offline editing system according to an embodiment of the present invention.
[0073] Figure 9 This is a schematic diagram of the scene offline management interface according to an embodiment of the present invention.
[0074] Figure 10 Schematic diagram of the scene offline editing interface according to an embodiment of the present invention. DETAILED DESCRIPTION
[0075] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with examples and drawings. The exemplary embodiments of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0076] Example 1
[0077] Offline editing of human-machine operation records in virtual SVDU simulation scene files is equivalent to going back to historical moments from a spatial perspective to add, delete, and modify human-machine operations in the past. It is an operation that changes the "history" of SVDU. However, many influencing factors need to be considered when performing offline editing of human-machine operation records recorded in SVDU simulation scene files. For example, offline editing is only for button controls with the function of sending instructions, and human-machine operation editing of other controls is invalid; the human-machine operation of one point may cause the execution of two overlapping human-machine functions; for some controls, sufficient execution cycles need to be reserved for their human-machine operations; there may be many invalid operations when users use SVDU for human-machine operations, etc., which makes it difficult for the scene file to continue to operate normally after offline editing of the simulation scene file. Based on this, this embodiment proposes a method for offline editing of human-machine operation records of virtual SVDU simulation scene files.
[0078] Specific as Figure 1 As shown, the offline editing method proposed in this embodiment includes the following steps:
[0079] Step 1: Automatically extract engineering configuration page data and parse out controls with the function of sending control instructions and other related engineering configuration information.
[0080] Step 2: Load the scene offline editing interface initialization information with one click.
[0081] Step 3: Load the simulation scene file selected by the user, and automatically filter and read the human-machine operation data in the simulation scene file.
[0082] Step 4: edit the human-machine operation data according to the preset editing rules, and verify the edited human-machine operation data to ensure the correctness of the human-machine operation record in the simulation scene file.
[0083] Step 5: Generate a new human-machine operation record and save the simulation scenario file.
[0084] Furthermore, after the virtual SVDU is started, the engineering configuration page data is extracted and parsed in the background automatically loaded. Offline editing is not available when the page parsing is not completed, such as Figure 2 As shown, the process of extracting and parsing engineering configuration page data in this embodiment specifically includes the following sub-steps:
[0085] Step 11: parse and obtain project configuration information, which includes the project name, configuration information of the configuration pages (total number of pages, type of each page, etc.), operator configuration information, etc.
[0086] Step 12: read the configuration page file according to the configuration information of the configuration page obtained through parsing, and extract the control configuration information in the configuration page.
[0087] Step 13: parse all controls in the configuration page according to the control configuration information to obtain attribute information such as the control type, whether it is bound to a network output variable, and whether it includes a secondary confirmation function.
[0088] Step 14: Add all the parsed controls to the control buffer (stored in the form of a control linked list) for standby use, and store the control attribute information.
[0089] Furthermore, this embodiment monitors hot keys to load the scene offline editing interface with one click and prepare human-computer interaction information.
[0090] Further, such as Figure 3 As shown, in this embodiment, the process of loading the simulation scene file, filtering and reading the human-machine operation data specifically includes the following sub-steps:
[0091] Step 31: Load the simulation scenario file and extract the timestamps recorded in the simulation scenario file. Specifically, the data recorded in the simulation scenario file is mainly divided into three types: 15-minute data blocks, which store all virtual SVDU operation data every 15 minutes; 1-minute data blocks, which store node status information and alarm information every minute of the virtual SVDU operation every minute; and per-cycle data blocks, which store human-machine operation information and page index information every cycle.
[0092] Step 32: Load the data of 15-minute data blocks, 1-minute data blocks, and each periodic data blocks in sequence according to the timestamp.
[0093] Step 33 stores the loaded data in a data buffer using a preset data structure for future use. Specifically, the information in this preset data structure includes, but is not limited to, all control list information, the total number of cycles, per-cycle human-machine operation information, per-cycle page information, and per-cycle network variable information. The human-machine operation information recorded for each cycle is the X-axis and Y-axis coordinates on the screen and the corresponding configuration page index.
[0094] Step 34 : According to the page index of each cycle and the X-axis coordinate and Y-axis coordinate information, combined with the engineering configuration page data, analyze whether the current human-machine operation corresponds to a valid human-machine operation button and display it on the offline editing interface.
[0095] Furthermore, in this embodiment, there are three main ways to edit the human-machine operation record data: clearing old human-machine operation data (ie, deleting), modifying old human-machine operation data, and adding new human-machine operation data.
[0096] Among them, such as Figure 4 As shown, clearing old human-machine operation data specifically includes the following steps:
[0097] Step 411: Obtain human-machine operation data of a corresponding period from the data buffer.
[0098] Step 412, determine whether the human-machine operation data is empty, if it is empty, end, otherwise continue with the subsequent steps.
[0099] Step 413: Assign the human-machine operation data to empty.
[0100] Step 414: put the new human-machine operation data back into the data buffer.
[0101] like Figure 5 As shown, modifying the old human-machine operation data specifically includes the following steps:
[0102] Step 421: Obtain human-machine operation data of a corresponding period from the data buffer.
[0103] Step 422, determine whether the human-machine operation data is empty, if it is empty, end, otherwise continue with the subsequent steps.
[0104] Step 423: extract buttons with network variable output function from the control buffer (control linked list) to obtain a button linked list.
[0105] Step 424: Replace the old human-machine operation with any button in the button list.
[0106] Step 425: Check whether the edited new human-machine operation is valid. If not, an error message is displayed; otherwise, proceed to the subsequent steps.
[0107] Step 426: Put the new human-machine operation data back into the data buffer.
[0108] Specifically, different human-machine operation functions of SVDU require different cycle execution times, such as: ordinary network variable output function, which requires two execution cycles to complete; page switch button function, which requires three execution cycles to complete; secondary confirmation button function, which requires six execution cycles to complete. When editing human-machine operation records, it is necessary to determine whether there are enough idle cycles to complete the corresponding function to verify whether the edited human-machine operation is valid. For example, cycle 1 is network variable output, which requires 2 cycles to complete; cycle 6 is page switch button, which requires 3 cycles to complete. There are only 3 cycles available between cycles 1 and 6. If a secondary confirmation operation is inserted between cycles 1 and 6, this inserted operation is considered invalid because the secondary confirmation operation requires 6 cycles to complete, while there are only 3 cycles available between cycles 1 and 6. There are not enough idle cycles to complete the corresponding function, so the inserted operation is considered invalid.
[0109] like Figure 6 As shown, adding new human-machine operation data specifically includes the following steps:
[0110] Step 431: Obtain human-machine operation data of a corresponding period from the data buffer.
[0111] Step 432, determine whether the human-machine operation data is empty, if it is empty, end, otherwise continue with the subsequent steps.
[0112] Step 433: extract buttons with network variable output function from the control buffer (control linked list) to obtain a button linked list.
[0113] Step 434, determine whether the current cycle meets the editable conditions, if not, prompt an error, otherwise proceed to the subsequent steps.
[0114] Step 435: Replace the old human-machine operation with any button in the button list.
[0115] Step 436, verify whether the edited new human-machine operation is valid. If not, an error message is displayed; otherwise, proceed to the subsequent steps.
[0116] Step 437: put the new human-machine operation data back into the data buffer.
[0117] Whether the current cycle meets the editable conditions is determined, specifically whether the current cycle is within the execution cycle time of the previous human-machine input. If so, the current cycle is locked and the human-machine operation record data cannot be edited.
[0118] Further, such as Figure 7 As shown, this embodiment generates a new human-machine operation record and saves the simulation scene file, which specifically includes the following sub-steps:
[0119] Step 51: Translate the human-machine operation data in the data buffer into X-axis coordinates and Y-axis coordinates on the corresponding screen.
[0120] In step 52 , the translated human-machine operation information is checked for rationality according to the screen coordinates (ie, whether the coordinates exceed the coordinate range of the screen).
[0121] Step 53: rewrite all data in the data buffer into a simulation scene file.
[0122] The offline editing method proposed in this embodiment automatically loads configuration page data in the background, extracts the poorly readable human-machine operation information running on the embedded platform into screen touch coordinate information corresponding to the SVDU screen and hard buttons, organically integrates this screen touch coordinate information with the configuration page data, and translates the screen touch coordinate information into corresponding highly readable screen button names. At the same time, considering the execution cycle of each human-machine operation, offline editing rules for human-machine operations are formulated. After editing, the configuration page buttons are reversely translated into screen touch coordinate information of the embedded platform scale, so that the edited scene file can run normally without disturbing human-machine operation switching. When using the virtual SVDU for configuration verification, working condition analysis, human-machine operation analysis and other functions, this method can quickly, instantly and frequently conduct large-scale human-machine operation tests, greatly shortening the test time and improving test efficiency while ensuring test accuracy.
[0123] Based on the same technical concept as above, this embodiment also proposes an offline editing system for human-machine operation records of virtual SVDU simulation scene files, specifically as follows: Figure 8 As shown, the offline editing system includes:
[0124] The parsing unit automatically extracts the engineering configuration page data and parses out the controls with the function of sending control instructions and other related engineering configuration information.
[0125] Monitoring unit, which loads the initialization information of the scene offline editing interface with one click.
[0126] The loading unit loads the simulation scene file selected by the user, and automatically filters and reads the human-machine operation data in the simulation scene file.
[0127] The editing unit edits the human-machine operation data according to the preset editing rules and verifies the edited human-machine operation data to ensure the correctness of the human-machine operation record in the simulation scene file.
[0128] and a generating unit, which generates a new human-machine operation record and saves a simulation scenario file.
[0129] Example 2
[0130] This embodiment uses a virtual SVDU project as an example to implement the offline editing method of the simulation scene file human-machine operation record proposed in the above embodiment. The scene offline management interface used is as follows: Figure 9 As shown in the figure, the interface contains the backtracking list information, working condition list information and scene list information. Among them, the scene list includes all editable scene files in the current project, including but not limited to scene name, scene offset value, scene description, scene path and other information. The scene offline editing interface used is as follows Figure 10 As shown, the interface displays the currently edited scene name, scene description, human-machine operation record and other related information, including but not limited to simulation time, current page, current control, control description, control-bound network variables and other information.
[0131] Human-machine operation information is recorded once per cycle. When human-machine input occurs during the current cycle, the screen touch coordinates corresponding to this record are translated into the corresponding control on the current page using the method proposed in the above embodiment and displayed in the Current Control column. The Control Description column displays a description of the current control, helping the user understand the function of the edited human-machine operation button. If the current control is bound to a network output variable, the Control-Bound Network Variable column displays the network output variable bound to the current control. This variable is associated with the corresponding safety device to execute the control instruction.
[0132] Figure 10 The periodic data displayed in gray is the period in which the human-machine operation record cannot be edited, and the periodic data displayed in white is the period in which the human-machine operation record can be edited. Whether the human-machine operation record can be edited and whether it is valid after editing is based on the corresponding rules (see the above embodiment 1 for details).
[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0134] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0135] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0137] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An offline editing method for human-machine operation records of a virtual SVDU simulation scene file, characterized in that: The offline editing method comprises: Automatically extract engineering configuration page data and parse out controls with the function of sending control instructions and other related engineering configuration information; One-click loading of scene offline editing interface initialization information; The method includes: loading the simulation scenario file selected by the user, automatically filtering and reading the human-machine operation data in the simulation scenario file, including: loading the simulation scenario file, extracting the timestamp recorded in the simulation scenario file; sequentially loading the data of the 15-minute data block, the 1-minute data block and the data of each cycle data block according to the timestamp; storing the loaded data in a data buffer in a preset data structure for standby use; the information in the preset data structure includes all control linked list information, total cycle number information, human-machine operation information of each cycle, page information of each cycle, and network variable information of each cycle; wherein the human-machine operation information recorded in each cycle is the screen coordinates and the corresponding configuration page index; according to the screen coordinates and the corresponding configuration page index, combined with the engineering configuration page data, analyzing whether the current human-machine operation corresponds to a valid human-machine operation button and displaying it on the offline editing interface; Editing the human-machine operation data and verifying the edited human-machine operation data include: obtaining the human-machine operation data of the corresponding period from the data buffer; judging whether the current period meets the editable condition, specifically judging whether the current period is within the execution cycle time of the previous human-machine input, if so, the current period is locked and the human-machine operation record cannot be edited; verifying whether the edited human-machine operation is valid, specifically judging whether there are enough idle cycles to complete the corresponding function; Generate a new human-machine operation record based on the edited human-machine operation data and save the simulation scenario file.
2. The offline editing method of the virtual SVDU simulation scene file human-machine operation record according to claim 1 is characterized in that: Automatically extract engineering configuration page data and parse out controls with the function of sending control instructions and other related engineering configuration information, including: Parsing to obtain project configuration information, the project configuration information includes a project name, configuration information of a configuration page, and operator configuration information; Reading the configuration page file according to the configuration information of the configuration page obtained by parsing, and extracting the control configuration information in the configuration page; According to the control configuration information, all controls in the configuration page are parsed to obtain the property information of the controls; All the controls obtained by parsing are added to the control buffer for standby use, and the attribute information of the controls is stored.
3. The offline editing method of the virtual SVDU simulation scene file human-machine operation record according to claim 1 is characterized in that: One-click loading of scene offline editing interface interactive information, specifically: By monitoring hotkeys, you can load the scene offline editing interface with one click and prepare human-computer interaction information.
4. The offline editing method of the virtual SVDU simulation scene file human-machine operation record according to claim 2 is characterized in that: The manner of editing the human-machine operation data includes: clearing old human-machine operation data, modifying old human-machine operation data and / or adding new human-machine operation data.
5. The offline editing method of the human-machine operation record of the virtual SVDU simulation scene file according to claim 4 is characterized in that: Clear old human-machine operation data, including: Acquire human-machine operation data of a corresponding period from the data buffer; Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps; Assigning the human-machine operation data to empty; Put the new human-machine operation data back into the data buffer.
6. The offline editing method of the virtual SVDU simulation scene file human-machine operation record according to claim 4 is characterized in that: Modify the old human-machine operation data, including: Acquire human-machine operation data of a corresponding period from the data buffer; Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps; Extracting buttons with network variable output function from the control buffer to obtain a button list; Replace the old human-machine operation with any button in the button list; Verify whether the edited human-machine operation is valid. If not, an error message will be displayed. Otherwise, continue with the next steps. Put the new human-machine operation data back into the data buffer.
7. The offline editing method of the virtual SVDU simulation scene file human-machine operation record according to claim 4 is characterized in that: Add new human-machine operation data, including: Acquire human-machine operation data of a corresponding period from the data buffer; Determine whether the human-machine operation data is empty, if so, end; otherwise, continue with the subsequent steps; Extracting buttons with network variable output function from the control buffer to obtain a button list; Determine whether the current cycle meets the editable conditions. If not, an error message will be displayed. Otherwise, continue with the next steps. Replace the old human-machine operation with any button in the button list; Verify whether the edited new human-machine operation is valid. If not, an error message will be displayed. Otherwise, continue with the next steps. Put the new human-machine operation data back into the data buffer.
8. The offline editing method of the human-machine operation record of the virtual SVDU simulation scene file according to claim 1 is characterized in that: Generate a new human-machine operation record based on the edited human-machine operation data and save the simulation scenario file, including: Translating the human-machine operation data in the data buffer into corresponding screen coordinates; Check the rationality of the translated human-machine operation data according to the screen coordinates; Rewrite all data in the data buffer into a simulation scene file.
9. Offline editing system for human-machine operation records of virtual SVDU simulation scene files, characterized by: The offline editing system comprises: A parsing unit, which automatically extracts data from the engineering configuration page and parses out controls with a function of sending control instructions and other relevant engineering configuration information; A monitoring unit, which loads the initialization information of the scene offline editing interface with one click; A loading unit, wherein the loading unit loads a simulation scenario file selected by a user, and automatically filters and reads human-machine operation data in the simulation scenario file, including: loading the simulation scenario file, extracting the timestamp recorded in the simulation scenario file; sequentially loading data of a 15-minute data block, a 1-minute data block, and a per-cycle data block according to the timestamp; storing the loaded data in a data buffer in a preset data structure for standby use; information in the preset data structure includes all control linked list information, total cycle number information, human-machine operation information per cycle, page information per cycle, and network variable information per cycle; wherein the human-machine operation information recorded per cycle is screen coordinates and corresponding configuration page indexes; according to the screen coordinates and the corresponding configuration page indexes, combined with the engineering configuration page data, analyzing whether the current human-machine operation corresponds to a valid human-machine operation button and displaying it on the offline editing interface; An editing unit, wherein the editing unit edits the human-machine operation data and verifies the edited human-machine operation data, including: obtaining the human-machine operation data of the corresponding cycle from the data buffer; judging whether the current cycle meets the editable condition, specifically judging whether the current cycle is within the execution cycle time of the previous human-machine input, if so, the current cycle is locked and the human-machine operation record cannot be edited; verifying whether the edited human-machine operation is valid, specifically judging whether there are enough idle cycles to complete the corresponding function; and a generating unit, wherein the generating unit generates a new human-machine operation record according to the edited human-machine operation data and saves a simulation scene file.
Citation Information
Patent Citations
Method, system and device for distinguishing identification conflict virtual machines and storage medium
CN109697109A
Nuclear-grade safety display device and configuration-analysis system thereof
CN111488631A