Interface updating method and device, computer device and storage medium

By establishing a mapping relationship between variable names, variable values ​​and nodes in the human-machine interface, and using the buffer queue and node index relationship to quickly update the human-machine interface, the problem of slow HMI response speed is solved, and the interface update efficiency and system performance are improved.

CN119356786BActive Publication Date: 2025-10-10HYGON INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411564434.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-10-10
Estimated Expiration
2044-11-04

AI Technical Summary

Technical Problem

In the field of industrial automation control, the human-machine interface (HMI) has a slow response speed, which can easily lead to problems such as slow page rendering or page freezing.

Method used

By obtaining the buffer queue and node index relationship of the simulation data to be updated in the human-machine interface, a mapping relationship between variable names, variable values ​​and nodes is established, and relevant nodes are quickly found and updated to achieve rapid update of the human-machine interface.

Benefits of technology

It improves the response speed and query efficiency of the human-machine interface, reduces resource waste, and optimizes system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356786B_ABST
    Figure CN119356786B_ABST
Patent Text Reader

Abstract

The application relates to an interface updating method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a buffer queue of to-be-updated simulation data in a human-computer interface, and acquiring a node index relationship of the human-computer interface; the buffer queue represents a mapping relationship between a variable name and a corresponding variable value of the to-be-updated simulation data; the node index relationship represents a mapping relationship between a node where simulation data is located in the human-computer interface and the variable name of the simulation data; and the human-computer interface is updated according to the buffer queue and the node index relationship. The method can improve the response speed of the human-computer interface.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an interface updating method and device, computer equipment and storage medium. BACKGROUND

[0002] Human Machine Interface (HMI) refers to the way people interact with machines, as well as the way people acquire and manage information. HMI technology effectively interacts between the physical world and computer systems, enabling fast interaction between people and machines.

[0003] In the field of industrial automation control, HMI technology has become an important means of machine operation and monitoring. HMI can realize the interaction and control between users and industrial automation devices through graphical interface or touch screen. The data update amount in the industrial field is generally large and the data update speed is fast, which is prone to slow page rendering or page freezing.

[0004] Therefore, how to improve the response speed of HMI is a problem to be solved. SUMMARY

[0005] Therefore, it is necessary to provide an interface updating method, device, computer equipment and storage medium to improve the response speed of human-machine interface.

[0006] In a first aspect, the present application provides an interface updating method, comprising:

[0007] Obtaining a buffer queue of to-be-updated simulation data in a human-machine interface, and obtaining a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between a variable name and a corresponding variable value of the to-be-updated simulation data; the node index relationship represents a mapping relationship between a node where simulation data is located in the human-machine interface and a variable name of the simulation data;

[0008] Updating the human-machine interface according to the buffer queue and the node index relationship.

[0009] The interface updating method provided in the embodiments of the present application comprises the following steps: obtaining a buffer queue of to-be-updated simulation data in a human-machine interface; obtaining a node index relationship of the human-machine interface; and updating the human-machine interface according to the buffer queue and the node index relationship. The buffer queue represents a mapping relationship between variable names of the to-be-updated simulation data and corresponding variable values, and the node index relationship represents a mapping relationship between nodes of the human-machine interface where simulation data is located and the variable names of the simulation data. In the method, when the human-machine interface needs to be updated, the human-machine interface is updated according to the buffer queue of the to-be-updated simulation data in the human-machine interface and the node index relationship of the human-machine interface. The buffer queue of the to-be-updated simulation data comprises the mapping relationship between the variable names of the to-be-updated simulation data and the corresponding variable values, and the node index relationship of the human-machine interface comprises the mapping relationship between the nodes of the human-machine interface where simulation data is located and the variable names of the simulation data. Therefore, the mapping relationship between the variable names and the variable values and the mapping relationship between the variable names and the nodes exist, and the related nodes and the corresponding variable values can be quickly found according to the two mapping relationships, the updating of the simulation data in the human-machine interface is quickly completed, and the updating of the human-machine interface is further completed. In other words, the mapping relationship between the variable names and the variable values and the mapping relationship between the variable names and the nodes are established, so that the related nodes can be quickly located when the nodes are searched and updated, the query efficiency is improved, the updating of the human-machine interface is quickly completed, and the response speed of the human-machine interface is improved.

[0010] In one of the embodiments, the buffer queue of the to-be-updated simulation data in the human-machine interface is obtained in the following manner:

[0011] At least one variable value updated by the to-be-updated simulation data in an updating period and a variable name of the to-be-updated simulation data are obtained.

[0012] A mapping relationship between each variable value and the variable name is stored, and a buffer queue is obtained.

[0013] In the interface updating method provided in the embodiments of the present application, at least one variable value updated by the to-be-updated simulation data in an updating period and a variable name of the to-be-updated simulation data are obtained, and a mapping relationship between each variable value and the variable name is stored, and a buffer queue is obtained. In the method, an optional manner of quickly obtaining the buffer queue is provided. By obtaining a plurality of variable values updated by the to-be-updated simulation data in the updating period, a mapping relationship between each variable value and the variable name of the to-be-updated simulation data can be established, and the plurality of mapping relationships constitute the buffer queue of the to-be-updated simulation data, thereby laying a foundation for data query for updating the human-machine interface.

[0014] In one of the embodiments, the node index relationship of the human-machine interface is obtained in the following manner:

[0015] A plurality of specific marks in the simulation data are obtained, and a plurality of variable names are separated from the specific marks.

[0016] In the form of key-value pairs, each variable name and the node information corresponding to each variable name are stored to obtain the node index relationship of the human-computer interface.

[0017] In the interface updating method provided in the embodiment of the present application, multiple specific tags in the simulation data are obtained, and multiple variable names are separated from each specific tag. Then, each variable name and the node information corresponding to each variable name are stored in the form of a key-value pair to obtain a node index relationship of the human-computer interface. In this method, multiple variable names in the simulation data can be quickly separated from the simulation data through specific tags, laying the foundation for quickly and accurately constructing a node index relationship. Then, each variable name and the corresponding node information are stored in the form of a key-value pair, which can quickly construct a node index relationship and provide data support for the rapid response of the human-computer interface.

