Method, device, computer storage medium and terminal for generating a small trend picture

By pre-building and differentiating the configuration of small trend screen objects, the problems of code redundancy and interface flickering in the localization upgrade of DCS are solved, and the small trend screens are generated efficiently and displayed with high quality.

CN121213716BActive Publication Date: 2026-05-22BEIJING HELISHI CONTROL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING HELISHI CONTROL TECH CO LTD
Filing Date
2025-09-24
Publication Date
2026-05-22

Smart Images

  • Figure CN121213716B_ABST
    Figure CN121213716B_ABST
Patent Text Reader

Abstract

A method, device, computer storage medium and terminal for generating a small trend picture, the embodiment of the disclosure constructs two or more first combination icon objects, each sub-element of the first combination icon object, pre-configures the interaction characteristics of the button release of the trend panel, abstracts the commonality of different specifications of the small trend picture into a unified basic template, provides a basis for reusing the first combination icon object, selects a second combination icon object from the first combination icon object according to the functional requirements of the small trend picture to be generated, eliminates the code repetition for implementing the small trend picture, and reduces the redundancy of code development and maintenance, configures the dynamic characteristics of the trend panel update of the second combination icon object according to the name, input parameter and item value required by the point in the configuration DCS, meets the differentiated requirements of different small trend pictures, and improves the generation efficiency of the small trend picture through the reuse of the first combination icon object and the differentiated configuration processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to distributed control technology, and more particularly to a method, apparatus, computer storage medium, and terminal for generating mini-trend images. Background Technology

[0002] In nuclear power plant distributed control systems (DCS), trend charts serve as a crucial monitoring tool, graphically displaying changes in process data over time. They play a vital role in real-time tracking and analysis of key parameter variations. During the implementation of nuclear power DCS projects, process flow diagrams typically require the simultaneous monitoring of multiple core parameters (such as temperature, pressure, flow rate, and liquid level). This necessitates the integrated display of one or more trend charts within a single process flow diagram. Because these trend charts are relatively small in size and need to be displayed in conjunction with the process flow, they are generally defined as small trend charts.

[0003] In some nuclear power DCS projects that have already been implemented, the process flow diagram is generally used as the base map, and multiple smaller trend screens are displayed in a floating window. Compared to the main trend screen, the smaller trend screens have fewer functions, such as only displaying real-time trends, the displayed curve points cannot be modified once confirmed, trend groups cannot be switched, and curves cannot be scaled or moved. However, during the DCS localization upgrade process, this solution has exposed two problems: 1. Code development and maintainability issues: The system includes smaller trend screens of various specifications (such as 2, 4, or 6 curves), and each specification is implemented using independent functional script code, resulting in redundant development work for new versions and high maintenance costs in the later stages; 2. Visualization performance issues: When the process flow diagram screen is opened, multiple smaller trend screens are loaded and opened simultaneously, causing interface flickering and affecting the visual effect.

[0004] To address the aforementioned issues, how to upgrade the small trend display during the DCS upgrade process while ensuring its display quality has become a problem that needs to be solved. Summary of the Invention

[0005] This application provides a method for generating mini-trend images, including:

[0006] Based on the functional requirements of the mini-trend image to be generated, a second combination symbol object is selected from two or more pre-built first combination symbol objects to generate the mini-trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for mini-trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined. Each sub-element of the first combination symbol object is pre-configured with the interactive features of the trend panel's button release.

[0007] Based on the determined sub-element name, input parameters, and the item values ​​required to configure all points in the Distributed Control System (DCS), the dynamic characteristics of the trend panel update of the second combined icon object are configured, and the second combined icon object with the completed dynamic characteristic configuration is used as a mini-trend screen. The input parameters are received through the dynamic characteristic configuration window of the graphical configuration software, and the input parameters include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server.

[0008] On the other hand, embodiments of this application also provide a computer storage medium storing a computer program, which, when executed by a processor, implements the above-described method for generating small trend images.

[0009] Furthermore, embodiments of this application also provide a terminal, including: a memory and a processor, wherein the memory stores a computer program; wherein,

[0010] The processor is configured to execute computer programs in memory;

[0011] When the computer program is executed by the processor, it implements the method for generating small trend images as described above.

[0012] Furthermore, embodiments of this application also provide an apparatus for generating mini-trend images, comprising: a selection processing unit and a dynamic characteristic configuration unit; wherein,

[0013] The selection processing unit is set as follows: based on the functional requirements of the mini-trend image to be generated, a second combination symbol object is selected from two or more pre-built first combination symbol objects to generate the mini-trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for mini-trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined. Each sub-element of the first combination symbol object is pre-configured with the interactive features of the button release of the trend panel.

[0014] The dynamic feature configuration unit is set to: configure the dynamic characteristics of the trend panel update of the second combined symbol object according to the determined sub-element name, input parameters, and the item values ​​required to configure all points in the distributed control system (DCS), and use the second combined symbol object with completed dynamic characteristic configuration as a mini-trend screen. The input parameters are received through the interactive feature configuration window of the graphical configuration software, and the input parameters include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server.

