Search

CN-121996229-A - Visual blueprint editing system and method based on multi-pane scheduling

CN121996229ACN 121996229 ACN121996229 ACN 121996229ACN-121996229-A

Abstract

The invention discloses a visual blueprint editing system and method based on multi-pane scheduling, wherein the system comprises a signal resource management module, a blueprint visual editing module, a blueprint checking and executing module and a multi-pane scheduling management module, wherein the signal resource management module is used for acquiring structural metadata of multi-source signal measuring points, constructing a layered structure based on the structural metadata of the multi-source signal measuring points, the blueprint visual editing module is used for acquiring a blueprint program graph, the blueprint checking and executing module is used for acquiring operation result data containing analog quantity and digital quantity, the data aligning and rendering module is used for synchronously pushing a data frame to a plurality of associated chart windows for displaying, and the multi-pane scheduling management module is used for managing the chart windows and writing real-time identification information and layout states of the chart windows into layout storage. The method realizes rapid analysis, algorithm modeling and application deployment of industrial data, and ensures the stability and user experience of the system in different network environments and operation modes.

Inventors

  • WU LIANG
  • LIU PEIDI

Assignees

  • 武汉仪能自动化工程有限公司

Dates

Publication Date
20260508
Application Date
20260121

Claims (10)

  1. 1. A visual blueprint editing system based on multi-pane scheduling, comprising: The signal resource management module is used for acquiring the structural metadata of the multi-source signal measuring points and constructing a layered structure based on the structural metadata of the multi-source signal measuring points; the blueprint visual editing module is used for selecting nodes from the hierarchical structure, and establishing data flows among the selected nodes in the blueprint canvas through port connection relations to obtain a blueprint program diagram; The blueprint verification and execution module is used for verifying the blueprint program graph according to a preset verification algorithm, analyzing the blueprint program graph into an executable instruction set and submitting the executable instruction set to a server for execution after the blueprint program graph passes the verification, and obtaining operation result data comprising analog quantity and digital quantity; The data alignment and rendering module is used for performing time stamp alignment on operation result data containing analog quantity and digital quantity based on a preset time step to obtain a data frame sharing a time axis, and synchronously pushing the data frame to a plurality of associated chart windows for display; And the multi-pane scheduling management module is used for managing a plurality of chart windows and writing real-time identification information and layout states of each chart window into the layout storage.
  2. 2. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein the signal resource management module constructs a hierarchical structure based on the structured metadata of the multi-source signal measurement points by the following specific method: analyzing the structural metadata to obtain a signal set containing signal identification, signal names and data type information, and layering the signal set according to the hierarchical relationship of the equipment, the subsystem or the functional area to obtain the layered structure.
  3. 3. The visual blueprint editing system based on multi-pane scheduling according to claim 1 is characterized in that the specific method for obtaining a blueprint program graph by the blueprint visual editing module comprises the steps of extracting signal source nodes from a layered structure, extracting logic nodes from a preset logic library, instantiating the signal source nodes and the logic nodes in a virtual coordinate space of a blueprint canvas to generate instantiation nodes with unique identifiers and preset input and output ports, carrying out association mapping on structural metadata of multi-source signal measuring points in the signal resource management module and the input and output ports of the signal source nodes to establish a mapping relation between physical signal measuring points and the instantiation nodes, establishing directional association relation between the input and output ports of different instantiation nodes, defining a circulation path of a data stream to obtain connection data among the instantiation nodes, traversing all the instantiation nodes and the connection data thereof in the blueprint canvas, and generating a structural configuration file containing logic dependence relation as a blueprint program.
  4. 4. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein said preset verification algorithm comprises: traversing connecting lines in the blueprint program graph, extracting a signal type identifier of an output end port and a declaration acceptance type identifier of an input end port, and judging that the type verification passes if the signal type identifier of the output end port is matched with the declaration acceptance type identifier of the input end port; The blueprint program graph is abstracted into a directed graph structure with nodes as vertexes and connecting lines as directed edges, a corresponding adjacency list is constructed, the degree of incidence of each vertex is counted, vertexes with zero degree are removed layer by using a topology ordering algorithm, the degree of incidence of the rest vertexes is updated, and if the total number of the removed vertexes is greater than or equal to the total number of the nodes in the blueprint program graph finally, the loop detection is judged to pass; Sampling alignment, namely traversing the node hierarchy relation of the blueprint program graph, and acquiring preset sampling periods of an upstream node and a downstream node; The authority verification is carried out, namely the authority of the requested role in the node configuration of the blueprint program diagram is compared with the authority of the role of the current operation user, and if the authority required by the role of the current operation user exists in the authority of the requested role in the node configuration of the blueprint program diagram, the authority verification is judged to pass; And submitting the blueprint program graph to a server for execution when the type verification, loop detection, sampling alignment and authority verification pass the simultaneous verification.
  5. 5. The visualized blueprint editing system based on multi-pane scheduling according to claim 1, wherein the time stamp alignment based on the preset time step is performed by determining a shared time axis step according to attribute data in the blueprint program map With initial time stamp Generating, as starting point, time stamps aligned by a plurality of targets A structured discrete time sequence, the objects being aligned with time stamps The expression is: , wherein, For each analog signal, retrieving in the original sample sequence a time stamp aligned with the target Two adjacent sample points And , wherein, Representing target alignment time stamps Is a function of the previous time of day, Representing target alignment time stamps V i represents the corresponding signal value at the previous time, Indicating the corresponding signal value at the later time, if the signal value satisfies Calculating the target alignment time stamp by using a linear interpolation algorithm Analog interpolation results of (a) For each digital quantity signal, searching the time stamp of the original sampling sequence to be less than or equal to the target alignment time stamp Mapping it to the last valid sample value of the target alignment timestamp Alignment of the same object with a time stamp Synchronous packaging is carried out on the corresponding analog quantity interpolation results and the digital quantity signal state, and { included is generated Data frames of shared time axis for analog quantity array, digital quantity array.
  6. 6. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein the blueprint visual editing module is further used for obtaining context information of a current blueprint editing environment, the context information comprises a window identification code, a binding signal name, a current blueprint program graph fragment, a latest error log and a user natural language search result, performing vectorization splicing on the context information and a system help document to generate a prompt word, sending the prompt word to a preset artificial intelligent large model interface, and feeding back a blueprint program graph editing suggestion according to the prompt word by the artificial intelligent large model, wherein the blueprint program graph editing suggestion is used for reference when the blueprint program graph is edited.
  7. 7. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein the multi-pane scheduling management module manages a plurality of chart windows by detecting window creation, closing, grouping or layout change events, capturing all current window identification information and layout states when the events are detected, wherein the layout states comprise window coordinate positions, sizes and overlay level modes, updating the corresponding window identification information to a layout storage, and reconstructing a multi-pane interface based on the window identification information and the layout states in the layout storage when the system is started or a scene is restored.
  8. 8. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein the multi-pane scheduling management module sequences the layout state data of all chart windows into a JSON format, writes the layout state data of all chart windows in the JSON format into a scene table of a database through an application data interface, and completes layout storage; The method comprises the steps of combining a hash table data structure through a bidirectional linked list, reducing the browser local database cache data, moving a current cache node to a linked list head of the bidirectional linked list when the cache data in a window layout state is written into the browser local database, inserting a newly built cache node into the linked list head of the bidirectional linked list when the cache data in the window layout state is not written into the browser local database and the cache data in the window layout state does not exceed a cache time limit threshold, deleting the linked list tail cache node of the bidirectional linked list and removing a key value corresponding to the linked list tail cache node from the hash table when the cache data in the window layout state exceeds a cache capacity threshold, and removing earliest access data in the bidirectional linked list tail when the data volume of the cache data in the window layout state exceeds a data volume threshold.
  9. 9. The visual blueprint editing system based on multi-pane scheduling according to claim 1, wherein said multi-pane scheduling management module is further adapted to monitor an average delay μ and a standard deviation σ of delay of network communication when a delay discrete coefficient is When the preset threshold is exceeded or a continuous touch event is detected, all graph window operations are switched to a touch debounce mode, wherein the debounce mode is that the graph window is opposite to the dragging displacement Calculating smooth position using exponential moving average algorithm The formula is: , wherein, Representing the coefficient of smoothing and the coefficient of smoothing, Representing the original interactive coordinate sequence according to the smoothed position And determining the size of a response area of the split-screen hot spot, and amplifying the size of the response area of the drag handle or the split-screen hot spot according to a preset proportionality coefficient.
  10. 10. The visual blueprint editing method based on multi-pane scheduling is characterized by comprising the following steps of: obtaining the structural metadata of the multi-source signal measuring points, and constructing a layered structure based on the structural metadata of the multi-source signal measuring points; Selecting nodes from the hierarchical structure, and establishing data flow among the selected nodes in a blueprint canvas through a port connection relationship to obtain a blueprint program diagram; checking the blueprint program graph according to a preset checking algorithm, and analyzing the blueprint program graph into an executable instruction set to be submitted to a server for execution after the blueprint program graph passes the checking, so as to obtain operation result data containing analog quantity and digital quantity; Performing time stamp alignment on operation result data containing analog quantity and digital quantity based on a preset time step to obtain a data frame sharing a time axis, and synchronously pushing the data frame to a plurality of associated chart windows for display; And managing a plurality of chart windows, and writing real-time chart window identification information and layout states into a layout storage.

Description

Visual blueprint editing system and method based on multi-pane scheduling Technical Field The invention relates to the technical field of data visualization, in particular to a visualized blueprint editing system and method based on multi-pane scheduling. Background Along with acceleration of industrial Internet of things, complex system simulation and digital transformation processes, the visual programming technology based on the graphical blueprint (Blueprint) is widely applied to the fields of industrial automation control, real-time data monitoring, scientific research experiment analysis and the like due to the advantages of strong intuitiveness, clear logic, low development threshold and the like. The user can quickly construct complex data processing logic by dragging nodes representing specific functions and establishing connection relations. However, in the existing visual blueprint editing and monitoring system, the following technical problems to be solved still exist: 1. Existing blueprint editors tend to focus on UI-level interactions, lacking deep logic constraints prior to instruction issuing. When processing complex topological structure, the problems of logic loop (dead loop), signal type mismatch or sampling period imbalance are very easy to generate. If the data is directly submitted to the server for execution, system breakdown or incorrect control logic may be caused, and even production accidents may be caused in the industrial field. 2. In a real-time monitoring scenario, the system often needs to process both analog (continuous signal) and digital (switching signal) quantities from different sensors at the same time. The multi-source signals tend to be shifted in time axis due to non-uniform sampling frequencies of the hardware devices and network transmission jitter. The existing system generally adopts a simple receiving and rendering mode, and is difficult to realize high-precision time stamp alignment, so that a user cannot accurately restore the real state of each signal at the same instant when carrying out multi-chart comparison analysis. 3. Complex monitoring tasks often require the opening of multiple chart windows (multiple panes) for collaborative presentation. As the number of windows increases, the browser local cache pressure increases, which can easily cause interface jams and even crashes. In addition, in an environment with large network fluctuation, serious visual jitter is caused by remote operation delay, and the traditional interaction algorithm is difficult to maintain smooth layout adjustment and split screen experience in a touch interference and high-delay environment. Therefore, developing a blueprint editing system which can ensure logic tightness and data fidelity and can realize multi-pane efficient scheduling and intelligent assistance has become an important research direction in the current industrial visualization field. Disclosure of Invention The invention aims to provide a visual blueprint editing system and method based on multi-pane scheduling, which realize rapid analysis, algorithm modeling and application deployment of industrial data and ensure the stability and user experience of a system in different network environments and operation modes by providing a flexible multi-pane interactive interface and an efficient blueprint verification and execution mechanism. The visual blueprint editing system based on multi-pane scheduling designed by the invention for achieving one of the purposes is characterized by comprising the following components: The signal resource management module is used for acquiring the structural metadata of the multi-source signal measuring points and constructing a layered structure based on the structural metadata of the multi-source signal measuring points; the blueprint visual editing module is used for selecting nodes from the hierarchical structure, and establishing data flows among the selected nodes in the blueprint canvas through port connection relations to obtain a blueprint program diagram; The blueprint verification and execution module is used for verifying the blueprint program graph according to a preset verification algorithm, analyzing the blueprint program graph into an executable instruction set and submitting the executable instruction set to a server for execution after the blueprint program graph passes the verification, and obtaining operation result data comprising analog quantity and digital quantity; The data alignment and rendering module is used for performing time stamp alignment on operation result data containing analog quantity and digital quantity based on a preset time step to obtain a data frame sharing a time axis, and synchronously pushing the data frame to a plurality of associated chart windows for display; And the multi-pane scheduling management module is used for managing a plurality of chart windows and writing real-time identification information and layout states of each char