[0018] In one embodiment, each variable name and the node information corresponding to each variable name are stored in the form of key-value pairs to obtain a node index relationship of the human-computer interface, including:

[0019] Get the historical node index relationship;

[0020] If each variable name exists in the historical node index relationship, then each node information is added to the position of the value corresponding to each variable name to obtain the node index relationship;

[0021] If each variable name does not exist in the historical node index relationship, each variable name is used as a key, and the node information corresponding to each variable name is used as a value, and is stored in the historical node index relationship to obtain a node index relationship.

[0022] In the interface update method provided by the embodiment of the present application, a historical node index relationship is obtained. If the variable name exists in the historical node index relationship, the node information is added to the position of the value corresponding to each variable name to obtain a node index relationship. If the variable name does not exist in the historical node index relationship, each variable name is used as a key and the node information corresponding to each variable name is used as a value to store it in the historical node index relationship to obtain a node index relationship. In this method, by obtaining the historical node index relationship, the relationship between each variable name and the node can continue to establish a mapping relationship on the basis of the historical node index relationship, providing an optional way to quickly determine the node index relationship; when each variable name exists in the historical node index relationship, the node information corresponding to each variable name can be added to the historical node index relationship. When each variable name does not exist in the historical node index relationship, the new variable name and the corresponding node information are stored in the historical node index relationship in the form of a key-value pair, that is, the node index relationship is obtained, providing data support for fast query of nodes.

[0023] In one embodiment, the method further comprises:

[0024] Obtain multiple rectangles generated in the new canvas, and determine each rectangle as a node of multiple devices corresponding to the human-machine interface;

[0025] According to the device data corresponding to each node, obtain the variable name corresponding to each node;

[0026] Bind each variable name to the attributes of each node to generate simulation data.

[0027] In the interface update method provided in an embodiment of the present application, multiple rectangles generated in a newly created canvas are obtained, and each rectangle is determined as a node of multiple devices corresponding to the human-machine interface. Then, based on the device data corresponding to each node, the variable name corresponding to each node is obtained. Then, each variable name is bound to the attribute of each node to generate simulation data. This method provides an optional method for quickly generating simulation data: by generating a rectangle as a node in the newly created canvas, and then based on the device data corresponding to each node, the variable name corresponding to each node is obtained. The variable name is bound to the attribute of the node so that each variable name is attributed to the corresponding device node. Based on this, simulation data of the human-machine interface is generated, providing data support for the construction of the human-machine interface.

[0028] In one embodiment, updating the human-machine interface according to the relationship between the buffer queue and the node index includes:

[0029] According to the buffer queue, obtain the latest variable value of the simulation data to be updated;

[0030] Update the human-machine interface based on the latest variable values ​​and node index relationships.

[0031] In the interface update method provided in the embodiment of the present application, the latest variable values ​​of the simulation data to be updated are obtained from a buffer queue, and then the human-machine interface is updated based on the latest variable values ​​and the node index relationship. This method provides an optional method for quickly updating the human-machine interface; by obtaining the latest variable values ​​of the simulation data to be updated, the corresponding node can be quickly queried from the node index relationship based on the latest variable values, and the variable values ​​can be updated to achieve the update of the human-machine interface. The update is only based on the latest variable values, which reduces resource waste, improves the response speed of the human-machine interface, and improves system performance.

[0032] In one embodiment, updating the human-machine interface according to the latest variable value and node index relationship includes:

[0033] According to the variable name and node index relationship corresponding to the latest variable value, multiple nodes matching the variable name are obtained;

[0034] Replace the variable value corresponding to the variable name under each node with the latest variable value to obtain the updated simulation data;

[0035] The updated simulation data is re-rendered to obtain an updated human-computer interface.

[0036] In the interface update method provided in the embodiment of the present application, multiple nodes matching the variable name are obtained based on the variable name corresponding to the latest variable value and the node index relationship, and the latest variable value is then used to replace the variable value corresponding to the variable name under each node to obtain updated simulation data. The updated simulation data is then re-rendered to obtain an updated human-computer interface. In this method, multiple nodes that need to be updated can be matched in the node index relationship based on the variable name corresponding to the latest variable value, and the latest variable value is then replaced with each node that needs to be updated. This can quickly complete the update of the human-computer interface, thereby improving the update efficiency of the human-computer interface.

[0037] In a second aspect, the present application further provides an interface updating device, comprising:

[0038] The relationship acquisition module is used to obtain a buffer queue of simulation data to be updated in the human-machine interface, and to obtain a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value; the node index relationship represents a mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data;

[0039] The interface update module is used to update the human-computer interface according to the buffer queue and the node index relationship.

[0040] In a third aspect, embodiments of the present application further provide a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any embodiment of the first aspect.

[0041] In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the embodiments of the first aspect above.

[0042] In a fifth aspect, embodiments of the present application further provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any one of the embodiments of the first aspect.

[0043] The above-mentioned interface updating method, apparatus, computer equipment and storage medium obtain the buffer queue of the simulation data to be updated in the human-computer interface, and obtain the node index relationship of the human-computer interface, and then update the human-computer interface according to the buffer queue and the node index relationship, wherein the buffer queue represents the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value, and the node index relationship represents the mapping relationship between the node where the simulation data is located in the human-computer interface and the variable name of the simulation data. In the method, when the human-machine interface needs to be updated, the human-machine interface is updated through the buffer queue of the simulation data to be updated in the human-machine interface and the node index relationship of the human-machine interface. The buffer queue of the simulation data to be updated includes the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value. The node index relationship of the human-machine interface includes the mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data. In this way, there is a mapping between the variable name and the variable value, and a mapping between the variable name and the node. According to the two mapping relationships, the relevant nodes and the corresponding variable values ​​can be quickly found, the update of the simulation data in the human-machine interface can be quickly completed, and then the update of the human-machine interface can be completed. This is equivalent to establishing a mapping relationship between the variable name and the variable value and a mapping relationship between the variable name and the node, so that the relevant node can be quickly located when searching and updating the node, thereby improving the query efficiency, quickly completing the update of the human-machine interface, and improving the response speed of the human-machine interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 This is an application environment diagram of an interface updating method in one embodiment;

