A method, system and medium for realizing fast and slow time simulation
By loading and judging human-machine operations and adjusting the time parameters of the simulation kernel, the problem of difficulty in achieving fast and slow time simulation of virtual security level display stations is solved, fast and slow time simulation of virtual security level display stations is realized, and the efficiency of simulation tests is improved.
Patent Information
- Application Number
- CN202211164636.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-09-23
AI Technical Summary
It is difficult to achieve fast and slow simulation in a virtual security-level display station, which results in difficulty in speed control during the simulation process, long test time, and low test efficiency.
By loading real-time or recorded human-machine operations, it is determined whether the current simulation speed has changed, and the time parameters of the time control of the simulation core are adjusted according to the current simulation speed to achieve fast and slow simulation. Specific steps include determining the simulation mode and running status, recording or loading human-machine operations, correcting human-machine coordinates, comparing simulation timestamps, adjusting the simulation time period, writing speed factors periodically, and adjusting the time parameters of the simulation kernel.
The fast and slow time simulation of the virtual safety level display station is realized, ensuring the speed control during the simulation process, shortening the test time, improving the test efficiency, and ensuring the fast and efficient simulation test.
Smart Images

Figure CN115343965B
Abstract
Description
Technical Field
[0001] The invention relates to a method, system and medium for realizing fast and slow time simulation. Background Art
[0002] Safety Video Display Unit (SVDU) is an important component of the nuclear safety DCS platform. It is mainly used to display various safety-related parameters and support the issuance of necessary control instructions to the safety system. It belongs to nuclear safety level 1E equipment. Virtual SVDU is based on the real SVDU and develops corresponding simulation functions and simulation management functions to achieve full simulation of the real SVDU, thereby meeting the engineering requirements of full-range simulator configuration verification, operation training, fault drills, simulation tests, etc.
[0003] The fast and slow time simulation in the simulation process is to speed up or slow down the refresh speed of network data display and the time parameter passage speed of time-related controls at normal speed. Users can issue fast and slow time instructions to achieve fast and slow speed switching during the operation of the virtual SVDU, thereby achieving the purpose of controlling the speed of post-accident analysis, operation training, fault drills, etc.
[0004] The virtual SVDU supports long-term continuous operation, during which the simulation scenario files of non-volatile data stored can save up to 50 hours of historical data information. When using real-time replay or historical scenarios for configuration verification, working condition analysis, human-machine operation analysis and other functions, it is often necessary to observe the operating status at a specific simulation time point. If the speed control cannot be performed, the test time will become quite long and the test efficiency will be very low. Controlling the speed of the simulation process can provide the possibility for fast and efficient simulation tests.
[0005] The virtual SVDU uses the real SVDU simulation kernel to implement the parsing and display of the engineering configuration file, so that the virtual SVDU and the real SVDU can share the same engineering configuration file. However, the virtual SVDU needs to consider the kernel's own time slice arrangement rules and periodic restrictions when implementing fast and slow time simulation. When considering the kernel cycle during the fast and slow time simulation implementation, it is bound to consider the periodic data of the virtual SVDU. The fast and slow time simulation implementation during the simulation process needs to consider the above-mentioned restrictions, which makes the implementation difficult. Summary of the invention
[0006] In order to solve the technical problem that it is difficult to realize fast and slow time simulation in a virtual security level display station in the prior art, an embodiment of the present invention provides a method, system and medium for realizing fast and slow time simulation.
[0007] The embodiment of the present invention is achieved through the following technical solutions:
[0008] In a first aspect, an embodiment of the present invention provides a fast and slow time simulation implementation method, comprising:
[0009] Load real-time human-machine operations or load previously recorded human-machine operations;
[0010] Determine whether the current simulation speed of the loaded human-machine operation has changed. If so, adjust the time parameters of the time class controls of the simulation kernel according to the current simulation speed to achieve fast and slow simulation.
[0011] Furthermore, loading real-time human-machine operations or loading previously recorded human-machine operations; including:
[0012] Determine whether the simulation mode of the current virtual security level display station is real-time mode. If not, load the previously recorded human-machine operation; if yes, determine:
[0013] The virtual security level displays whether the running status of the station is frozen or stopped. If not, the real-time human-machine operation is recorded and loaded.
[0014] Furthermore, real-time human-machine operations are recorded and loaded; including:
[0015] Create a human-machine record structure instance according to the human-machine record structure to record real-time human-machine operations; wherein the human-machine record structure includes human-machine coordinates, human-machine page, secondary confirmation pop-up box mark and local cycle number;
[0016] Correct the human-machine coordinates in the human-machine record structure instance to eliminate invalid human-machine operations;
[0017] The current simulation time of the human-machine operation mark recorded in the human-machine record structure instance after the human-machine coordinates are corrected is used as the simulation timestamp of the human-machine operation recorded in the human-machine record structure instance after the human-machine coordinates are corrected;
[0018] The simulation timestamp is appended to the periodic data storage data linked list.
[0019] Furthermore, previously recorded human-machine operations are loaded; including:
[0020] If the human-machine operation list is not empty, execute:
[0021] a. Extract the first human-machine operation in the human-machine operation list as the human-machine operation to be loaded;
[0022] b. Compare the current simulation time with the simulation timestamp of the human-machine operation to be loaded. If the current simulation time is greater than the simulation timestamp of the human-machine operation to be loaded, load the human-machine operation to be loaded, and return to step a until the human-machine operation list is empty; if the current simulation time is not greater than the simulation timestamp of the human-machine operation to be loaded, then after the time period of the current simulation time + 1, return to step b.
[0023] Further, it is determined whether the current simulation speed of the loaded human-machine operation has been changed. If so, the time parameters of the time class control of the simulation kernel are adjusted according to the current simulation speed to realize fast and slow simulation; including:
[0024] Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel;
[0025] Compare the speed factor of the current time period with the speed factor of the previous period to determine whether the current simulation speed has changed; if so, adjust the time parameters of the time class controls of the simulation kernel according to the speed factor of the current time period to achieve fast and slow simulation.
[0026] Further, the time parameters of the time class controls of the simulation kernel are adjusted according to the speed factor of the current time period, including:
[0027] The time parameters of the time class controls of the simulation kernel can be adjusted by modifying the multiples of the function for obtaining the remaining time.
[0028] Furthermore, the speed factor of the current time period and the speed factor of the previous period are written to the simulation kernel periodically; including:
[0029] Receive fast and slow instructions;
[0030] Adjust the simulation time cycle length according to the fast and slow instructions;
[0031] Write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel at a fixed period length.
[0032] In a second aspect, an embodiment of the present invention provides a fast and slow time simulation implementation system, including:
[0033] A loading unit, used to load real-time human-machine operations or previously recorded human-machine operations;
[0034] The judgment unit is used to judge whether the current simulation speed of the loaded human-machine operation has changed. If so, the time parameters of the time class control of the simulation kernel are adjusted according to the current simulation speed to realize fast and slow simulation.
[0035] Furthermore, the loading unit comprises:
[0036] A first judgment unit is used to judge whether the simulation mode of the current virtual security level display station is the real-time mode, and if not, load the previously recorded human-machine operation;
[0037] a second judgment unit, configured to judge whether the operation state of the virtual security level display station is a frozen or stopped state when the simulation mode of the current virtual security level display station is a real-time mode; and
[0038] The recording and loading unit is used to record and load real-time human-machine operations when the running state of the virtual security level display station is not frozen or stopped.
[0039] In a third aspect, an embodiment of the present invention provides a storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are run on a computer, the fast-slow time simulation implementation method is executed.
[0040] Compared with the prior art, the embodiments of the present invention have the following advantages and beneficial effects:
[0041] A method, system and medium for realizing fast and slow time simulation according to an embodiment of the present invention loads real-time human-machine operation or previously recorded human-machine operation; determines whether the current simulation speed of the loaded human-machine operation has changed, and if so, adjusts the time parameters of the time class control of the simulation kernel according to the current simulation speed to realize fast and slow time simulation, thereby solving the technical problem that it is difficult for a virtual security-level display station to realize fast and slow time simulation in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is a flowchart of the fast and slow time simulation implementation method.
[0044] Figure 2 This is a structural diagram of the fast and slow time simulation implementation system.
[0045] Figure 3 The flowchart of the fast and slow time simulation implementation method of the virtual security level display station is shown as an example.
[0046] Figure 4 Record real-time human-machine operation flow chart for the simulation shell of the example.
[0047] Figure 5 Load the human-machine operation flow chart for the simulation shell of the example.
[0048] Figure 6 Flowchart for adjusting the timing parameters of the timing controls for the example simulation kernel.
[0049] Figure 7 Switch interface for example simulation speed. DETAILED DESCRIPTION
[0050] 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 embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0051] In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent to one of ordinary skill in the art that these specific details are not necessarily employed to practice the present invention. In other embodiments, in order to avoid obscuring the present invention, well-known structures, circuits, materials, or methods are not specifically described.
[0052] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment," "an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. In addition, it will be appreciated by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0053] In the description of the present invention, the directions or positional relationships indicated by terms such as “front”, “rear”, “left”, “right”, “up”, “down”, “vertical”, “horizontal”, “high”, “low”, “inside” and “outside” are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they should not be understood as limiting the scope of protection of the present invention.
[0054] Example
[0055] The inventors found that in order to solve the above problems, it is necessary to consider: in the storage method of real-time human-machine operation records, it is necessary to consider how to ensure that specific human-machine operation records will be reproduced at a specific simulation time point. On the other hand, from the perspective of usability, some control functions should not be affected by fast or slow simulation, such as the response time of the page switching button, the refresh frequency of the system operation status picture, and the refresh frequency of the alarm block tracking data. This requires the kernel to process time-related controls and non-time-related controls differently.
[0056] In order to solve the technical problem that it is difficult to realize fast and slow time simulation in a virtual security level display station in the prior art, an embodiment of the present invention provides a method, system and medium for realizing fast and slow time simulation. In a first aspect, an embodiment of the present invention provides a method for realizing fast and slow time simulation, comprising:
[0057] S1. Load real-time human-machine operation or load previously recorded human-machine operation;
[0058] S2. Determine whether the current simulation speed of the loaded human-machine operation has changed. If so, adjust the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation.
[0059] Therefore, the embodiment of the present invention loads real-time human-machine operations or loads previously recorded human-machine operations; determines whether the current simulation speed of the loaded human-machine operations has changed, and if so, adjusts the time parameters of the time class controls of the simulation kernel according to the current simulation speed to achieve fast and slow time simulation, thereby solving the technical problem in the prior art that it is difficult for virtual security-level display stations to achieve fast and slow time simulation.
[0060] Further, S1. loading real-time human-machine operation or loading previously recorded human-machine operation; including:
[0061] S11. Determine whether the simulation mode of the current virtual security level display station is real-time mode. If not, load the previously recorded human-machine operation; if so, determine:
[0062] The virtual security level displays whether the running status of the station is frozen or stopped. If not, the real-time human-machine operation is recorded and loaded.
[0063] Furthermore, real-time human-machine operations are recorded and loaded; including:
[0064] S111. Create a human-machine record structure instance according to the human-machine record structure to record real-time human-machine operations; wherein the human-machine record structure includes human-machine coordinates, human-machine pages, secondary confirmation pop-up box marks, and local cycle numbers;
[0065] S112. Correct the human-machine coordinates in the human-machine record structure instance to exclude invalid human-machine operations;
[0066] S113. The current simulation time of the human-machine operation mark recorded in the human-machine record structure instance after the human-machine coordinates are corrected is used as the simulation timestamp of the human-machine operation recorded in the human-machine record structure instance after the human-machine coordinates are corrected;
[0067] S114. Append the simulation timestamp to the periodic data storage data linked list.
[0068] Furthermore, previously recorded human-machine operations are loaded; including:
[0069] If the human-machine operation list is not empty, execute:
[0070] a. Extract the first human-machine operation in the human-machine operation list as the human-machine operation to be loaded;
[0071] b. Compare the current simulation time with the simulation timestamp of the human-machine operation to be loaded. If the current simulation time is greater than the simulation timestamp of the human-machine operation to be loaded, load the human-machine operation to be loaded, and return to step a until the human-machine operation list is empty; if the current simulation time is not greater than the simulation timestamp of the human-machine operation to be loaded, then after the time period of the current simulation time + 1, return to step b.
[0072] Further, S2. determining whether the current simulation speed of the loaded human-machine operation has changed, and if so, adjusting the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation; including:
[0073] S21. Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel;
[0074] S22. Compare the speed factor of the current time period with the speed factor of the previous period to determine whether the current simulation speed has changed; if so, adjust the time parameters of the time class controls of the simulation kernel according to the speed factor of the current time period to achieve fast and slow simulation.
[0075] Furthermore, the time parameters of the time class controls of the simulation kernel are adjusted according to the speed factor of the current time period, including:
[0076] The time parameters of the time class controls of the simulation kernel can be adjusted by modifying the multiples of the function for obtaining the remaining time.
[0077] Further, S21. Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel; including:
[0078] S211. Receive fast or slow instructions;
[0079] S212. Adjust the simulation time period length according to the speed command;
[0080] S213. Write the speed factor of the current time period and the speed factor of the previous period into the simulation kernel at a fixed period length.
[0081] Exemplary, a fast and slow time simulation implementation method, specifically a fast and slow time simulation implementation method of a virtual security level display station, wherein the virtual SVDU is based on the real SVDU and develops corresponding simulation functions and simulation management functions to realize the full simulation of the real SVDU, which can realize the engineering requirements such as SVDU configuration verification, operation training, fault drills, simulation tests, etc.; the simulation kernel runs periodically to ensure that non-time controls are not affected by fast and slow time simulation, including the response time of the page switching button, the refresh frequency of the system operation status picture, and the refresh frequency of the alarm block tracking data; the simulation kernel controls the time parameter flow speed of the time control in the fast and slow time simulation to ensure that the time control is affected by the fast and slow time simulation, including the refresh rate of the trend chart control, the response time of the pulse button, and the PLM test time. The simulation shell adjusts the storage and reading mechanism of periodic data to ensure that the reading of periodic data can be performed at a specific simulation time point when the simulation kernel is adapted to run periodically, so as to ensure the correctness of the real-time replay and historical scene functions. Users can issue fast and slow time commands to switch the speed of the virtual SVDU during operation, thereby achieving the purpose of controlling the speed of post-accident analysis, operation training, fault drills, etc.
[0082] For fast and slow simulation implementation methods, refer to Figure 3 As shown, it mainly includes two steps. First, determine whether the current simulation mode is real-time mode. If so, the simulation shell needs to record the real-time human-machine operation. If not, the simulation shell needs to load the recorded human-machine operation. Second, determine whether the current simulation speed has changed. If so, the simulation kernel needs to adjust the time parameters of the control. If not, the simulation kernel does not need to adjust the time parameters of the control.
[0083] Specifically, the steps include:
[0084] Step 1: Determine whether the current simulation mode is real-time mode. If it is real-time mode, proceed to step 2; otherwise, proceed to step 3.
[0085] Step 2: Simulate the shell to record real-time human-machine operations, refer to Figure 4 shown.
[0086] When the simulation shell starts to record the human-machine interface, it first needs to check whether the running status is frozen or stopped. When it is frozen or stopped, the human-machine interface will not be recorded. Only when it is in the running or stepping running state, that is, the simulation kernel is in a non-frozen state, will the human-machine interface be recorded.
[0087] When you start recording human-machine operations, you need to create a human-machine record structure instance. The members of this structure include:
[0088] □Human-machine coordinates. That is, the screen click position or hard button number;
[0089] □ HMI page. That is, the page number of the page when the HMI is triggered;
[0090] □ Second confirmation pop-up box mark. That is, whether the HMI is in the second confirmation pop-up box interface when it is triggered;
[0091] □ Local cycle number. That is, when the human-machine is triggered, the corresponding simulation kernel cycle.
[0092] After creating the initial instance of the HMI record structure, the HMI coordinates need to be corrected to exclude some invalid HMIs, improve system performance, and reduce memory or CPU consumption. Currently, the main invalid HMIs identified are those other than the HMIs with the secondary confirmation button in the secondary confirmation pop-up interface. These HMIs are meaningless and have no effect after being loaded into the simulation kernel, so they are uniformly regarded as invalid HMIs.
[0093] After completing the human-machine coordinate correction, the simulation shell will mark the current system simulation time for the human-machine operation as the timestamp of the human-machine, and then append it to the periodic data storage list. The timestamp of the human-machine operation will be used in real-time replay or historical scenes as a basis for when to load the human-machine operation. After completing the above process, the main process will enter step 4;
[0094] Step 3. Load human-machine operation in the simulation shell. For specific procedures, refer to Figure 5 As shown, when the simulation shell starts to load human-machine operations, it will first prepare a list of human-machine operations required for this real-time replay or historical scene. If the list is empty, the simulation shell will not execute the human-machine operation loading logic; if the list is not empty, the simulation shell will extract the first human-machine operation as the next human-machine operation to be loaded.
[0095] After preparing the first human-machine operation to be loaded, the simulation shell will compare the current simulation time with the simulation timestamp of the human-machine operation. If the former is not greater than the latter, it means that it is not time to load the human-machine operation. The simulation shell will wait for a cycle and compare again at the beginning of the next cycle; if the former is greater than the latter, it means that the human-machine operation can be loaded at this time, and the simulation shell starts to load the human-machine operation into the simulation kernel.
[0096] When loading the human-machine operation, the simulation shell will send the coordinates of the human-machine operation to the simulation kernel, and apply the human-machine operation to the simulation kernel. After loading, the simulation shell will remove the human-machine operation from the human-machine operation list, and then repeat the process of determining whether the human-machine operation list is empty, taking out the first human-machine operation in the human-machine operation list, and so on, until the human-machine operation list is empty.
[0097] After completing the above process, the main process will enter step 4;
[0098] Step 4. Determine whether the system has changed the simulation speed. If the simulation speed has not been changed, the simulation shell will not perform any other unnecessary related processing; otherwise, proceed to step 5;
[0099] 5. The simulation kernel adjusts the time parameters of time-related controls. For specific procedures, refer to Figure 6 shown.
[0100] The steps of adjusting the time parameters of time-type controls in the kernel during fast and slow time simulation can be roughly divided into two steps: one is the transmission of the system speed factor; the other is the adjustment of the time parameters of time-type controls.
[0101] The transmission of the system speed factor is mainly done by the simulation shell periodically writing the speed factors of the current cycle and the previous cycle to the simulation kernel. Once the speed factor changes, the simulation kernel can know it by comparison in the current cycle. When the simulation kernel knows that the speed factor has changed, it will start to adjust the time parameters of the time-type controls.
[0102] When the simulation kernel adjustment starts, the multiples of the function for obtaining the remaining time will be modified, so that when each time-type control calculates its time parameter, it will obtain a time parameter value different from the original logic due to the change in the function for obtaining the remaining time, thereby realizing fast and slow time simulation.
[0103] In the current virtual SVDU project, the above-mentioned fast and slow simulation implementation method has been implemented. The simulation speed switching interface interface required by this method is referenced in Figure 7 shown.
[0104] In the current implementation, the fast factor supports integers in the range of 1-2, and the slow factor supports integers in the range of 1-10. After clicking Set, the fast and slow time instructions can be sent to the virtual SVDU.
[0105] Taking the 10 times slower speed as an example, the response time of the configured page switching button, that is, the time interval from clicking to completing the page switching, will be less than 1s. The plotting interval of the trend chart, that is, the time interval from the completion of the previous data point to the completion of the next data point, will be about 10s.
[0106] Therefore, the exemplary method of the present invention automatically loads the configuration page data in the background, extracts the poorly readable human-machine operation information running in the embedded platform into the screen touch point coordinate information corresponding to the SVDU screen and hard buttons, and saves it. The screen touch point coordinate information is innovatively loaded at a reasonable and appropriate time, and while cooperating with the simulation kernel to run periodically, it can ensure that the periodically stored data can be accurately read; at the same time, considering the convenience, the time type controls and non-time type controls are separated in the simulation kernel, breaking through the limitation of the consistency of the control time parameters, and the convenience of operation can still be guaranteed in the slow 10 times mode. When using real-time replay or historical scenes for configuration verification, working condition analysis, human-machine operation analysis and other functions, this method can perform fast and efficient simulation tests, greatly shortening the test time and improving the test efficiency while ensuring the accuracy of the experiment.
[0107] In a second aspect, an embodiment of the present invention provides a fast and slow time simulation implementation system, referring to Figure 2 As shown, including:
[0108] A loading unit, used to load real-time human-machine operations or previously recorded human-machine operations;
[0109] The judgment unit is used to judge whether the current simulation speed of the loaded human-machine operation has changed. If so, the time parameters of the time class control of the simulation kernel are adjusted according to the current simulation speed to realize fast and slow simulation.
[0110] Furthermore, the loading unit comprises:
[0111] A first judgment unit is used to judge whether the simulation mode of the current virtual security level display station is the real-time mode, and if not, load the previously recorded human-machine operation;
[0112] a second judgment unit, configured to judge whether the operation state of the virtual security level display station is a frozen or stopped state when the simulation mode of the current virtual security level display station is a real-time mode; and
[0113] The recording and loading unit is used to record and load real-time human-machine operations when the running state of the virtual security level display station is not frozen or stopped.
[0114] In a third aspect, an embodiment of the present invention provides a storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are run on a computer, the fast-slow time simulation implementation method is executed.
[0115] 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. A fast and slow time simulation implementation method, characterized in that: include: Load real-time human-machine operations or load previously recorded human-machine operations; Determine whether the current simulation speed of the loaded human-machine operation has changed. If so, adjust the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation; Determine whether the current simulation speed of the loaded human-machine operation has changed. If so, adjust the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation; including: Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel; Compare the speed factor of the current time period with the speed factor of the previous period to determine whether the current simulation speed has changed; if so, adjust the time parameters of the time class controls of the simulation kernel according to the speed factor of the current time period to achieve fast and slow simulation.
2. The fast and slow time simulation implementation method as claimed in claim 1, characterized in that: Load real-time human-machine operations or load previously recorded human-machine operations; including: Determine whether the simulation mode of the current virtual security level display station is real-time mode. If not, load the previously recorded human-machine operation; if yes, determine: The virtual security level displays whether the running status of the station is frozen or stopped. If not, the real-time human-machine operation is recorded and loaded.
3. The fast and slow time simulation implementation method as claimed in claim 2, characterized in that: Record real-time human-machine operations and load them; including: Create a human-machine record structure instance according to the human-machine record structure to record real-time human-machine operations; wherein the human-machine record structure includes human-machine coordinates, human-machine page, secondary confirmation pop-up box mark and local cycle number; Correct the human-machine coordinates in the human-machine record structure instance to eliminate invalid human-machine operations; The current simulation time of the human-machine operation mark recorded in the human-machine record structure instance after the human-machine coordinates are corrected is used as the simulation timestamp of the human-machine operation recorded in the human-machine record structure instance after the human-machine coordinates are corrected; The simulation timestamp is appended to the periodic data storage data linked list.
4. The fast and slow time simulation implementation method as claimed in claim 2, characterized in that: Load previously recorded human-machine operations; including: If the human-machine operation list is not empty, execute: a. Extract the first human-machine operation in the human-machine operation list as the human-machine operation to be loaded; b. Compare the current simulation time with the simulation timestamp of the human-machine operation to be loaded. If the current simulation time is greater than the simulation timestamp of the human-machine operation to be loaded, load the human-machine operation to be loaded, and return to step a until the human-machine operation list is empty; if the current simulation time is not greater than the simulation timestamp of the human-machine operation to be loaded, then after the time period of the current simulation time + 1, return to step b.
5. The fast and slow time simulation implementation method as claimed in claim 1, characterized in that: Adjust the time parameters of the simulation kernel's time-type controls according to the speed factor of the current time period, including: The time parameters of the time class controls of the simulation kernel can be adjusted by modifying the multiples of the function for obtaining the remaining time.
6. The fast and slow time simulation implementation method as claimed in claim 5, characterized in that: Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel; including: Receive fast and slow instructions; Adjust the simulation time cycle length according to the fast and slow instructions; Write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel at a fixed period length.
7. A fast and slow time simulation implementation system, characterized in that: include: A loading unit, used to load real-time human-machine operations or previously recorded human-machine operations; A judgment unit, used to judge whether the current simulation speed of the loaded human-machine operation has been changed, and if so, to adjust the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation; Determine whether the current simulation speed of the loaded human-machine operation has changed. If so, adjust the time parameters of the time class control of the simulation kernel according to the current simulation speed to achieve fast and slow simulation; including: Periodically write the speed factor of the current time period and the speed factor of the previous period to the simulation kernel; Compare the speed factor of the current time period with the speed factor of the previous period to determine whether the current simulation speed has changed; if so, adjust the time parameters of the time class controls of the simulation kernel according to the speed factor of the current time period to achieve fast and slow simulation.
8. The fast and slow time simulation implementation system as claimed in claim 7, characterized in that: The loading unit comprises: A first judgment unit is used to judge whether the simulation mode of the current virtual security level display station is the real-time mode, and if not, load the previously recorded human-machine operation; a second judgment unit, configured to judge whether the operation state of the virtual security level display station is a frozen or stopped state when the simulation mode of the current virtual security level display station is a real-time mode; and The recording and loading unit is used to record and load real-time human-machine operations when the running state of the virtual security level display station is not frozen or stopped.
9. A storage medium, characterized in that: The storage medium stores instructions, and when the instructions are executed on a computer, the fast-slow time simulation implementation method as claimed in any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Carrier rocket semi-physical simulation method supporting quick virtuality and reality interchange
CN106844822A
Method and device for simulating elevator scene, computer device and storage medium
CN108205265A
Simulation circuit reliability simulation method based on dynamic step length
CN114692542A
Simulator apparatus and simulation method
US20070288218A1
Running method for embedded type virtual device and system
WO2018072445A1