[0015] This disclosure pre-constructs two or more first combined symbol objects, abstracting the common functions of different specifications of small trend images into a unified basic template. Each sub-element of the first combined symbol object is pre-configured with the interactive characteristics of the button release of the trend panel, providing a basis for reusing the first combined symbol objects. According to the functional requirements of the small trend image to be generated, a second combined symbol object is selected from the two or more first combined symbol objects to generate the small trend image, eliminating the code duplication in the generation of small trend images during DCS upgrades and reducing the redundancy of small trend image code development and maintenance. According to the name of the sub-element, input parameters, and the item values ​​required to configure all points in the DCS, the dynamic characteristics of the trend panel update of the second combined symbol object are configured. Through differentiated parameterized configuration, the differentiated requirements of different small trend images are met. By reusing the first combined symbol objects and differentiated configuration processing, the generation efficiency of small trend images is improved, the development and maintenance cost of DCS is reduced, and technical support is provided for the upgrade and expansion of DCS.

[0016] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the solutions described in the description and the accompanying drawings. Attached Figure Description

[0017] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.

[0018] Figure 1 A flowchart of a method for generating microtrend images according to embodiments of this disclosure;

[0019] Figure 2 This is a schematic diagram of a small trend screen according to an embodiment of this disclosure;

[0020] Figure 3 A structural block diagram of an apparatus for generating mini-trend images according to embodiments of this disclosure. Detailed Implementation

[0021] This application describes several embodiments, but these descriptions are exemplary and not restrictive, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.

[0022] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application can also be combined with any conventional features or elements to form unique inventive solutions. Any feature or element of any embodiment can also be combined with features or elements from other inventive solutions to form another unique inventive solution. Therefore, it should be understood that any feature shown and / or discussed in this application can be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes can be made within the scope of the appended claims.

[0023] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to the specific order of steps described herein, to the extent that it does not depend on such a specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims concerning the method and / or process should not be limited to the steps performed in the written order, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.

[0024] Figure 1 A flowchart of a method for generating mini-trend images according to embodiments of this disclosure is shown below. Figure 1 As shown, it includes:

[0025] Step 101: Based on the functional requirements of the mini-trend image to be generated, select a second combination symbol object from two or more pre-built first combination symbol objects to generate the mini-trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for mini-trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined. Each sub-element of the first combination symbol object is pre-configured with the interactive features of the trend panel's button release.

[0026] Step 102: Based on the determined sub-element name, input parameters, and the item values ​​required to configure all points in the Distributed Control System (DCS), configure the dynamic characteristics of the TrendPanel_Update of the second combined icon object, and use the second combined icon object with the completed dynamic characteristic configuration as a mini-trend screen. The input parameters are received through the dynamic characteristic configuration window of the graphical configuration software, and include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server.

[0027] This disclosure pre-constructs two or more first combined symbol objects, abstracting the common functions of different specifications of small trend images into a unified basic template. Each sub-element of the first combined symbol object is pre-configured with the interactive characteristics of the button release of the trend panel, providing a basis for reusing the first combined symbol objects. According to the functional requirements of the small trend image to be generated, a second combined symbol object is selected from the two or more first combined symbol objects to generate the small trend image, eliminating the code duplication in the generation of small trend images during DCS upgrades and reducing the redundancy of small trend image code development and maintenance. According to the name of the sub-element, input parameters, and the item values ​​required to configure all points in the DCS, the dynamic characteristics of the trend panel update of the second combined symbol object are configured. Through differentiated parameterized configuration, the differentiated requirements of different small trend images are met. By reusing the first combined symbol objects and differentiated configuration processing, the generation efficiency of small trend images is improved, the development and maintenance cost of DCS is reduced, and technical support is provided for the upgrade and expansion of DCS.

[0028] In this embodiment of the disclosure, the small trend screen is an image with a process flow diagram as the base image, and the size is one-sixth or one-eighth of the process flow diagram. The small trend screen can be seen as a display window control, and its size can be adjusted.

[0029] This embodiment of the disclosure allows users to combine common components of a mini-trend screen of the same specification into a reusable first combined icon object based on the functional requirements of the mini-trend screen, such as the number of curves to be displayed (e.g., two, four, or six). This can be achieved through a combination of trend controls, buttons, text elements, and rectangle elements, using methods including dragging and dropping. For example, combining the common components of a mini-trend screen with two curves using trend controls, buttons, text elements, and rectangle elements yields a first combined icon object containing two curves; combining these components again yields the common components of a mini-trend screen with four curves, resulting in a first combined icon object containing four curves. During step 101, based on the number of curves in the mini-trend screen to be generated, this embodiment of the disclosure selects the first combined icon object with the same number of curves as the second combined icon object.