[0046] Figure 2 1 is a flow chart of an interface updating method according to an embodiment;

[0047] Figure 3 A schematic diagram of a process for obtaining a buffer queue in one embodiment;

[0048] Figure 4 A schematic diagram of a process for obtaining a node index relationship in one embodiment;

[0049] Figure 5 A schematic diagram of a process for obtaining a node index relationship in another embodiment;

[0050] Figure 6A schematic diagram of a process for generating simulation data in one embodiment;

[0051] Figure 7 A schematic diagram of a process for updating a human-machine interface in one embodiment;

[0052] Figure 8 A schematic diagram of a process for updating a human-machine interface in one embodiment;

[0053] Figure 9 A flowchart of an interface updating method according to another embodiment;

[0054] Figure 10 This is a schematic diagram of the structure of an interface updating device in one embodiment;

[0055] Figure 11 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0057] The interface updating method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Optionally, a human-machine interface is integrated in the terminal 102 to display the human-machine interface. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented as an independent server or a server cluster consisting of multiple servers.

[0058] The technical background of this application is described below.

[0059] The human-machine interface (HMI) refers to the interaction between humans and machines, as well as how humans acquire and manage information. HMI technology effectively connects the physical world and computer systems, enabling efficient interaction between humans and machines.

[0060] In industrial control and related fields, the use of graphical representations to simulate the actual operating status of industrial equipment is common. Typically, graphical representations in human-machine interfaces (HMIs) enable user interaction and control of industrial automation equipment. Given the high volume and speed of data updates in the industrial sector, choosing an efficient data-driven approach is crucial to avoid slow page rendering or page freezes, thereby improving HMI responsiveness.

[0061] Based on this, an embodiment of the present application provides an interface update method. When the human-machine interface needs to be updated, the human-machine interface is updated through the buffer queue of the simulation data to be updated in the human-machine interface and the node index relationship of the human-machine interface. The buffer queue of the simulation data to be updated includes the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value. The node index relationship of the human-machine interface includes the mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data. In this way, there is a mapping between the variable name and the variable value, and a mapping between the variable name and the node. According to the two mapping relationships, the relevant nodes and the corresponding variable values ​​can be quickly found, the update of the simulation data in the human-machine interface can be quickly completed, and then the update of the human-machine interface can be completed. This is equivalent to establishing a mapping relationship between the variable name and the variable value and a mapping relationship between the variable name and the node, so that the relevant node can be quickly located when searching and updating the node, thereby improving the query efficiency, quickly completing the update of the human-machine interface, and improving the response speed of the human-machine interface.

[0062] In an exemplary embodiment, Figure 2 As shown, an interface update method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate the process, including the following steps 201 to 202.

[0063] S201, obtain the buffer queue of the simulation data to be updated in the human-computer interface, and obtain the node index relationship of the human-computer interface; the buffer queue represents the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value; the node index relationship represents the mapping relationship between the node where the simulation data is located in the human-computer interface and the variable name of the simulation data.

[0064] The human-machine interface (HMI) is the interface between humans and machines, serving as the medium for information exchange and command transmission between the two. It includes not only hardware components, such as touch screens and buttons, but also software, which uses visualization to establish a connection between the operator and the machine, allowing for information exchange. The design of the HMI aims to create a user-friendly, easy-to-use interface, improve the efficiency and reliability of the control system, and reduce operational errors and accidents.

[0065] The functions of the human-machine interface include presenting the control system's status, parameters, and other information to the operator in an intuitive and user-friendly manner. It also transmits the operator's commands to the control system, enabling control and adjustment of the control system. The human-machine interface consists of both hardware and software. The hardware, including touch screens, buttons, and indicator lights, is the physical device that directly interacts with the user. The software, implemented through computer programs, provides functions such as user interface design, information display, and command processing.

[0066] Human-machine interfaces (HMIs) are widely used in industrial control, medical equipment, and household appliances. Taking the industrial control field as an example, HMIs are widely used in various control systems, providing intuitive operation interfaces and status displays.

[0067] Simulation data refers to the data required to build a human-machine interface (HMI). It is used to simulate the operating environment and data flow of an actual industrial control system. This data can include data uploaded by real devices in the actual industrial control system, as well as canvas data generated when building the HMI. Pending simulation data refers to data generated by real-world devices that are updated in real time but have not yet been updated in the HMI.

[0068] In a human-machine interface, there are two basic elements: nodes and variables. Nodes correspond to real devices, and a real device can have multiple nodes. For example, if a real device, such as an industrial machine, has three screens, each screen can correspond to a node. A variable is data updated by the real device and consists of a variable name and a variable value. For example, if the speed data of a real device is updated in real time, this speed data is a variable. The variable name can be "speed", and the variable value can be a specific numerical value, such as 1000 rpm (revolutions per minute).

[0069] The buffer queue stores the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value. Usually, data updates are very fast. Within the preset time, a variable data may be updated multiple times, that is, one variable corresponds to one variable name and multiple variable values. These variable values ​​are the numerical values ​​or data updated each time within the preset time.

[0070] In one embodiment, data from a real device can be collected using a data acquisition device, and a buffer queue can be constructed using the collected data. For example, the data acquisition device collects corresponding data each time the data changes. Each collected data within a preset time period can be sent to a server, which then establishes a mapping relationship for the updated data within the preset time period to create a buffer queue. For example, if a piece of data is updated five times within a preset time period, a mapping relationship can be established for the data that was updated multiple times within the preset time period. In this case, the data has one variable name and five variable values. A mapping relationship can be established between the variable name and the corresponding five variable values ​​to create a buffer queue.

