New energy centralized control equipment information dynamic rendering and instantiation processing method
By drawing the template screen of the equipment model for the new energy centralized control system and building a matrix diagram, the problem of large number of monitoring screens and similar content in the new energy centralized control system is solved, dynamic instantiation and optimization layout of equipment information are realized, and the system's management efficiency and user experience are improved.
Patent Information
- Application Number
- CN202510552713.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-08-15
AI Technical Summary
In the existing new energy centralized control systems, the number of monitoring images of fans, inverters, and energy storage equipment is large and the content is similar, which makes it difficult to implement and maintain. The existing technology has failed to effectively deal with the strategies of telemetry and light-character cards exceeding the set area, and the system complexity is increased, making it difficult to apply to complex power system models.
By drawing the template screen of the device model, storing it in the configuration database and syncing it to the real-time database, building a matrix diagram in the graphics editor, clicking the primitive to load the corresponding template screen model, and optimizing the layout with the clustering algorithm and dynamic grid layout algorithm to realize dynamic instantiation display of device information.
It improves the efficiency and accuracy of equipment management, enhances the flexibility and scalability of the system, provides user interaction and flexibility, improves the flexibility and applicability of monitoring screen generation, and enhances the user experience.
Smart Images

Figure CN120495470A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation technology, and in particular to a method for dynamically rendering and instantiating information of new energy centralized control equipment. Background Art
[0002] With the rapid development of the renewable energy power generation industry, the new energy centralized control system, serving as a core management platform, integrates advanced technologies such as the Internet of Things, big data, and cloud computing. This system enables remote centralized monitoring, intelligent scheduling, and full lifecycle management of renewable energy station equipment, including wind power, photovoltaics, and energy storage, effectively improving the efficiency, intensiveness, and safety of energy production. The monitoring screen is the key interactive interface of the centralized control platform. Through multi-dimensional data fusion, dynamic visualization technology, and intelligent analysis modules, it enables remote centralized monitoring and refined operation and maintenance management of renewable energy stations.
[0003] However, the monitoring screens for wind turbines, inverters, and energy storage devices in current centralized control systems for new energy sources present numerous issues. These devices often display numerous screens with similar content, typically covering associated telemetry points and their service descriptions, telesignaling light signs, device graphics, curve plug-ins, operating points, and fault history display plug-ins. The layout and service content of the display screens for the same model remain consistent, resulting in a large number of screens and significant implementation and maintenance challenges.
[0004] In the prior art, patent application CN104346758A discloses a template-based dynamic interval diagram generation method. This method pre-draws an interval diagram template and instantiates it to draw interval diagrams for all intervals in a substation. Although this method automatically updates the photon sign when the protection signal model changes, reducing the workload of manual modification, it fails to clearly describe the relationship between the interval diagram template and the actual interval diagram, nor does it provide an effective strategy for handling telemetry and photon signs that exceed the set area. In addition, the description of the method for drawing the single-line diagram area is too simple, making it difficult to apply to actual situations.
[0005] The patent document with application number CN119292596A discloses a method and device for automatically generating monitoring pages for a centralized control station based on a template. The method realizes the automatic generation of monitoring graphics by binding static and dynamic elements to graphic templates. Although this solution reduces the workload of manual drawing and makes the graphics closer to the actual situation, the need to configure multiple dynamic element binding methods increases the complexity of the system, which may cause binding conflicts or management difficulties. At the same time, the method may face performance challenges when dealing with complex power system models, especially in the process of adjusting the position of equipment to avoid overlap, which involves complex geometric calculation problems. In addition, how to effectively process data from different sources or formats and ensure the standardization and uniformity of the data is also a problem that has not been clearly solved by this method.
[0006] Currently, no effective solutions have been proposed for the problems in related technologies. Summary of the Invention
[0007] In response to the problems in the related art, the present invention proposes a method for dynamic rendering and instantiation processing of new energy centralized control equipment information to overcome the above-mentioned technical problems existing in the existing related art.
[0008] To this end, the specific technical solutions adopted in the present invention are as follows:
[0009] A method for dynamic rendering and instantiation of information of new energy centralized control equipment, comprising:
[0010] S1. Draw corresponding template screens containing graphic elements according to different models of new energy centralized control equipment, store the equipment type, model and corresponding template screen association information in the configuration database, and synchronize it to the real-time database;
[0011] S2. In the graphic editor, arrange the graphics elements of the same type of equipment in a matrix form to construct a matrix diagram, and set the matrix diagram as the entrance to each template screen;
[0012] S3. Click on the graphic element in the matrix diagram to match and load the corresponding template screen model, and realize the instantiation display of device information by replacing the graphic element.
[0013] Optionally, according to different models of new energy centralized control equipment, corresponding template screens containing graphic elements are drawn, and the associated information of the equipment type, model and corresponding template screen is stored in the configuration database and synchronized to the real-time database, including:
[0014] S11. In a graphic editor, draw a corresponding template screen containing graphic elements according to different models of new energy centralized control equipment;
[0015] S12. Create a device template folder under the screen template partition of the configuration database, create a first-level subfolder in the device template folder based on the device type, and create a second-level subfolder in the first-level subfolder based on the device model;
[0016] S13. Create a template screen for each device model in the secondary subfolder, name the template screen, and set the serial number of the first template screen to zero. The serial numbers of subsequent template screens will increase in sequence.
[0017] S14. According to the configuration matching mechanism and the local file generation strategy, the device type, model and corresponding template screen association information are synchronized to the real-time database to support dynamic calling during monitoring.
[0018] Optionally, in a graphic editor, graphic elements of similar devices are arranged in a matrix form to construct a matrix diagram, and the matrix diagram is set as the entrance to each template screen, including:
[0019] S21. Based on the graphic elements in the template screen, use a clustering algorithm to group different types of devices to generate a set of similar devices;
[0020] S22. Calculate the optimal row and column combination using a dynamic grid layout algorithm based on the number of similar device sets and the preset canvas size, and set adaptive spacing rules based on the size of the graphics element;
[0021] S23. Traverse the set of similar devices in the graphics editor, bind the device information to the corresponding graphics primitives, and arrange the bound graphics primitives using the Boolean constraint propagation algorithm in combination with the optimal row and column combination and spacing rules to construct a matrix diagram;
[0022] S24. Use the virtual scrolling technology based on viewport clipping to optimize the rendering of the graphics elements in the matrix diagram, and set the optimized matrix diagram as the entrance of each template screen to display the device information.
[0023] Optionally, based on the number of similar device sets and a preset canvas size, a dynamic grid layout algorithm is used to calculate the optimal row and column combination, and adaptive spacing rules are set according to the size of the primitives, including:
[0024] S221. Randomly generate a number of row and column combinations based on the number of similar device sets and a preset canvas size to form an initial population;
[0025] S222: Set an initial step size, perform a neighborhood search on each row and column combination, and calculate the fitness value of the layout based on the neighborhood search results;
[0026] S223, sorting the fitness values in descending order, and selecting the first several row and column combinations as the next generation population;
[0027] S224, calculating the difference between the highest fitness value in the current population and the target fitness value, and comparing it with a preset threshold value, judging whether the termination condition is met based on the comparison result, if the difference is less than the preset threshold value, the termination condition is met, and the current optimal row and column combination is output, otherwise, repeating steps S222 to S224 until the termination condition is met;
[0028] S225. According to the optimal row and column combination and the size of the graphic element, an adaptive spacing rule is set to optimize the layout effect.
[0029] Optionally, the fitness value is calculated as:
[0030]
[0031] In the formula, F represents the fitness value; r represents the number of rows in the current row-column combination; c represents the number of columns in the current row-column combination; w1 represents the weight coefficient; n represents the number of devices to be arranged; w2 represents the weight coefficient; W i Indicates the width of the canvas; H i Indicates the height of the canvas; W j Indicates the width of a single device primitive; H j Indicates the height of a single device primitive; w3 indicates the weight coefficient; σ h represents the variance of the horizontal gap; σ v Indicates the variance of the gap in the vertical direction.
[0032] Optionally, click on an element in the matrix to match and load the corresponding template screen model. By replacing the element, the instantiation display of device information is realized, including:
[0033] S31. Run the online monitoring screen program, run the matrix diagram, click on an element in the matrix diagram, and obtain device information associated with the element;
[0034] S32. Based on the acquired device information, extract the corresponding template configuration information from the real-time database, verify the template configuration information, and record the screen identification of the matrix diagram;
[0035] S33. Extract the screen identifier with serial number zero from the screen identifiers, and determine whether the user has permission to load the template screen. If the user has permission, read and load the corresponding template screen model. Otherwise, prompt and return to the matrix diagram.
[0036] S34. Traverse the graphic elements in the template screen model and replace them according to corresponding replacement rules to realize the instantiation display of equipment information. The graphic elements include dynamic text graphic elements, measurement point graphic elements, equipment graphic elements, plug-ins and operation point graphic elements.
[0037] Optionally, traversing the graphic elements in the template screen model and replacing the graphic elements according to corresponding replacement rules to implement instantiation display of device information includes:
[0038] S341, traverse the dynamic text primitives in the template screen model, extract the associated device name and replace it with the new device name;
[0039] S342, traversing the measurement point primitives in the template screen model, establishing a mapping relationship according to the measurement point matching mechanism, and replacing the measurement point primitives based on the mapping relationship, wherein the matching mechanism includes sequence number matching and description matching;
[0040] S343, traversing the device primitives and plug-ins in the template screen model, and replacing the template device model associated with the device primitives and plug-ins with the template device model of the new device;
[0041] S344: traverse the operation point graphic elements in the template screen model, identify the operation point attributes, and update them using corresponding replacement logic. The operation point attributes include remote control operation and screen switching.
[0042] Optionally, traversing the measurement point primitives in the template screen model, establishing a mapping relationship according to a matching mechanism of the measurement points, and replacing the measurement point primitives based on the mapping relationship includes:
[0043] When matching serial numbers, a mapping relationship between the serial numbers of the new and old devices and the measurement points is established. The measurement points of the new device are located through the index of the serial number of the old device, and the measurement point primitives are extracted and replaced to complete the instantiation process.
[0044] When matching according to the description, a measurement information mapping relationship between the new and old devices is established, the description is read according to the configuration format, the mapping between the description and the template screen model is traversed, and the measurement point primitive is obtained and replaced to complete the instantiation process.
[0045] Optionally, traversing the operation point graphic element in the template screen model, identifying the operation point attribute, and updating it using corresponding replacement logic includes:
[0046] If the operation point is used for remote control, a mapping relationship is established according to the matching mechanism of the measurement point, and the remote control information associated with the operation point primitive is replaced to complete the instantiation processing of the operation point primitive;
[0047] If the operation point is used for screen switching, the operation type is determined based on the text content of the operation point, and the screen information associated with the operation point element is read and replaced to complete the instantiation processing of the operation point element. The operation types include return operation, previous page or next page operation.
[0048] Optionally, if the operation point is used for screen switching, the operation type is determined according to the text content of the operation point, and the screen information associated with the operation point graphic element is read and replaced to complete the instantiation processing of the operation point graphic element.
[0049] When the operation type is a return operation, the target screen name is generated according to the recorded matrix screen identifier, and the screen information associated with the operation point element is replaced;
[0050] When the operation type is the previous page or next page operation, the corresponding index value is calculated according to the screen identifier associated with the operation point element. The index value is adjusted to achieve cyclic switching of the template screen and replace the screen information associated with the operation point element.
[0051] The beneficial effects of the present invention are:
[0052] 1. The present invention adopts a templated design to read the device model and its corresponding template for dynamic instantiation. It is not only based on the static layout of the template graphics, but also combines the device model and instantiation requirements to dynamically replace the device information in the graphics, thereby realizing flexible replacement of graphics in the scene and dynamic loading of information.
[0053] 2. The present invention adopts a matrix diagram as a dynamic generation entry, can load corresponding monitoring screens according to different device models, and supports the generation of local files for use by debuggers, with powerful dynamic update and debugging functions; in addition, by clicking on the device graphic elements in the matrix diagram, the corresponding device screen is dynamically loaded and displayed, thereby providing user interactivity and flexibility.
[0054] 3. The present invention improves the flexibility and applicability of monitoring screen generation by combining device models and dynamic information replacement requirements, realizes the automatic generation and flexible switching of device monitoring screens, provides more flexible graphic display and debugging support, and thus enhances user experience and operational convenience.
[0055] 4. The present invention not only improves the efficiency and accuracy of device management, but also enhances flexibility and scalability, improves user experience, and has high application value and market potential through designs such as template management, flexible device information matching, dynamic information display, and permission control. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0057] Figure 1 This is a flowchart of a method for dynamic rendering and instantiation of information of a new energy centralized control device according to an embodiment of the present invention;
[0058] Figure 2 This is a general flow chart of a method for dynamic rendering and instantiation of information of new energy centralized control equipment according to an embodiment of the present invention;
[0059] Figure 3 This is an operation design diagram of a method for dynamic rendering and instantiation processing of information of a new energy centralized control device according to an embodiment of the present invention;
[0060] Figure 4 This is a template instantiation flow chart of a method for dynamic rendering and instantiation of information of a new energy centralized control device according to an embodiment of the present invention;
[0061] Figure 5This is a template information loading flow chart of a method for dynamic rendering and instantiation of new energy centralized control equipment information according to an embodiment of the present invention;
[0062] Figure 6 The present invention provides a flowchart of a file saving process for a method for dynamic rendering and instantiation of information of a new energy centralized control device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] To further illustrate each embodiment, the present invention provides drawings, which are part of the disclosure of the present invention. They are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. By referring to these contents, ordinary technicians in this field should be able to understand other possible implementation methods and the advantages of the present invention.
[0064] According to an embodiment of the present invention, a method for dynamic rendering and instantiation processing of new energy centralized control equipment information is provided.
[0065] The present invention will now be further described with reference to the accompanying drawings and specific embodiments. Figure 1-Figure 2 As shown, the method for dynamic rendering and instantiation processing of new energy centralized control equipment information according to an embodiment of the present invention includes:
[0066] S1. Draw corresponding template screens containing graphic elements according to different models of new energy centralized control equipment, store the equipment type, model and corresponding template screen association information in the configuration database, and synchronize it to the real-time database.
[0067] Preferably, according to different models of new energy centralized control equipment, corresponding template screens containing graphic elements are drawn, and the associated information of the equipment type, model and corresponding template screen is stored in the configuration database and synchronized to the real-time database, including:
[0068] S11. In a graphic editor, draw a corresponding template screen containing graphic elements according to different models of new energy centralized control equipment;
[0069] S12. Create a device template folder under the screen template partition of the configuration database, create a first-level subfolder in the device template folder based on the device type, and create a second-level subfolder in the first-level subfolder based on the device model;
[0070] S13. Create a template screen for each device model in the secondary subfolder, name the template screen, and set the serial number of the first template screen to zero. The serial numbers of subsequent template screens will increase in sequence.
[0071] S14. According to the configuration matching mechanism and the local file generation strategy, the device type, model and corresponding template screen association information are synchronized to the real-time database to support dynamic calling during monitoring.
[0072] It should be noted that, depending on the model of wind turbine / inverter / energy storage device, different template screens (page templates) for device overview information are drawn. The page template contains basic graphics (such as static text and rectangles) and graphics that need to be instantiated (such as device graphics, operating points, measurements, and plug-ins). A typical device of the same model is selected as the template device. For the graphics in the template screen (an associated template device graphics element must be placed in the template to facilitate instantiation), the associated device is selected as the template device to achieve the binding between the device and the graphics element. Multiple template screens can be drawn as needed. In addition, the basic graphics elements and dynamic graphics elements of the device are defined through the template screen. These graphics elements are dynamically instantiated and displayed according to the device information at runtime, realizing the dynamic replacement of the device model and information update.
[0073] Add template configurations to the configuration database, including device types (such as wind turbines, inverters, energy storage), different models of equipment, and names of template screens drawn for different models (can be multiple); configuration information needs to be synchronized to the real-time database for reading during real-time operation. Build different folder structures in the database according to device type and device model to organize and manage template screens, facilitate the management and calling of template screens for different devices, and support the classification and customization of template images. Creating device graphics in a templated manner can significantly improve the management efficiency of multiple devices. The screen of each device can be dynamically instantiated based on a unified template. By reading information such as device type, model, and device identifier, repetitive work and manual operations are reduced, ensuring the standardization and uniformity of equipment.
[0074] S2. In the graphic editor, arrange the graphics elements of the same type of equipment in a matrix form, construct a matrix diagram, and set the matrix diagram as the entrance to each template screen.
[0075] It's important to note that drawing a device matrix or overview diagram includes a list of devices for which information needs to be viewed. This matrix diagram presents overviews and real-time information for multiple devices on a centralized interface, allowing users to quickly view and manage the status of multiple devices, improving device monitoring efficiency.
[0076] Preferably, in a graphic editor, graphic elements of similar devices are arranged in a matrix form to construct a matrix diagram, and the matrix diagram is set as the entrance to each template screen, including:
[0077] S21. Based on the graphic elements in the template screen, a clustering algorithm is used to group different types of devices to generate a set of similar devices.
[0078] S22. Calculate the optimal row and column combination using a dynamic grid layout algorithm based on the number of similar device sets and a preset canvas size, and set an adaptive spacing rule based on the size of the graphic element.
[0079] Preferably, the dynamic grid layout algorithm is used to calculate the optimal row and column combination based on the number of similar device sets and the preset canvas size, and the adaptive spacing rule is set according to the size of the primitives, including:
[0080] S221. According to the number of similar device sets and a preset canvas size, a number of row and column combinations are randomly generated to form an initial population.
[0081] S222: Set an initial step size, perform a neighborhood search on each row and column combination, and calculate the fitness value of the layout based on the neighborhood search results.
[0082] Preferably, the calculation formula of the fitness value is:
[0083]
[0084] In the formula, F represents the fitness value; r represents the number of rows in the current row-column combination; c represents the number of columns in the current row-column combination; w1 represents the weight coefficient; n represents the number of devices to be arranged; w2 represents the weight coefficient; W i Indicates the width of the canvas; H i Indicates the height of the canvas; W j Indicates the width of a single device primitive; H j Indicates the height of a single device primitive; w3 indicates the weight coefficient; σ h represents the variance of the horizontal gap; σ v Indicates the variance of the gap in the vertical direction.
[0085] S223. Sort the fitness values in descending order and select the first several row and column combinations as the next generation population.
[0086] S224. Calculate the difference between the highest fitness value in the current population and the target fitness value, and compare it with the preset threshold value. Based on the comparison result, determine whether the termination condition is met. If the difference is less than the preset threshold value, the termination condition is met and the current optimal row and column combination is output. Otherwise, repeat steps S222 to S224 until the termination condition is met.
[0087] S225. According to the optimal row and column combination and the size of the graphic element, an adaptive spacing rule is set to optimize the layout effect.
[0088] S23. Traverse the same type of device set in the graphics editor, bind the device information with the corresponding graphics elements, and use the Boolean constraint propagation algorithm to arrange the bound graphics elements in combination with the optimal row and column combination and spacing rules to construct a matrix diagram.
[0089] S24. Use the virtual scrolling technology based on viewport clipping to optimize the rendering of the graphics elements in the matrix diagram, and set the optimized matrix diagram as the entrance of each template screen to display the device information.
[0090] It should be noted that, in a graphic editor, the graphic elements of the same type of devices are arranged in a matrix form to construct a matrix diagram, and the matrix diagram is set as the entrance to each template screen. The specific embodiment is as follows:
[0091] 1. 51 devices (12 photovoltaic inverters, 8 wind turbine converters, etc.) were input. K-means clustering (k = 5, silhouette coefficient ≥ 0.6) was used based on device characteristics (power, voltage, protocol), outputting five clusters of similar devices. For example, the photovoltaic inverter cluster was clustered with "power ≥ 100kW, DC voltage = 1500V" as the cluster center, successfully separating 12 devices with an average intra-cluster distance of 8.2 (Euclidean scale).
[0092] 2. For the set of 12 photovoltaic inverters, the canvas size was set to 1920×1080 pixels and the element size was set to 180×120 pixels. The dynamic grid algorithm was used for calculation (population size 50, iteration 10 generations). The blank rate (target <10%) and row-column balance (|row-column|≤1) were used as the fitness function. Finally, the optimal 4×3 row and column combination was generated. The horizontal spacing was calculated to be 345px and the vertical spacing was calculated to be 120px. The blank rate was reduced to 8.3%.
[0093] 3. Bind the real-time data of 12 inverters (such as ID and power values) to primitive attributes. Using the Boolean constraint propagation algorithm, set the primitive spacing to ≥20px and the row and column alignment error to ≤5px, generating a strictly aligned 4×3 matrix. Verification shows that the layout calculation takes ≤150ms (CPU: Intel i7-11800H) and supports dynamic updates (for example, when the power limit is exceeded, the primitive turns red).
[0094] 4. For matrix diagrams containing more than 100 elements (such as a 15-unit energy storage PCS cluster), viewport clipping technology is used to render only the visible area (elements outside the viewport are lazily loaded). The frame rate drops to 12FPS when rendering the entire image, and stabilizes at 60FPS with virtual scrolling enabled (GPU: NVIDIA RTX 3060). Memory usage is reduced by 62% (from 420MB to 160MB). Finally, the matrix diagram is used as a template entry point, and clicking an element will jump to the device details page (response time ≤ 50ms).
[0095] S3. Click on the graphic element in the matrix diagram to match and load the corresponding template screen model, and realize the instantiation display of device information by replacing the graphic element.
[0096] Preferably, clicking on a graphic element in the matrix diagram, matching and loading a corresponding template screen model, and implementing instantiation display of device information by replacing the graphic element include:
[0097] S31. Run the online monitoring screen program, run the matrix diagram, click on an element in the matrix diagram, and obtain device information associated with the element.
[0098] S32. Based on the acquired device information, corresponding template configuration information is extracted from the real-time database, the template configuration information is verified, and the screen identification of the matrix diagram is recorded.
[0099] S33. Extract the screen identifier with serial number zero from the screen identifiers, and determine whether the user has the authority to load the template screen. If the user has the authority, read and load the corresponding template screen model. Otherwise, give a prompt and return to the matrix diagram.
[0100] It should be noted that the permission judgment performed during the template screen switching process ensures that only authorized users can view or operate specific device screens, thereby avoiding interference from unauthorized personnel and ensuring the security and stability of the system.
[0101] S34. Traverse the graphic elements in the template screen model and replace them according to corresponding replacement rules to realize the instantiation display of equipment information. The graphic elements include dynamic text graphic elements, measurement point graphic elements, equipment graphic elements, plug-ins and operation point graphic elements.
[0102] Preferably, traversing the graphic elements in the template screen model and replacing the graphic elements according to corresponding replacement rules to realize instantiation display of device information includes:
[0103] S341. Traverse the dynamic text primitives in the template screen model, extract the associated device names and replace them with new device names.
[0104] S342, traverse the measurement point primitives in the template screen model, establish a mapping relationship according to the matching mechanism of the measurement points, and replace the measurement point primitives based on the mapping relationship. The matching mechanism includes serial number matching and description matching.
[0105] Preferably, traversing the measurement point primitives in the template screen model, establishing a mapping relationship according to a matching mechanism of the measurement points, and replacing the measurement point primitives based on the mapping relationship includes:
[0106] When matching serial numbers, a mapping relationship between the serial numbers of the new and old devices and the measurement points is established. The measurement points of the new device are located through the index of the serial number of the old device, and the measurement point primitives are extracted and replaced to complete the instantiation process.
[0107] When matching according to the description, a measurement information mapping relationship between the new and old devices is established, the description is read according to the configuration format, the mapping between the description and the template screen model is traversed, and the measurement point primitive is obtained and replaced to complete the instantiation process.
[0108] It should be noted that the measurement point matching method (by serial number or by description) can flexibly cope with the differences between different devices. Even if the measurement point serial numbers of the devices are different, the invention can ensure that the measurement data between different devices can be correctly mapped to the corresponding primitives by matching the serial numbers with the descriptions, thereby achieving a high degree of adaptability. By instantiating dynamic text and measurement point primitives in real time, the present invention enables the device to display the latest status and data (such as wind speed, power, etc.) of the device in real time during operation, enhancing the system's real-time monitoring and data presentation capabilities.
[0109] S343: Traverse the device primitives and plug-ins in the template screen model, and replace the template device model associated with the device primitives and plug-ins with the template device model of the new device.
[0110] It should be noted that the instantiation of plug-in graphics enables the system to flexibly display specific information of the equipment (such as wind speed and power curves, fault alarm information, etc.), improving the system's customization capabilities; users can configure and display specific data or interfaces according to the actual needs of the equipment, enhancing the scalability of the system.
[0111] S344: traverse the operation point graphic elements in the template screen model, identify the operation point attributes, and update them using corresponding replacement logic. The operation point attributes include remote control operation and screen switching.
[0112] Preferably, traversing the operation point graphic element in the template screen model, identifying the operation point attribute, and updating it using the corresponding replacement logic includes:
[0113] If the operation point is used for remote control operation, a mapping relationship is established according to the matching mechanism of the measurement point, and the remote control information associated with the operation point primitive is replaced to complete the instantiation processing of the operation point primitive.
[0114] If the operation point is used for screen switching, the operation type is determined based on the text content of the operation point, and the screen information associated with the operation point element is read and replaced to complete the instantiation processing of the operation point element. The operation types include return operation, previous page or next page operation.
[0115] Preferably, if the operation point is used for screen switching, the operation type is determined according to the text content of the operation point, and the screen information associated with the operation point graphic element is read and replaced to complete the instantiation processing of the operation point graphic element, which includes:
[0116] When the operation type is a return operation, the target screen name is generated according to the recorded matrix screen identifier, and the screen information associated with the operation point element is replaced;
[0117] When the operation type is the previous page or next page operation, the corresponding index value is calculated according to the screen identifier associated with the operation point element. The index value is adjusted to achieve cyclic switching of the template screen and replace the screen information associated with the operation point element.
[0118] It should be noted that the operation point icon can quickly switch and control the screen through different operation modes (remote control, remote adjustment, jump screen, etc.); users can jump to the detailed information page by clicking the device icon, making the interface switching smoother and improving the user operation experience.
[0119] like Figure 3 As shown, run the online monitoring screen program, open the matrix / overview diagram, click on a device element for which detailed information needs to be displayed, and the system reads the device template associated with this element and parses out the device type, model, identifier, etc. The system loads all dynamic template content (only needs to be loaded once) and reads the corresponding template based on the device type and model (if there are multiple templates, read the template with the sequence number attribute set to 0); reads the device identifier associated with the device element in the template screen, compares the device information associated with the new device with the old device, traverses all elements in the template screen, and replaces the information of the elements associated with the model, that is, replaces the old device information with the new device information. After instantiation is completed, it is displayed in real time in the graphic browser. Based on the configuration, you can choose whether to generate a physical screen file after instantiation and save it in the locally set path.
[0120] A method for dynamic rendering and instantiation of information of new energy centralized control equipment is implemented, taking wind turbine equipment as an example:
[0121] 1. Each wind turbine model has different measurement information and requires a different number of monitoring points. Therefore, a different template screen needs to be drawn for each wind turbine model. Create a new screen for each wind turbine model in the graphic editor and draw the corresponding template screen, which includes basic graphics (such as static text, rectangular boxes, and bitmaps) and graphics that need to be instantiated (such as operation points, dynamic text, telesignaling points, telemetry points, plug-ins, and device graphics). Operation point graphics are used for screen jumps and remote control and adjustment. Dynamic text is replaced with the actual device name at runtime. Telesignaling and telemetry points display device measurement information. Plug-ins display device-specific information (such as wind speed and power curves and fault alarm information). Device graphics display the device information corresponding to the current screen.
[0122] 2. Create a new "Device Template Drawing" folder under the screen template partition of the configuration database manager (divided into different types according to the type of data stored. The template screen partition is used to classify and store the drawn template screens) and set the folder description; create corresponding type folders according to different device types (such as wind turbines, inverters, and energy storage) in this folder. The folder name uses the device model name, and the folder description is changed to indicate that the last few digits are matched when matching a certain attribute value of the measurement point; create folders of different models according to the device model under the device type folder, and create corresponding template screen names under the folder. The first template screen is numbered 0 and increases in sequence; the device's measurement information matching method and whether to generate a local file are configured in the screen configuration file; after the configuration is completed, the changes need to be submitted to the real-time database to facilitate reading and use during real-time monitoring.
[0123] 3. If the same type of wind turbines need to be monitored and operated on the same screen, arrange the wind turbine graphics in a matrix. Create a new screen in the graphics editor, draw a wind turbine matrix diagram, and set the screen type to "Matrix Diagram." The matrix diagram will display the wind turbine array, including information such as wind turbine name, wind speed, and power, and serve as the entry point for generating the wind turbine overview screen.
[0124] 4. Run the online monitoring screen program in the system console, open the fan matrix diagram, click the fan equipment element for which detailed information needs to be viewed, and the screen will respond to the click operation. If the monitoring operation object is a fan equipment element, the template overview screen associated with the fan element model will be opened and instantiated for display.
[0125] Among them, Figure 4 As shown in the figure, the process of instantiating the wind turbine overview template screen is as follows:
[0126] 1. Read the device model associated with the clicked device element and parse the device type, model, identifier and other information; load the dynamic template configuration content, obtain the corresponding template information (template screen serial number, template screen name) from the template configuration according to the wind turbine device model, and verify the template information, such as whether the template screen serial number increases sequentially starting from 0, whether the template screen name complies with the naming rule (such as the naming rule is "screen ID-ScheFile"), and record the matrix screen identification ID of the entry.
[0127] 2. Get the template screen ID with serial number 0 and perform permission judgment (due to different configuration permissions of system login users, only users with "online browsing" permission are allowed to open the template screen). If the operation permission is not available, a prompt will be given and the system will return. If the operation permission is available, the system will read the template screen and load the screen model. Figure 5 shown.
[0128] 3. For dynamic text primitives, read the associated old device (i.e., template device) model, obtain the old device name, obtain the new device name based on the new device model, and replace the old device name that appears in the text with the new device name, thereby completing the instantiation of the dynamic text primitive.
[0129] 4. For measurement point primitives, different processing is performed according to the measurement point matching method configured in the screen (by serial number or by description). When matching by serial number, the measurement information of the new and old devices is read, and a mapping relationship is established according to <serial number, measurement ID>. Then, the mapping relationship between the measurement primitive serial number attribute and the primitive model is read from the screen model; the measurement mapping relationship of the new and old devices is reprocessed, and a mapping relationship between the index and the serial number is established. For example, the minimum serial number corresponding to the index of 0 is mapped in sequence; the mapping relationship between the primitive serial number and the primitive model is traversed, and the index corresponding to the serial number is obtained from the measurement serial number of the old device. According to the index, the serial number corresponding to the measurement of the new device is obtained from the mapping relationship between the serial number of the new device and the index. Then, the ID of the measurement of the new device is obtained according to the serial number. This is done because the measurement point serial numbers of different devices are not consistent, and may not be continuous, but the relative order and quantity are consistent, so a special processing is required; after finding the ID corresponding to the new measurement, the model information associated with the measurement primitive is replaced. When matching by description, a mapping relationship between the new and old device measurement information is established, the description is read according to the configuration format, the mapping relationship between the primitive description and the primitive model is traversed, the new device measurement point ID is obtained and replaced, thereby completing the instantiation of the measurement point primitive.
[0130] 5. For the fan equipment element, replace the associated equipment model information with the model information of the new equipment, thereby completing the instantiation of the fan equipment element.
[0131] 6. For the operation point element, read the operation point attributes configured in the template screen, and distinguish whether this operation point is used to switch screens or for remote control or remote adjustment based on the configured operation point attributes. When remote control or remote adjustment is performed, match and instantiate the remote control and adjustment points of the new and old devices according to the above-mentioned measurement element instantiation method; when adjusting the screen, replace the associated screen information; determine the operation type based on the text content set by the operation point, and for the return operation, generate and replace the screen name based on the recorded matrix diagram identifier; for the previous page and next page operations, generate the screen name based on the screen identifier associated with the current operation point, and obtain the current corresponding index from the template configuration based on the screen name, subtract one from the "previous page" index, and add one to the "next page" index, then obtain the screen name corresponding to the index, and then replace the screen name associated with the operation point; set the number of template screens in the template configuration. When the maximum index is exceeded, the "next page" index is set to 0, and when it is less than the minimum index, the "previous page" index is set to the maximum index, to achieve cyclic switching of multiple template screens.
[0132] 7. Read the plug-in data information, replace the information about the old device with the information of the new device, and reset the plug-in data.
[0133] 8. Use the new model information to replace the parts that need to be replaced in the model of the picture itself.
[0134] 9. If the screen configuration needs to be saved in a local file, save and generate a local screen entity file for easy troubleshooting in the future; Figure 6 As shown, this solution provides the function of saving local files. The generated local screen entity files can be used as backups for subsequent problem troubleshooting and system maintenance. This design enhances the maintainability of the system and helps ensure that problems in the device management process can be identified and resolved in a timely manner.
[0135] In addition, template screens (template images): In graphical interface design, template screens are predefined screen designs that contain basic and dynamic graphics elements, used to display device-related information. Template screens can be instantiated to display different content based on different devices in subsequent use. Graphics: Graphics are the basic units that make up graphical interface elements. Graphics include static graphics (such as text, frames, bitmaps) and dynamic graphics (such as operation points, telesignaling points, telemetry points, plug-ins, etc.). Dynamic graphics are updated based on the device status at runtime. Operation point graphics: Operation point graphics are the part where users interact with the device, typically used to trigger certain operations or jump to other screens, such as remote control, remote device adjustment, and switching screens. Dynamic text graphics: Dynamic text graphics are variable text. The displayed content, such as device name and status, is replaced at runtime based on actual device information. Telesignaling and telemetry points: Telesignaling and telemetry points are points in a remote monitoring system used to obtain device status or numerical information. Telesignaling points are typically used to indicate the on / off status of a device, while telemetry points are used to indicate the device's physical measurement values, such as temperature, voltage, and flow. Plug-ins: Plug-ins are custom graphic elements used to extend system functionality. They typically have independent interfaces and are used to display specific device information, such as wind speed, power curves, and fault alarms. Device graphic elements: Device graphic elements are used to display specific device information. They are graphical representations of the device, showing its status, name, type, and so on. Template configuration: Template configuration is the process of defining the settings and associated information for a template graphic. Device model: A device model describes the structure and properties of a specific device, including information such as the device type, model, and identifier. The device model accurately represents the various functions and states of the device. Measurement information: Measurement information refers to the actual operating status data of the device obtained through telesignaling and telemetering points, typically including parameters such as current, voltage, temperature, and pressure. Template screen sequence number: The template screen sequence number is the index of each screen in the template, used to identify the order of the screens. It typically starts at 0 and increases sequentially. Permission determination: Permission determination is the process of checking whether a user has permission to perform certain operations in the system, such as viewing certain screens or executing certain control commands. Operation mode: The operation mode refers to the functional type of the operating point element, including operation modes such as remote control and adjustment operation or screen switching. Dynamic template configuration content: The dynamic template configuration content refers to the configuration information of the template screen. At runtime, the corresponding content is loaded according to the template screen model and displayed dynamically. Screen model: The screen model refers to the structure and composition of the screen design. It defines the layout, type and behavior of all elements in the screen. Specific device information can be displayed by loading the screen model. Screen configuration file: The screen configuration file is used to save the configuration information used by the online screen and is read when the online screen is loaded.Mapping relationship between index and serial number: Since the serial numbers of measurement points of different devices may be different, but the order and quantity between them are consistent, it is necessary to use a mapping relationship to match the serial numbers of measurement points of different devices for correct display and matching. Local file saving: When the screen configuration needs to be saved, the generated screen content will be saved as a local file. These files can be used for subsequent troubleshooting or analysis when the device fails. Data replacement of plug-in graphics: Plug-in graphics update the display data by reading and replacing the information of the old device with the information of the new device, ensuring that the plug-in can display the status or data of the current device. Model information replacement: During the instantiation process, for the devices, graphics and other content in the screen, the model information of the old device is replaced and the model information of the new device is used for display.
[0136] In summary, the above-mentioned technical solution of the present invention utilizes a templated design to read device models and their corresponding templates for dynamic instantiation. This allows for dynamic replacement of device information within the template primitives, based not only on the static layout of the template primitives but also in combination with the device model and instantiation requirements. This allows for flexible replacement of primitives within the scene and dynamic loading of information. By using a matrix diagram as a dynamic generation entry point, corresponding monitoring screens can be loaded based on different device models, and local files can be generated for use by debuggers, providing powerful dynamic update and debugging capabilities. Furthermore, by clicking on a device primitive in the matrix diagram, the corresponding device screen is dynamically loaded and displayed, providing user interactivity and flexibility. By combining device models with dynamic information replacement requirements, the flexibility and applicability of monitoring screen generation are enhanced, enabling automated generation and flexible switching of device monitoring screens, providing more flexible graphical display and debugging support, and thus enhancing user experience and operational convenience. Through designs such as templated management, flexible device information matching, dynamic information display, and permission control, the system not only improves the efficiency and accuracy of device management, but also enhances flexibility and scalability, improves user experience, and possesses high application value and market potential.
[0137] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for dynamic rendering and instantiation of information of new energy centralized control equipment, characterized in that: include: S1. Draw corresponding template screens containing graphic elements according to different models of new energy centralized control equipment, store the equipment type, model and corresponding template screen association information in the configuration database, and synchronize it to the real-time database; S2. In the graphic editor, arrange the graphics elements of the same type of equipment in a matrix form to construct a matrix diagram, and set the matrix diagram as the entrance to each template screen; S3. Click on the graphic element in the matrix diagram to match and load the corresponding template screen model, and realize the instantiation display of device information by replacing the graphic element.
2. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 1, characterized in that: Drawing corresponding template screens containing graphic elements according to different models of new energy centralized control equipment, storing the associated information of equipment type, model and corresponding template screens in the configuration database, and synchronizing to the real-time database includes: S11. In a graphic editor, draw a corresponding template screen containing graphic elements according to different models of new energy centralized control equipment; S12. Create a device template folder under the screen template partition of the configuration database, create a first-level subfolder in the device template folder based on the device type, and create a second-level subfolder in the first-level subfolder based on the device model; S13. Create a template screen for each device model in the secondary subfolder, name the template screen, and set the serial number of the first template screen to zero. The serial numbers of subsequent template screens will increase in sequence. S14. According to the configuration matching mechanism and the local file generation strategy, the device type, model and corresponding template screen association information are synchronized to the real-time database to support dynamic calling during monitoring.
3. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 1, characterized in that: In the graphic editor, the graphic elements of the same type of devices are arranged in a matrix form to construct a matrix diagram, and the matrix diagram is set as the entrance to each template screen, including: S21. Based on the graphic elements in the template screen, use a clustering algorithm to group different types of devices to generate a set of similar devices; S22. Calculate the optimal row and column combination using a dynamic grid layout algorithm based on the number of similar device sets and the preset canvas size, and set adaptive spacing rules based on the size of the graphics element; S23. Traverse the set of similar devices in the graphics editor, bind the device information to the corresponding graphics primitives, and arrange the bound graphics primitives using the Boolean constraint propagation algorithm in combination with the optimal row and column combination and spacing rules to construct a matrix diagram; S24. Use the virtual scrolling technology based on viewport clipping to optimize the rendering of the graphics elements in the matrix diagram, and set the optimized matrix diagram as the entrance of each template screen to display the device information.
4. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 3, characterized in that: The method of calculating the optimal row and column combination using a dynamic grid layout algorithm based on the number of similar device sets and a preset canvas size, and setting an adaptive spacing rule based on the size of the graphic element includes: S221. Randomly generate a number of row and column combinations based on the number of similar device sets and a preset canvas size to form an initial population; S222: Set an initial step size, perform a neighborhood search on each row and column combination, and calculate the fitness value of the layout based on the neighborhood search results; S223, sorting the fitness values in descending order, and selecting the first several row and column combinations as the next generation population; S224, calculating the difference between the highest fitness value in the current population and the target fitness value, and comparing it with a preset threshold value, judging whether the termination condition is met based on the comparison result, if the difference is less than the preset threshold value, the termination condition is met, and the current optimal row and column combination is output, otherwise, repeating steps S222 to S224 until the termination condition is met; S225. According to the optimal row and column combination and the size of the graphic element, an adaptive spacing rule is set to optimize the layout effect.
5. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 4, characterized in that: The calculation formula of the fitness value is: In the formula, F represents the fitness value; r represents the number of rows in the current row-column combination; c represents the number of columns in the current row-column combination; w1 represents the weight coefficient; n represents the number of devices to be arranged; w2 represents the weight coefficient; W i Indicates the width of the canvas; H i Indicates the height of the canvas; W j Indicates the width of a single device primitive; H j Indicates the height of a single device primitive; w3 indicates the weight coefficient; σ h represents the variance of the horizontal gap; σ v Indicates the variance of the gap in the vertical direction.
6. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 1, characterized in that: Clicking on a graphic element in the matrix diagram, matching and loading a corresponding template screen model, and implementing instantiation display of device information by replacing the graphic element includes: S31. Run the online monitoring screen program, run the matrix diagram, click on an element in the matrix diagram, and obtain device information associated with the element; S32. Based on the acquired device information, extract the corresponding template configuration information from the real-time database, verify the template configuration information, and record the screen identification of the matrix diagram; S33. Extract the screen identifier with serial number zero from the screen identifiers, and determine whether the user has permission to load the template screen. If the user has permission, read and load the corresponding template screen model. Otherwise, prompt and return to the matrix diagram. S34. Traverse the graphic elements in the template screen model and replace them according to corresponding replacement rules to realize the instantiation display of device information. The graphic elements include dynamic text graphic elements, measurement point graphic elements, device graphic elements, plug-ins and operation point graphic elements.
7. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 6, characterized in that: The traversing of the graphic elements in the template screen model and replacing the graphic elements according to corresponding replacement rules to realize instantiation display of device information includes: S341, traverse the dynamic text primitives in the template screen model, extract the associated device name and replace it with the new device name; S342, traversing the measurement point primitives in the template screen model, establishing a mapping relationship according to a matching mechanism for the measurement points, and replacing the measurement point primitives based on the mapping relationship, wherein the matching mechanism includes sequence number matching and description matching; S343, traversing the device primitives and plug-ins in the template screen model, and replacing the template device model associated with the device primitives and plug-ins with the template device model of the new device; S344: traverse the operation point graphic element in the template screen model, identify the operation point attributes, and update them using corresponding replacement logic. The operation point attributes include remote control operation and screen switching.
8. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 7, characterized in that: The traversing of the measurement point primitives in the template screen model, establishing a mapping relationship according to the matching mechanism of the measurement points, and replacing the measurement point primitives based on the mapping relationship includes: When matching serial numbers, a mapping relationship between the serial numbers of the new and old devices and the measurement points is established. The measurement points of the new device are located through the index of the serial number of the old device, and the measurement point primitives are extracted and replaced to complete the instantiation process. When matching according to the description, a measurement information mapping relationship between the new and old devices is established, the description is read according to the configuration format, the mapping between the description and the template screen model is traversed, and the measurement point primitive is obtained and replaced to complete the instantiation process.
9. A method for dynamic rendering and instantiation of information of new energy centralized control equipment according to claim 8, characterized in that: The traversing of the operation point graphic element in the template screen model, identifying the operation point attribute, and updating using the corresponding replacement logic includes: If the operation point is used for remote control, a mapping relationship is established according to the matching mechanism of the measurement point, and the remote control information associated with the operation point primitive is replaced to complete the instantiation processing of the operation point primitive; If the operation point is used for screen switching, the operation type is determined based on the text content of the operation point, and the screen information associated with the operation point graphic element is read and replaced to complete the instantiation processing of the operation point graphic element. The operation type includes return operation, previous page or next page operation.
10. A method for dynamic rendering and instantiation of new energy centralized control equipment information according to claim 9, characterized in that: If the operation point is used for screen switching, the operation type is determined according to the text content of the operation point, and the screen information associated with the operation point graphic element is read and replaced to complete the instantiation processing of the operation point graphic element. When the operation type is a return operation, the target screen name is generated according to the recorded matrix screen identifier, and the screen information associated with the operation point element is replaced; When the operation type is the previous page or next page operation, the corresponding index value is calculated according to the screen identifier associated with the operation point element. The index value is adjusted to achieve cyclic switching of the template screen and replace the screen information associated with the operation point element.
Citation Information
Patent Citations
Template-based dynamic interval histogram generation method
CN104346758A
Template-based centralized control station monitoring page automatic generation method and device
CN119292596A