[0030] Based on common knowledge in the art, a point in the DCS of this disclosure embodiment is a basic unit of system input / output (I / O) or intermediate variable, representing a logical channel for data acquisition, control signals, or calculated values; wherein, input point: analog (AI) or digital (DI) signal acquired from field instruments (such as temperature sensors, pressure transmitters); for example, a signal from a temperature sensor is connected to the DCS through an AI card, occupying 1 input point; output point: analog (AO) or digital (DO) control signal sent to actuators (such as valves, motors); for example, the AO signal for adjusting the valve opening occupies 1 output point.

[0031] This represents a parameter in a DCS. Based on the required value of the parameter at a point, a curve of the parameter can be obtained, such as a curve of voltage value, current value, or temperature.

[0032] In one exemplary instance, in a graphical configuration software, a first combined symbol object is constructed by dragging and combining various static elements (text, etc.) and dynamic elements (trend controls). After selecting a second combined symbol object from the first combined symbol object, the configuration of dynamic and interactive characteristics is achieved through code compilation. The generation of different small trend screens is independent of each other. This embodiment of the present disclosure can generate small trend screens based on the first combined symbol object. Theoretically, when the differences between the small trend screens to be generated are small, this embodiment of the present disclosure can generate one of the similar small trend screens, and then compile and adjust the generated small trend screen to generate a new small trend screen that meets the user's requirements.

[0033] In one exemplary instance, after generating the mini-trend image, the method of this disclosure embodiment further includes:

[0034] Using graphical configuration software, small trend images are embedded into the process flow diagram.

[0035] Unlike related technologies that load multiple sub-trends by overlaying a process flow diagram as a base image, this embodiment embeds the sub-trend image into the process flow diagram when displaying the application sub-trend image online. The sub-trend image is an internal component of the process flow diagram. The process of loading the process flow diagram and the graphics contained in the sub-trend image is a process of loading an integrated process flow diagram. This avoids the interface flickering problem that occurs when loading the process flow diagram and multiple sub-trend images simultaneously, improves the display quality of the sub-trend image, and enhances the user's visual experience.

[0036] In one exemplary instance, see Figure 2 Taking six curves as an example, the small trend screen in this embodiment of the disclosure may include the following sub-elements: title, range setting button, ruler show / hide button, a set of time interval setting buttons, trend control, a set of checkbox buttons, and a curve trend information list. The curve trend information list displays the point name, current value, unit, and upper and lower limits of the range corresponding to the curve.

[0037] In one exemplary instance, the input parameters of this disclosure embodiment may further include: curve attribute information of the curve, including one or any combination of the following: color, time interval, and font display color; control display information of the trend control, including one or any combination of the following: real-time display mode and font display effect, etc.; the number of curves and the point name corresponding to each curve in this disclosure embodiment can be predetermined by the configuration engineer.

[0038] In one exemplary instance, the item values ​​required for all points in the DCS of this disclosure embodiment include: current value, output format, upper and lower range limits, dimensions (information list, units), mass, mandatory flag, over-limit flag, point description, alarm indication flag, alarm level, etc. (this information is used when updating the trend list display content).

[0039] The platform periodically calls TrendPanel_Update in the embodiments of this disclosure.

[0040] This disclosure embodiment configures the dynamic characteristics of the trend panel update (TrendPanel_Update) of the second combined icon object through the following processing:

[0041] Step 301: Obtain the ID of each child element based on the ID of the mini-trend screen and the name of each child element;

[0042] Step 302: Based on the obtained sub-element ID and whether the second combined icon object is called for the first time, the trend panel is updated using the input parameters and the read item values.

[0043] In one exemplary instance, upon the first invocation of the second composite icon object, configuration processing for updating the trend panel is performed using input parameters and read item values, including the following initialization settings based on the obtained child element IDs:

[0044] Step 401: Initialize the trend information list and checkbox buttons in the second combined icon object according to the item values ​​read from the DCS real-time server, and display the point name and point number in the input parameters in the trend information list;

[0045] Step 402: Add curves to the trend control according to the item values, and configure each added curve according to the curve attribute information in the input parameters and the time interval and upper and lower limits of the range in the item values;

[0046] Step 403: Configure the trend control according to the control display information in the input parameters, and configure the periodic update state of the trend control display box according to the quality, forced flag and over-limit flag in the item value.

[0047] The default setting of the trend control display cursor in this embodiment is to configure the trend control to real-time display mode and set the font color and left time; wherein, the left time can be calculated based on the current time and the time interval (e.g., 500ms).

[0048] It should be noted that the color of the curve in the embodiments of this disclosure can be set manually or the default color can be used.

[0049] In one exemplary instance, starting from the second time, before the configuration processing for updating the trend panel using input parameters and read item values ​​each time the second combined icon object is invoked, the method of this disclosure embodiment further includes:

[0050] Based on the point name of each curve in the input parameters, the corresponding point type is read from the DCS real-time server; the real-time server is used to store real-time data.