[0071] In another embodiment, a buffer queue can be constructed using the update data in the database. For example, each updated data is stored in the database, and the time corresponding to each update is also stored in the database. Based on a preset time, multiple update data can be searched for in the update time in the database. The multiple update data only have different variable values, but different variable names. For example, they are all speed data of the same device. After finding multiple update data, a mapping relationship is established between the multiple update data. The multiple update data correspond to a variable name and multiple variable values. A mapping relationship is established between the variable name and the corresponding multiple variable values ​​to obtain a buffer queue.

[0072] The node index relationship stores the mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data. When the human-machine interface is initially constructed, an index relationship is established between the node corresponding to the simulation data and the variable name corresponding to the simulation data. For example, when constructing the human-machine interface, a node corresponding to each real device is first established in the canvas, and the data of each real device at this time is also uploaded to the server. The server establishes a mapping relationship between the variable name corresponding to each data and the node where it is located. Among them, when the real device uploads data, it also uploads the data of the corresponding node. For example, a real device includes three screens, and the data corresponding to the three screens are uploaded to the server respectively. In this way, the server can determine that the data of one screen corresponds to the data of one node, that is, the node where the data is located is clear, and it can quickly determine which data corresponds to which node, and then quickly and accurately establish a mapping relationship between the variable name of the data and the node where it is located.

[0073] In this embodiment, when obtaining the node index relationship between the buffer queue of the simulation data to be updated and the human-machine interface, it can be obtained under certain conditions or requirements, and the human-machine interface can be updated.

[0074] In one implementation, when an update requirement of the human-machine interface is detected, a buffer queue of simulation data to be updated in the human-machine interface is obtained, and a node index relationship of the human-machine interface is obtained.

[0075] The update requirement of the human-computer interface can be triggered according to a preset automatic program, for example, when the uploaded simulation data reaches a preset threshold, the update requirement of the human-computer interface is triggered according to the preset automatic program.

[0076] In another implementation manner, when a preset update period is reached, a buffer queue of the simulation data to be updated in the human-computer interface is obtained, and a node index relationship of the human-computer interface is obtained.

[0077] The preset update period is a period for updating the human-computer interface in advance. When the update period is not reached, the server can continuously collect the data updated during the period and construct the buffer queue.

[0078] In this embodiment, the relationship between the variables and the nodes is managed through two mapping relationships, which reduces the direct coupling relationship and facilitates maintenance and modification.

[0079] S202, updating the human-computer interface according to the buffer queue and the node index relationship.

[0080] After the buffer queue and the node index relationship are obtained, the node and the data to be updated can be quickly located according to the mapping relationship in the buffer queue and the node index relationship, and the update of the human-computer interface is quickly realized.

[0081] For example, the variable name of the simulation data to be updated can be obtained according to the mapping relationship between the variable name and the corresponding variable value of the simulation data to be updated in the buffer queue, and then the node corresponding to the variable name is matched according to the mapping relationship between the node where the simulation data is located and the variable name of the simulation data in the node index relationship, the matched node is determined as the node to be updated, and then the variable value in the buffer queue is updated to the matched node. In this way, the simulation data corresponding to the node to be updated is updated, and then the updated simulation data is rendered, that is, the human-computer interface is also updated.

[0082] In the interface update method provided in the embodiment of the present application, the buffer queue of the simulation data to be updated in the human-computer interface is obtained, and the node index relationship of the human-computer interface is obtained, and then the human-computer interface is updated according to the buffer queue and the node index relationship, wherein the buffer queue represents the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value, and the node index relationship represents the mapping relationship between the node where the simulation data is located in the human-computer interface and the variable name of the simulation data. In the method, when the human-machine interface needs to be updated, the human-machine interface is updated through the buffer queue of the simulation data to be updated in the human-machine interface and the node index relationship of the human-machine interface. The buffer queue of the simulation data to be updated includes the mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value. The node index relationship of the human-machine interface includes the mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data. In this way, there is a mapping between the variable name and the variable value, and a mapping between the variable name and the node. According to the two mapping relationships, the relevant nodes and the corresponding variable values ​​can be quickly found, the update of the simulation data in the human-machine interface can be quickly completed, and then the update of the human-machine interface can be completed. This is equivalent to establishing a mapping relationship between the variable name and the variable value and a mapping relationship between the variable name and the node, so that the relevant node can be quickly located when searching and updating the node, thereby improving the query efficiency, quickly completing the update of the human-machine interface, and improving the response speed of the human-machine interface.

[0083] Based on the above embodiment, an embodiment is provided to illustrate the process of obtaining the buffer queue of simulation data to be updated in the human-machine interface.

[0084] In an exemplary embodiment, Figure 3 As shown, the buffer queue of simulation data to be updated in the human-machine interface is obtained, including:

[0085] S301 , obtaining at least one variable value updated in an update cycle of simulation data to be updated and a variable name of the simulation data to be updated.

[0086] A simulation data can be updated at least once in an update cycle. Each updated data is uploaded by the real device to the server, and the server stores it in the update database. At least one variable value updated in the simulation data to be updated in the update cycle can be determined based on the update database.

[0087] For example, after each data update is completed in the previous update cycle, all updated data in the update database is deleted to store the data updated in the next update cycle. In this way, the update database does not include the updated data of the previous update cycle, and the updated data at this time can be directly obtained from the update database. The updated data at this time is the data that will be updated to the human-machine interface.

[0088] Taking the speed data as an example, assuming that the update cycle is every 500ms, and within this update cycle, the speed data changes three times, and the updated data are 800rpm, 810rpm, and 820rpm, respectively, then 800rpm, 810rpm, and 820rpm are the simulation data to be updated. The update cycle can be set according to actual needs and is not limited in this embodiment of the application.

[0089] After obtaining the simulation data to be updated from the update database, the variable value and variable name are obtained according to the simulation data to be updated. Taking the above simulation data to be updated at 800rpm, 810rpm, and 820rpm as an example, the corresponding variable values ​​are 800, 810, and 820 respectively, and the corresponding variable name is speed.

[0090] S302: Store a mapping relationship between each variable value and the variable name to obtain a buffer queue.

[0091] After obtaining the variable value and variable name of the data to be updated, a mapping relationship is established between the variable name and the variable value to obtain a buffer queue.

[0092] In the embodiment of the present application, each variable value is stored as a mapping relationship with the variable name to obtain a buffer queue. Taking the above-mentioned simulation data to be updated at 800rpm, 810rpm, and 820rpm as an example, the mapping relationships in the buffer queue are speed-800, speed-810, and speed-820, respectively. The mapping relationship can be stored in a Map structure. For example, before constructing the buffer queue, a Map structure is preset to store the corresponding relationship between variable names and variable values.

[0093] In the interface update method provided in an embodiment of the present application, a buffer queue is obtained by obtaining at least one variable value updated in the simulation data to be updated within an update cycle and the variable name of the simulation data to be updated, and then storing a mapping relationship between each variable value and the variable name. This method provides an optional method for quickly obtaining a buffer queue; by obtaining multiple variable values ​​updated in the simulation data to be updated within an update cycle, a mapping relationship can be established between each variable value and the variable name of the simulation data to be updated. These multiple mapping relationships constitute the buffer queue of the simulation data to be updated, laying the foundation for updating data queries in the human-computer interface.

[0094] Based on the above embodiment, an embodiment is provided to illustrate the process of obtaining the node index relationship of the human-machine interface.

[0095] In an exemplary embodiment, Figure 4 As shown, get the node index relationship of the human-machine interface, including:

[0096] S401, obtaining multiple specific tags in simulation data, and separating multiple variable names from each specific tag.

[0097] As mentioned previously, simulation data includes the canvas data generated when building the human-machine interface. Before generating the canvas data, multiple specific tags are added. Therefore, the simulation data contains these specific tags. Specific tags are added to variable names to quickly locate them. For example, data with specific tags is %_VarName_%, where %_ _% is the specific tag and VarName is the variable name.

[0098] Simulation data includes multiple specific tags. You can traverse the entire simulation data and search for the specific tag %_ _%. When you find the specific tag, separate the variable name from the data containing the specific tag. For example, when traversing the entire simulation data, you find node data such as %_VarName_% and separate the VarName between the specific tags %_ _%. This is the variable name.

[0099] S402 , storing each variable name and the node information corresponding to each variable name in the form of a key-value pair, and obtaining a node index relationship of the human-computer interface.

[0100] After obtaining the variable names, a mapping relationship is established between each variable name and the node information corresponding to each variable name to obtain a node index relationship of the human-computer interface.

[0101] Before building the human-computer interface and generating canvas data, the nodes and corresponding variable names have been bound, so the node information corresponding to each variable name can be directly obtained.

[0102] In an embodiment of the present application, the key-value pair format can also be a Map structure. When constructing a node index relationship, a Map structure is generated in advance, with each variable name as the key and the node information corresponding to each variable name as the value, which is stored in the Map structure to obtain the node index relationship of the human-computer interface.

[0103] In the interface updating method provided in the embodiment of the present application, multiple specific tags in the simulation data are obtained, and multiple variable names are separated from each specific tag. Then, each variable name and the node information corresponding to each variable name are stored in the form of a key-value pair to obtain a node index relationship of the human-computer interface. In this method, multiple variable names in the simulation data can be quickly separated from the simulation data through specific tags, laying the foundation for quickly and accurately constructing a node index relationship. Then, each variable name and the corresponding node information are stored in the form of a key-value pair, which can quickly construct a node index relationship and provide data support for the rapid response of the human-computer interface.

[0104] Based on the above embodiments, the process of storing each variable name and the node information corresponding to each variable name in the form of key-value pair to obtain the node index relationship of the human-machine interface is described as an embodiment.

[0105] In one exemplary embodiment, as shown in Figure 5 the node index relationship of the human-machine interface is obtained by storing each variable name and the node information corresponding to each variable name in the form of key-value pair, including:

[0106] S501, obtaining a historical node index relationship.

[0107] The index relationship between the node and the variable name is stored one by one. If a plurality of variable names and the corresponding node information have been stored in the mapping relationship before, they can be taken as the historical node index relationship. When there are still other mapping relationships between variable names and nodes that have not been stored, the mapping relationship can be continuously stored on the basis of the historical node index relationship to constitute a completed node index relationship.

[0108] S502, if each variable name exists in the historical node index relationship, the node information is added to the position corresponding to the value of each variable name to obtain the node index relationship.

[0109] For any variable name, the variable name is compared with the variable names in the historical node index relationship. If the variable name exists in the historical node index relationship, that is, the mapping relationship between the variable name and part of the nodes has been stored in the historical node index relationship, the node information corresponding to the variable name is added to the position corresponding to the value of the variable name. The mapping relationship between all variable names and nodes is stored in the historical node index relationship to obtain the node index relationship.

[0110] S503, if each variable name does not exist in the historical node index relationship, the variable name is taken as the key and the node information corresponding to the variable name is taken as the value, which is stored in the historical node index relationship to obtain the node index relationship.

[0111] For any variable name, if the variable name does not exist in the historical node index relationship, the variable name is taken as the key and the node information corresponding to the variable name is taken as the value, which is stored in the historical node index relationship. The mapping relationship between all variable names and nodes is stored in the historical node index relationship to obtain the node index relationship.