[0051] Based on the type of the points read, determine whether each point is an analog signal or a digital signal.

[0052] In one exemplary instance, starting from the second time, each time the second combined icon object is invoked, the trend panel update configuration is performed using the input parameters and the read item values, including the following configuration based on the obtained child element IDs:

[0053] Step 501: Update the display content of the trend information list according to the point description in the item value. According to the output format in the item value, convert the current value and the upper and lower limits of the range, and update the trend information list with the converted current value and the upper and lower limits of the range.

[0054] Step 502: Set the display status of the current value according to the quality and forced flag in the item value;

[0055] Step 503: Set the display box status of the trend space according to the quality, forced flag and over-limit flag in the item value;

[0056] Step 504: Set the background color of the current value according to the out-of-limit flag in the item value;

[0057] Step 505: Read the left time, right time, and time interval from the trend control, and update the left time and right time of the trend control according to the current time of the operating system. The left time is the start time, and the right time is the end time.

[0058] Step 506: Read the historical values ​​of all points in the DCS for a preset duration from the DCS historical server. Convert the read historical values ​​into the data type corresponding to the curve according to the type of the read points, and then display the converted historical values ​​in the trend control.

[0059] The following example illustrates the updating of left and right times in this embodiment of the disclosure. Assume that each trend curve is composed of 1200 points. When the time interval is 500ms, the time span is 10 minutes. Initially, the current time is displayed at three-quarters of the X coordinate. Then, the left time is the current time minus 7.5 minutes, and the right time is the left time plus 10 minutes. After that, a check is performed every cycle. If the current time exceeds the right time, the current time is updated to three-quarters of the X coordinate, and the left and right times are recalculated.

[0060] In this embodiment of the present disclosure, the historical values ​​of points with a preset duration can be forwarded to the historical server in real time, and the historical server stores them as data files. The historical values ​​of points with a preset duration can be the values ​​of points in the DCS with a set start time and a certain duration.

[0061] In one exemplary instance, the method of this disclosure embodiment further includes:

[0062] If an abnormal communication with the computing server is detected, an error occurs in the dynamic characteristics of the trend panel update for the second combined icon object, or it is determined that the point name does not exist, then it is determined that reading the corresponding point type from the real-time server in the DCS has failed.

[0063] If it is determined that reading the corresponding point type from the real-time server in the DCS fails, the dynamic feature of updating the trend panel of the second combined icon object is terminated.

[0064] In one exemplary instance, whether the second combined icon object is invoked for the first time in this embodiment of the disclosure can be determined by referring to related technologies based on the symbol attributes of the small trend screen. Typically, the first invocation marks the attribute as 1, and after one invocation, the attribute is changed to 0.

[0065] In this embodiment, the interactive feature needs to be configured for each sub-element that requires operation. When the left mouse button is released, the function is triggered. By configuring the interactive feature, the left mouse button release message of each sub-element is responded to. In the graphical configuration software, the interactive feature of TrendPanel_ButtonUp is configured for each sub-element that requires operation, such as trend controls, buttons, trend information lists, etc. The screen object type can be determined by the engineer's configuration.

[0066] In one exemplary instance, the interactive properties of the TrendPanel_ButtonUp release of each child element of the first composite icon object in this disclosure embodiment are configured as follows:

[0067] Step 601: Obtain the pointer of the trend control from the process flow diagram of the loaded small trend screen according to the small trend screen ID and the name of the trend control (Curve1);

[0068] Step 602: Determine the child element operated by the trend control pointer. The operated child element includes any one of the following: checkbox, trend information list, time interval button, ruler button, range setting button, and trend control.

[0069] Step 603: Configure the corresponding interactive features for the identified child elements that are manipulated by the trend control pointer.

[0070] In one exemplary instance, this embodiment of the disclosure configures corresponding interactive features for a determined sub-element manipulated by the trend control pointer, including:

[0071] When the child element operated by the trend control pointer is a checkbox, determine the small trend screen ID and checkbox ID operated by the trend control pointer, and obtain the state of the operated checkbox.

[0072] The checkbox to be operated on is switched from its first state to its second state. The first state is either checked or unchecked; if the first state is checked, the second state is unchecked, and if the first state is unchecked, the second state is checked.

[0073] When the operated checkbox is switched to unchecked, the ID of the corresponding row element in the trend information list is obtained according to the row of the operated checkbox, and the state of the row is configured to be unchecked according to the obtained row element ID, and the corresponding curve on the trend control is set not to be displayed.

[0074] When the operated checkbox is switched to checked, the curve is displayed according to the preset check display rules (in this embodiment of the present disclosure, when the checkbox is checked, the corresponding curve can be displayed in the trend control, multiple checkboxes can be checked at the same time, and the trend control can draw multiple curves at the same time; only when the checkbox of the corresponding row is checked can the corresponding information list row be selected (the background color is modified). When a row is selected, the corresponding curve is drawn in thick on the trend control; when the checkbox is dechecked, if the corresponding information list row is selected, the selection state of that row is deselected, and the trend control is set to a state where no curve is selected (all rows are not thick); deselection does not affect other checkboxes or other list rows; for example, if the first row was previously selected, and the fifth row is deselected, the curve of the first row is still displayed in thick, the curve of the fifth row is not displayed, and the first row of the list is still selected).

[0075] When the child element of the trend control pointer operation is a trend information list, determine the sub-trend screen ID and the trend information list name of the trend control pointer operation;

[0076] Based on the determined trend information list name, obtain the checkbox ID of the checkbox corresponding to that trend information list;

[0077] Based on the obtained checkbox ID, obtain the sequence number of the curve selected by the trend control pointer operation;

[0078] Based on the obtained selection curve number, the corresponding curve is displayed according to the preset display method (for example: if the checkbox corresponding to the row is checked, the row can be selected and the corresponding curve is thickened; if the checkbox corresponding to the row is not checked, the row cannot be selected).

[0079] In this embodiment of the disclosure, when other curves are displayed first, the other displayed curves are de-displayed. The process includes deselecting the corresponding row in the trend information list that has been de-displayed.

[0080] When the child element operated by the trend control pointer is a time interval button, set all other time interval buttons except the one being operated on to the up state; based on the time interval corresponding to the button being operated on and the current time of the operating system, recalculate the left and right times of the trend control, call the trend control interface, and update the mini-trend screen;

[0081] When the child element of the trend control pointer is a ruler button, if the button is in the released state before the operation, set the button to the pressed state and configure the trend control to display the ruler. If the button is in the pressed state before the operation, set the button to the released state and configure the trend control not to display the ruler.

[0082] When the child element of the trend control pointer operation is a button for setting the range, the upper and lower range limits of the currently selected curve are obtained from the trend control. The obtained upper and lower range limits and the trend control pointer are then passed to the range setting window of the small trend screen through page parameters. In the range setting window, the upper and lower range limits of the curve display are configured. It should be noted that the new range value set with reference to relevant technologies cannot exceed the range limit configured for the curve. The set range is only used for drawing and displaying the curve and does not affect the range limit in the server.

[0083] When the child element of a trend control pointer operation is a trend control, mouse messages are passed to the trend control, and the trend control modifies the position of the ruler drawing according to the position of the mouse click.

[0084] When configuring the process flow diagram during the engineering implementation phase, engineers can directly call up the corresponding small trend screen from the symbol library and make precise deployments at the specified locations on the process flow diagram.

[0085] This disclosure also provides a computer storage medium storing a computer program, which, when executed by a processor, implements the above-described method for generating small trend images.

[0086] This disclosure also provides a terminal, including: a memory and a processor, wherein the memory stores a computer program; wherein,

[0087] The processor is configured to execute computer programs in memory;

[0088] When a computer program is executed by a processor, it implements the method described above for generating small trend images.

[0089] Figure 3 A structural block diagram of the apparatus for generating mini-trend images according to embodiments of this disclosure is shown below. Figure 3 As shown, it includes: a selection processing unit and a dynamic feature configuration unit; wherein,

[0090] The selection processing unit is set as follows: based on the functional requirements of the small trend image to be generated, a second combination symbol object is selected from two or more pre-built first combination symbol objects to generate the small trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for small trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined, and each sub-element of the first combination symbol object is pre-configured with the interactive features of the trend panel's button release.

[0091] The dynamic feature configuration unit is set to: configure the dynamic characteristics of the trend panel update of the second combined symbol object according to the determined sub-element name, input parameters, and the item values ​​required to configure all points in the distributed control system (DCS), and use the second combined symbol object with completed dynamic characteristic configuration as a mini-trend screen. The input parameters are received through the interactive feature configuration window of the graphical configuration software, and the input parameters include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server.

[0092] In one exemplary instance, the apparatus of this disclosure embodiment further includes an embedding unit, configured as follows:

[0093] Using graphical configuration software, small trend images are embedded into the process flow diagram.

[0094] In one exemplary instance, the input parameters of this disclosure embodiment further include:

[0095] The curve's attribute information includes one or any combination of the following: color, time interval, and font display color;

[0096] The trend control displays information using one or any combination of the following: real-time display mode and font display effect.

[0097] In one exemplary instance, the required item values ​​for all points in the DCS of this disclosure embodiment include one or any combination of the following:

[0098] Current value, output format, upper and lower limits of measurement range, dimensions, mass, mandatory flag, over-limit flag, point description, alarm indication flag, alarm level.

[0099] In one exemplary instance, the dynamic feature configuration unit of this disclosure embodiment is configured to: configure the dynamic features of the trend panel update of the second combined icon object through the following process:

[0100] Based on the ID of the mini-trend image and the name of each child element, obtain the ID of each child element;