[0112] In the interface update method provided by the embodiment of the present application, a historical node index relationship is obtained. If the variable name exists in the historical node index relationship, the node information is added to the position of the value corresponding to each variable name to obtain a node index relationship. If the variable name does not exist in the historical node index relationship, each variable name is used as a key and the node information corresponding to each variable name is used as a value to store it in the historical node index relationship to obtain a node index relationship. In this method, by obtaining the historical node index relationship, the relationship between each variable name and the node can continue to establish a mapping relationship on the basis of the historical node index relationship, providing an optional way to quickly determine the node index relationship; when each variable name exists in the historical node index relationship, the node information corresponding to each variable name can be added to the historical node index relationship. When each variable name does not exist in the historical node index relationship, the new variable name and the corresponding node information are stored in the historical node index relationship in the form of a key-value pair, that is, the node index relationship is obtained, providing data support for fast query of nodes.

[0113] Based on the above embodiment, an embodiment is provided to illustrate the generation process of the above simulation data.

[0114] In an exemplary embodiment, Figure 6 As shown, the method further includes:

[0115] S601 , obtaining multiple rectangles generated in the new canvas, and determining each rectangle as a node of multiple devices corresponding to the human-machine interface.

[0116] In the embodiment of the present application, when constructing a human-computer interface, a new canvas is first created, and then a new node is created in the new canvas.

[0117] For example, you can create a new canvas in the graph editing engine and then generate a rectangle in the canvas. A rectangle represents a node. A device can correspond to multiple nodes. Multiple rectangles are generated in the new canvas as nodes for multiple devices. Here, the device refers to the real device mentioned above.

[0118] S602: Obtain the variable name corresponding to each node according to the device data corresponding to each node.

[0119] In the embodiment of the present application, the device data corresponding to each node is uploaded to the server through each device.

[0120] Each data has a variable name. Based on the device data corresponding to each node, the variable name corresponding to each node is obtained. For example, keyword extraction can be performed on the device data corresponding to each node to obtain the variable name corresponding to each node from the keyword.

[0121] S603: Bind each variable name with the attribute of each node to generate simulation data.

[0122] In the embodiment of the present application, each node includes multiple attributes, such as size, position, content, etc.

[0123] After obtaining the variable name of each node, each variable name can be bound to one of the attributes of each node and a specific tag can be added. Then, the canvas data can be exported to generate simulation data.

[0124] In the interface update method provided in an embodiment of the present application, multiple rectangles generated in a newly created canvas are obtained, and each rectangle is determined as a node of multiple devices corresponding to the human-machine interface. Then, based on the device data corresponding to each node, the variable name corresponding to each node is obtained. Then, each variable name is bound to the attribute of each node to generate simulation data. This method provides an optional method for quickly generating simulation data: by generating a rectangle as a node in the newly created canvas, and then based on the device data corresponding to each node, the variable name corresponding to each node is obtained. The variable name is bound to the attribute of the node so that each variable name is attributed to the corresponding device node. Based on this, simulation data of the human-machine interface is generated, providing data support for the construction of the human-machine interface.

[0125] Based on the above embodiment, an embodiment is provided to illustrate the process of updating the human-machine interface according to the relationship between the buffer queue and the node index.

[0126] In an exemplary embodiment, Figure 7 As shown, according to the relationship between the buffer queue and the node index, the human-machine interface is updated, including:

[0127] S701, obtaining the latest variable value of the simulation data to be updated according to the buffer queue.

[0128] The latest variable value of the simulation data to be updated refers to the variable value in the buffer queue that is closest to the current time.

[0129] Still taking the aforementioned simulation data to be updated of 800rpm, 810rpm, and 820rpm as an example, the third data 820rpm is the updated data closest to the current data, and its corresponding variable value is 820. Therefore, the latest variable value of the simulation data to be updated is 820.

[0130] When storing the mapping relationship between variable names and variable values, the above-mentioned buffer queue is stored according to the order of update. Taking the simulation data to be updated at 800rpm, 810rpm, and 820rpm as an example, 800rpm is the first updated data, 810rpm is the later updated data, and 820rpm is the last updated data. Then in the buffer queue, speed -800 is the first, speed -810 is the next, and speed -820 is the last. When obtaining the latest variable value of the simulation data to be updated, the variable value in the last mapping relationship in the buffer queue can be used as the latest variable value of the simulation data to be updated.

[0131] S702, updating the human-machine interface according to the latest variable value and node index relationship.

[0132] In an embodiment of the present application, after obtaining the latest variable value of the simulation data to be updated, the node related to the latest variable value is obtained from the node index relationship, and then the latest variable value is updated to the node related to the latest variable value to obtain the updated simulation data. Thereafter, the updated simulation data is re-rendered to achieve the update of the human-computer interface.

[0133] In this embodiment, whenever the data changes, the human-computer interface is not updated directly, but is updated based on the latest variable value, that is, multiple updates in a short period of time are combined into one, ensuring that only necessary update operations are performed in the case of high-frequency updates, reducing resource waste, and there is no need to render the data every time it is updated, which reduces the number of renderings, optimizes the rendering, and improves the response speed of the human-computer interface, thereby improving system performance.

[0134] In the interface update method provided in the embodiment of the present application, the latest variable values ​​of the simulation data to be updated are obtained from a buffer queue, and then the human-machine interface is updated based on the latest variable values ​​and the node index relationship. This method provides an optional method for quickly updating the human-machine interface; by obtaining the latest variable values ​​of the simulation data to be updated, the corresponding node can be quickly queried from the node index relationship based on the latest variable values, and the variable values ​​can be updated to achieve the update of the human-machine interface. The update is only based on the latest variable values, which reduces resource waste, improves the response speed of the human-machine interface, and improves system performance.

[0135] Based on the above embodiment, an embodiment is provided to illustrate the process of updating the human-machine interface according to the latest variable value and node index relationship.

[0136] In an exemplary embodiment, Figure 8 As shown, based on the latest variable values ​​and node index relationships, the human-machine interface is updated, including:

[0137] S801, according to the variable name corresponding to the latest variable value and the node index relationship, obtain multiple nodes matching the variable name.

[0138] The node index relationship includes mapping relationships between multiple variable names and nodes. According to the variable name corresponding to the latest variable value, multiple nodes having mapping relationships with the variable name corresponding to the latest variable value can be matched in the node index relationship.