[0101] Based on the obtained child element ID and whether the second combined icon object is being called for the first time, the trend panel update configuration is performed using the input parameters and the read item values.

[0102] In one exemplary instance, when the second combined icon object is invoked for the first time, the dynamic feature configuration unit of this disclosure embodiment is configured to perform the following initialization settings based on the acquired sub-element ID:

[0103] The trend information list and checkbox buttons in the second combined icon object are initialized based on the item values ​​read from the DCS real-time server, and the point name and point number in the input parameters are displayed in the trend information list.

[0104] Add curves to the trend control based on the item values, and configure each added curve according to the curve attribute information in the input parameters and the time interval and upper and lower limits of the range in the item values;

[0105] Configure the trend control based on the control display information in the input parameters, and configure the periodic update of the trend control's display box state based on the quality, forced flag, and out-of-limit flag in the item value.

[0106] In one exemplary instance, the dynamic feature configuration unit of this disclosure embodiment is further configured as follows:

[0107] Based on the point name of each curve in the input parameters, the corresponding point type is read from the DCS real-time server; the real-time server is used to store real-time data.

[0108] Based on the type of the points read, determine whether each point is an analog signal or a digital signal.

[0109] In one exemplary instance, starting from the second time, each time the second combined icon object is invoked, the dynamic feature configuration unit of this disclosure embodiment is configured to include the following configuration based on the acquired sub-element ID:

[0110] Based on the content displayed in the update trend information list in the item value, and according to the output format in the item value, the current value and the upper and lower limits of the range are converted, and the converted current value and the upper and lower limits of the range are updated in the trend information list.

[0111] Set the display status of the current value based on the quality and mandatory flags in the item value;

[0112] Set the display box state of the trend space based on the quality, mandatory flag, and limit exceedance flag in the item value;

[0113] Set the background color of the current value based on the out-of-limit flag in the item value;

[0114] Read the left time, right time, and time interval from the trend control, and update the left and right times of the trend control according to the current time of the operating system. The left time is the start time, and the right time is the end time.

[0115] Read the historical values ​​of all points in the DCS for a preset duration from the DCS historical server. Convert the read historical values ​​into the data type corresponding to the curve according to the type of the read points, and then display the converted historical values ​​in the trend control.

[0116] In one exemplary instance, the dynamic feature configuration unit of this disclosure embodiment is further configured as follows:

[0117] If an abnormal communication with the computing server is detected, an error occurs in the dynamic characteristics of the trend panel update for the second combined icon object, or it is determined that the point name does not exist, then it is determined that reading the corresponding point type from the real-time server in the DCS has failed.

[0118] If it is determined that reading the corresponding point type from the real-time server in the DCS fails, the dynamic feature of updating the trend panel of the second combined icon object is terminated.

[0119] In one exemplary instance, the apparatus of this disclosure embodiment further includes an interaction feature configuration unit, configured as follows:

[0120] From the process flow diagram of loading mini-trend images, obtain the pointer of the trend control based on the mini-trend image ID and the name of the trend control;

[0121] Identify the child element that is manipulated by the trend control pointer. The manipulated child element includes any one of the following: checkbox, trend information list, time interval button, ruler button, range setting button, and trend control.

[0122] Configure the corresponding interactive features for the identified child elements that are manipulated by the trend control pointer.

[0123] In one exemplary instance, the interactive feature configuration unit of this disclosure embodiment is configured to perform one or any combination of the following configuration processes on the determined child element operated by the trend control pointer:

[0124] When the child element operated by the trend control pointer is a checkbox, determine the small trend screen ID and checkbox ID of the trend control pointer operation, and obtain the state of the operated checkbox; switch the operated checkbox from the first state before operation to the second state, where the first state is checked or unchecked; if the first state is checked, the second state is unchecked, and if the first state is unchecked, the second state is checked; when the operated checkbox is switched to unchecked, obtain the ID of the corresponding row element in the trend information list according to the corresponding row of the operated checkbox, and configure the state of that row to be unselected according to the obtained row element ID, and set the corresponding curve on the trend control not to be displayed; when the operated checkbox is switched to checked, display the curve according to the pre-set check display rules;

[0125] When the child element of the trend control pointer operation is a trend information list, determine the sub-trend screen ID and trend information list name of the trend control pointer operation; based on the determined trend information list name, obtain the checkbox ID of the checkbox corresponding to the trend information list; based on the obtained checkbox ID, obtain the sequence number of the curve selected by the trend control pointer operation; based on the obtained sequence number of the selected curve, display the corresponding curve according to the preset display method.

[0126] When the child element operated by the trend control pointer is a time interval button, set all other time interval buttons except the one being operated on to the up state; based on the time interval corresponding to the button being operated on and the current time of the operating system, recalculate the left and right times of the trend control, call the trend control interface, and update the mini-trend screen;

[0127] When the child element of the trend control pointer is a ruler button, if the ruler button is in the released state before the operation, the trend control is configured to display the ruler and the button is set to the pressed state; if the ruler button is in the pressed state before the operation, the trend control is configured not to display the ruler and the button is set to the released state.

[0128] When the child element of the trend control pointer operation is a button for setting the range, the upper and lower limits of the range of the currently selected curve are obtained from the trend control, and the obtained upper and lower limits of the range and the trend control pointer are passed to the range setting window of the small trend screen through page parameters. In the range setting window, the upper and lower limits of the range displayed by the curve are configured.

[0129] When the child element of a trend control pointer operation is a trend control, mouse messages are passed to the trend control, and the trend control modifies the position of the ruler drawing according to the position of the mouse click.

[0130] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.

Claims

1. A method for generating micro-trend images, characterized in that, include: Based on the functional requirements of the mini-trend image to be generated, a second combination symbol object is selected from two or more pre-built first combination symbol objects to generate the mini-trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for mini-trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined, and each sub-element of the first combination symbol object is pre-configured with the interactive features of the trend panel's button release. Based on the determined sub-element name, input parameters, and the item values ​​required to configure all points in the Distributed Control System (DCS), the dynamic characteristics of the trend panel update of the second combined icon object are configured, and the second combined icon object with the completed dynamic characteristic configuration is used as a mini-trend screen. The input parameters are received through the dynamic characteristic configuration window of the graphical configuration software, and the input parameters include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server. The dynamic characteristics of the trend panel update of the second combined icon object include the following processing: obtaining the ID of each sub-element based on the ID of the small trend screen and the name of each sub-element; configuring the trend panel update using the input parameters and the item value based on the obtained sub-element ID and whether the second combined icon object is being called for the first time; when the second combined icon object is called for the first time, the configuration processing of the trend panel update using the input parameters and the read item value includes the following initialization settings based on the obtained sub-element ID: initializing the trend information list and checkbox buttons in the second combined icon object based on the item value read from the DCS real-time server, and displaying the point name and point number in the input parameters in the trend information list; adding curves to the trend control according to the item value, and configuring each added curve according to the curve attribute information in the input parameters and the time interval and range upper and lower limits in the item value; configuring the trend control according to the control display information in the input parameters, and configuring the display box state of the trend control to be updated according to a preset period based on the quality, forced flag and over-limit flag in the item value.

2. The method according to claim 1, characterized in that, After generating the mini-trend image, the method further includes: The trend images are embedded into the process flow diagram using graphical configuration software.

3. The method according to claim 1, characterized in that, The input parameters also include: The curve's attribute information includes one or any combination of the following: color, time interval, and font display color; The trend control displays information using one or any combination of the following: real-time display mode and font display effect.

4. The method according to claim 1, characterized in that, The item value includes one or any combination of the following: Current value, output format, upper and lower limits of the measurement range, dimensions, mass, mandatory flag, over-limit flag, point description, alarm indication flag, alarm level.

5. The method according to claim 1, characterized in that, Starting from the second time, before each call to the second combined icon object, prior to the configuration processing of updating the trend panel using input parameters and read item values, the method further includes: Based on the point name of each curve in the input parameters, read the corresponding point type from the real-time server of DCS; Based on the type of the point read, determine whether each point is an analog signal or a digital signal.

6. The method according to claim 5, characterized in that, Starting from the second time, each time the second combined icon object is called, the configuration processing for updating the trend panel using input parameters and read item values ​​includes the following configuration based on the obtained child element ID: Update the display content of the trend information list according to the point description in the item value, and convert the current value and range upper and lower limit values ​​in the item value according to the output format in the item value, and update the trend information list with the converted current value and range upper and lower limit values. Based on the quality and forced flags in the item value, set the display status of the current value; The display frame state of the trend space is set according to the quality, mandatory flag, and limit exceedance flag in the item value; Set the background color of the current value according to the out-of-limit flag in the item value; Read the left time, right time, and time interval from the trend control, and update the left and right times of the trend control according to the current time of the operating system; Read historical values ​​of all points in the DCS for a preset duration from the DCS historical server. Convert the read historical values ​​into the data type corresponding to the curve according to the type of the read points, and then display the converted historical values ​​in the trend control.

7. The method according to claim 5, characterized in that, The method further includes: If an abnormal communication with the computing server is detected, an error occurs in the dynamic characteristics of the trend panel update configured for the second combined icon object, or it is determined that the point name does not exist, then it is determined that reading the corresponding point type from the real-time server in the DCS has failed. If it is determined that reading the corresponding point type from the real-time server in the DCS fails, the dynamic feature of updating the trend panel of the second combined icon object is terminated.

8. The method according to any one of claims 1 to 7, characterized in that, The interactive properties of each child element of the first combined icon object, released by the trend panel button, are configured in the following way; From the process flow diagram of loading mini-trend images, obtain the pointer of the trend control based on the mini-trend image ID and the name of the trend control; Identify the child element operated on by the trend control pointer, wherein the operated child element includes any one of the following: checkbox, trend information list, time interval button, ruler button, range setting button, and trend control; Configure corresponding interactive features for the identified child elements that are manipulated by the trend control pointer.