[0139] Exemplarily, the variable name corresponding to the latest variable value is compared with multiple variable names in the node index relationship, and multiple nodes in the node index relationship that match the variable name corresponding to the latest variable value are obtained. These multiple nodes are the nodes that need to be updated.

[0140] S802: Replace the variable value corresponding to the variable name under each node with the latest variable value to obtain updated simulation data.

[0141] Each node has a variable name corresponding to the node and a variable value corresponding to the variable name. When updating the variable value, for any node, the latest variable value replaces the variable value corresponding to the variable name under the node. After the variable value corresponding to each node is replaced with the latest variable value, the updated simulation data is obtained.

[0142] S803, re-rendering the updated simulation data to obtain an updated human-machine interface.

[0143] After obtaining the updated simulation data, the updated simulation data is re-rendered to obtain an updated human-machine interface, that is, the update of the human-machine interface is completed.

[0144] Furthermore, the node index relationship in the above embodiment uses variable names as keys and nodes as values. When updating the human-machine interface, all nodes affected by a variable's data are queried, allowing multiple nodes to be updated simultaneously. Alternatively, a node index relationship can be constructed using nodes as keys and variable names as values. When updating the human-machine interface, all affected data within a node can be consolidated through the nodes, allowing for unified modification of all updated data within the node. This can also reduce rendering times, optimize rendering, and improve the responsiveness of the human-machine interface.

[0145] In the interface update method provided in the embodiment of the present application, multiple nodes matching the variable name are obtained based on the variable name corresponding to the latest variable value and the node index relationship, and the latest variable value is then used to replace the variable value corresponding to the variable name under each node to obtain updated simulation data. The updated simulation data is then re-rendered to obtain an updated human-computer interface. In this method, multiple nodes that need to be updated can be matched in the node index relationship based on the variable name corresponding to the latest variable value, and the latest variable value is then replaced with each node that needs to be updated. This can quickly complete the update of the human-computer interface, thereby improving the update efficiency of the human-computer interface.

[0146] In addition, in an exemplary embodiment, the present application also provides an interface updating method, such as Figure 9 As shown, the following steps may be included:

[0147] S901 , obtaining multiple rectangles generated in the new canvas, and determining each rectangle as a node of multiple devices corresponding to the human-machine interface.

[0148] S902: Obtain the variable name corresponding to each node according to the device data corresponding to each node.

[0149] S903: Bind each variable name to the attribute of each node to generate simulation data.

[0150] S904: Acquire multiple specific tags in the simulation data, and separate multiple variable names from each specific tag.

[0151] S905 , storing each variable name and the node information corresponding to each variable name in the form of a key-value pair, and obtaining a node index relationship of the human-computer interface.

[0152] S906 , obtaining at least one variable value updated in the update cycle of the simulation data to be updated and a variable name of the simulation data to be updated.

[0153] S907: Store a mapping relationship between each variable value and the variable name to obtain a buffer queue.

[0154] S908: Obtain the latest variable value of the simulation data to be updated according to the buffer queue.

[0155] S909: According to the relationship between the variable name and the node index corresponding to the latest variable value, obtain multiple nodes that match the variable name.

[0156] S910: Replace the variable value corresponding to the variable name under each node with the latest variable value to obtain updated simulation data.

[0157] S911: Re-render the updated simulation data to obtain an updated human-machine interface.

[0158] The processes of S901-S911 can refer to the descriptions of the method embodiments, and have similar implementation principles and technical effects, which will not be repeated here.

[0159] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps has no strict order limitation, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or steps or stages in other steps.

[0160] Based on the same inventive concept, the embodiments of the present application also provide an interface updating device for implementing the above-mentioned interface updating method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more interface updating device embodiments provided below can refer to the limitations of the interface updating method described above, which will not be repeated here.

[0161] In one exemplary embodiment, as shown in Figure 10 An interface updating device 1 is provided, comprising a relationship obtaining module 10 and an interface updating module 20, wherein:

[0162] The relationship obtaining module 10 is configured to obtain a buffer queue of the simulation data to be updated in the human-machine interface, and obtain a node index relationship of the human-machine interface. The buffer queue represents a mapping relationship between the variable name of the simulation data to be updated and the corresponding variable value. The node index relationship represents a mapping relationship between the node where the simulation data is located in the human-machine interface and the variable name of the simulation data.

[0163] The interface updating module 20 is configured to update the human-machine interface according to the buffer queue and the node index relationship.

[0164] In one embodiment, the relationship obtaining module 10 is further configured to:

[0165] obtain at least one variable value of the simulation data to be updated in the update period and the variable name of the simulation data to be updated; and store a mapping relationship between each variable value and the variable name to obtain the buffer queue.

[0166] In one embodiment, the relationship obtaining module 10 is further configured to:

[0167] A plurality of specific tags in the simulation data are obtained, and a plurality of variable names are separated from each specific tag; each variable name and the node information corresponding to each variable name are stored in the form of a key-value pair to obtain a node index relationship of a human-machine interface.

[0168] In one embodiment, the relationship acquisition module 10 is further configured to:

[0169] Get the historical node index relationship; if each variable name exists in the historical node index relationship, add each node information to the position of the value corresponding to each variable name to obtain the node index relationship; if each variable name does not exist in the historical node index relationship, use each variable name as the key and the node information corresponding to each variable name as the value to store them in the historical node index relationship to obtain the node index relationship.

[0170] In one embodiment, the interface updating device 1 further includes:

[0171] A node acquisition module is used to acquire multiple rectangles generated in the new canvas and determine each rectangle as a node of multiple devices corresponding to the human-machine interface;

[0172] The variable name acquisition module is used to obtain the variable name corresponding to each node according to the device data corresponding to each node;

[0173] The data generation module is used to bind each variable name with the attributes of each node to generate simulation data.

[0174] In one embodiment, the interface updating module 20 is further configured to:

[0175] According to the buffer queue, the latest variable value of the simulation data to be updated is obtained; according to the latest variable value and the node index relationship, the human-machine interface is updated.

[0176] In one embodiment, the interface updating module 20 is further configured to:

[0177] According to the variable name and node index relationship corresponding to the latest variable value, multiple nodes matching the variable name are obtained; the latest variable value is used to replace the variable value corresponding to the variable name under each node to obtain updated simulation data; the updated simulation data is re-rendered to obtain an updated human-computer interface.

[0178] Each module in the interface update device described above can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0179] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 11 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store interface update data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an interface update method is implemented.

[0180] Those skilled in the art will understand that Figure 11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0181] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0182] Obtaining a buffer queue of simulation data to be updated in the human-machine interface, and obtaining a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between a variable name of the simulation data to be updated and a corresponding variable value; the node index relationship represents a mapping relationship between a node where the simulation data is located in the human-machine interface and a variable name of the simulation data;

[0183] Update the human-machine interface according to the relationship between the buffer queue and the node index.

[0184] The implementation principles and technical effects of each step implemented by the processor in the embodiment of the present application are similar to those of the above-mentioned interface update method and will not be repeated here.

[0185] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0186] Obtaining a buffer queue of simulation data to be updated in the human-machine interface, and obtaining a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between a variable name of the simulation data to be updated and a corresponding variable value; the node index relationship represents a mapping relationship between a node where the simulation data is located in the human-machine interface and a variable name of the simulation data;

[0187] Update the human-machine interface according to the relationship between the buffer queue and the node index.

[0188] The implementation principles and technical effects of the various steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned interface updating method and will not be repeated here.

[0189] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0190] Obtaining a buffer queue of simulation data to be updated in the human-machine interface, and obtaining a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between a variable name of the simulation data to be updated and a corresponding variable value; the node index relationship represents a mapping relationship between a node where the simulation data is located in the human-machine interface and a variable name of the simulation data;

[0191] Update the human-machine interface according to the relationship between the buffer queue and the node index.

[0192] The implementation principles and technical effects of the various steps implemented when the computer program in the embodiment of the present application is executed by the processor are similar to the principles of the above-mentioned interface updating method and will not be repeated here.

[0193] It should be noted that the personnel information (including but not limited to personnel equipment information, personnel personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the personnel or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0194] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.

[0195] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0196] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. An interface updating method, characterized in that: The method comprises: Obtaining a buffer queue of simulation data to be updated in a human-machine interface, and obtaining a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between variable names of the simulation data to be updated and corresponding variable values; the node index relationship represents a mapping relationship between nodes where the simulation data is located in the human-machine interface and variable names of the simulation data; wherein the simulation data refers to data required for constructing the human-machine interface, and is used to simulate the operating environment and data flow of an actual industrial control system; the nodes correspond to real devices in the actual industrial control system, and one real device corresponds to multiple nodes; The human-machine interface is updated according to the buffer queue and the node index relationship.

2. The method according to claim 1, characterized in that The step of obtaining a buffer queue of simulation data to be updated in the human-machine interface includes: Acquire at least one variable value updated in a preset update period of the simulation data to be updated and a variable name of the simulation data to be updated; A mapping relationship is stored between each of the variable values ​​and the variable name to obtain the buffer queue.

3. The method according to claim 1 or 2, characterized in that The obtaining of the node index relationship of the human-machine interface includes: Acquire multiple specific tags in the simulation data, and separate multiple variable names from each of the specific tags; Each variable name and the node information corresponding to each variable name are stored in the form of key-value pairs to obtain a node index relationship of the human-computer interface.

4. The method according to claim 3, characterized in that The storing of each variable name and the node information corresponding to each variable name in the form of key-value pairs to obtain the node index relationship of the human-computer interface includes: Get the historical node index relationship; If each variable name exists in the historical node index relationship, each node information is added to the position where the value corresponding to each variable name is located to obtain the node index relationship; If each variable name does not exist in the historical node index relationship, each variable name is used as a key and the node information corresponding to each variable name is used as a value, and is stored in the historical node index relationship to obtain the node index relationship.

5. The method according to claim 3, characterized in that The method further comprises: Acquire multiple rectangles generated in the newly created canvas, and determine each of the rectangles as a node of multiple devices corresponding to the human-machine interface; According to the device data corresponding to each node, obtain the variable name corresponding to each node; Bind each variable name with the attribute of each node to generate the simulation data.

6. The method according to claim 1 or 2, characterized in that The updating of the human-machine interface according to the buffer queue and the node index relationship includes: According to the buffer queue, obtaining the latest variable value of the simulation data to be updated; The human-computer interface is updated according to the latest variable value and the node index relationship.

7. The method according to claim 6, characterized in that The updating of the human-computer interface according to the latest variable value and the node index relationship includes: According to the variable name corresponding to the latest variable value and the node index relationship, obtain multiple nodes matching the variable name; Replacing the variable value corresponding to the variable name under each node with the latest variable value to obtain updated simulation data; The updated simulation data is re-rendered to obtain an updated human-computer interface.

8. An interface updating device, characterized in that: The device comprises: A relationship acquisition module is configured to acquire a buffer queue of simulation data to be updated in a human-machine interface, and to acquire a node index relationship of the human-machine interface; the buffer queue represents a mapping relationship between a variable name of the simulation data to be updated and a corresponding variable value; the node index relationship represents a mapping relationship between a node in the human-machine interface where the simulation data is located and a variable name of the simulation data; wherein the simulation data refers to data required for constructing the human-machine interface, and is used to simulate the operating environment and data flow of an actual industrial control system; the nodes correspond to real devices in the actual industrial control system, and one real device corresponds to multiple nodes; An interface updating module is used to update the human-computer interface according to the buffer queue and the node index relationship.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Page rendering method and device

    CN106202529A

  • Resource online management method and device, computer equipment and storage medium

    CN110716916A