9. The method according to claim 8, characterized in that, The configuration of corresponding interactive features for the determined child elements manipulated by the trend control pointer includes performing one or any combination of the following configuration processes: When the child element operated by the trend control pointer is a checkbox, determine the small trend screen ID and checkbox ID operated by the trend control pointer, and obtain the state of the operated checkbox. The operation switches the checkbox from its first state to its second state. The first state is either checked or unchecked. If the first state is checked, the second state is unchecked; if the first state is unchecked, the second state is checked. When the operation switch the checkbox to unchecked, the ID of the corresponding row element in the trend information list is obtained based on the row of the operation checkbox, and the state of that row is configured as unchecked based on the obtained row element ID. The corresponding curve on the trend control is not displayed. When the operation switch the checkbox to checked, the curve is displayed according to the pre-set check display rules. When the sub-element of the trend control pointer operation is a trend information list, the sub-trend screen ID and the trend information list name of the trend control pointer operation are determined. Based on the determined trend information list name, obtain the checkbox ID of the checkbox corresponding to the trend information list; based on the obtained checkbox ID, obtain the sequence number of the curve selected by the trend control pointer operation; based on the obtained sequence number of the selected curve, display the corresponding curve according to the preset display method. When the child element operated by the trend control pointer is a time interval button, set all other time interval buttons except the one being operated to the lifted state; based on the time interval corresponding to the button being operated and the current time of the operating system, recalculate the left and right times of the trend control, call the trend control interface, and update the small trend screen; When the sub-element operated by the trend control pointer is a ruler button, before operating the ruler button, if the button is in the released state, configure the trend control to display the ruler and set the button to the pressed state; before operating the ruler button, if the button is in the pressed state, configure the trend control not to display the ruler and set the button to the released state. When the child element operated by the trend control pointer is a button for setting the range, the upper and lower limits of the range of the currently selected curve are obtained from the trend control, and the obtained upper and lower limits of the range and the trend control pointer are passed to the range setting window of the small trend screen through page parameters. In the range setting window, the upper and lower limits of the range displayed by the curve are configured. When the child element operated by the trend control pointer is a trend control, a mouse message is passed to the trend control, and the trend control modifies the position of the ruler drawing according to the position of the mouse click.

10. A computer storage medium storing a computer program that, when executed by a processor, implements the method for generating a microtrend image as described in any one of claims 1 to 9.

11. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute computer programs in memory; When the computer program is executed by the processor, it implements the method for generating microtrend images as described in any one of claims 1 to 9.

12. An apparatus for generating microtrend images, comprising: Select the processing unit and the dynamic characteristic configuration unit; wherein... The selection processing unit is set as follows: based on the functional requirements of the mini-trend image to be generated, a second combination symbol object is selected from two or more pre-built first combination symbol objects to generate the mini-trend image. The functional requirements include specification requirements. Each first combination symbol object includes: a common symbol object for mini-trend images of the same specification, and different specifications include different numbers of curves. The names of the sub-elements in the first combination symbol object are predetermined. Each sub-element of the first combination symbol object is pre-configured with the interactive features of the button release of the trend panel. The dynamic feature configuration unit is set to: configure the dynamic characteristics of the trend panel update of the second combined symbol object according to the determined sub-element name, input parameters, and the item values ​​required to configure all points in the distributed control system (DCS); and use the second combined symbol object with completed dynamic characteristic configuration as a mini-trend screen. The input parameters are received through the interactive feature configuration window of the graphical configuration software, and the input parameters include: mini-trend screen ID, number of curves, and point name corresponding to each curve; the item values ​​required for all points in the DCS are read from the DCS real-time server and historical server. The dynamic characteristics of the trend panel update of the second combined icon object include the following processing: obtaining the ID of each sub-element based on the ID of the small trend screen and the name of each sub-element; configuring the trend panel update using the input parameters and the item value based on the obtained sub-element ID and whether the second combined icon object is being called for the first time; when the second combined icon object is called for the first time, the configuration processing of the trend panel update using the input parameters and the read item value includes the following initialization settings based on the obtained sub-element ID: initializing the trend information list and checkbox buttons in the second combined icon object based on the item value read from the DCS real-time server, and displaying the point name and point number in the input parameters in the trend information list; adding curves to the trend control according to the item value, and configuring each added curve according to the curve attribute information in the input parameters and the time interval and range upper and lower limits in the item value; configuring the trend control according to the control display information in the input parameters, and configuring the display box state of the trend control to be updated according to a preset period based on the quality, forced flag and over-limit flag in the item value.

Citation Information

Patent Citations

  • Graphical process variable trend monitoring for a process control system

    CN105144011A

  • Trend picture drawing method and device, electronic equipment and storage medium

    CN111667546A