CN117934663B - Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture - Google Patents

Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture Download PDF

Info

Publication number
CN117934663B
CN117934663B CN202410342948.9A CN202410342948A CN117934663B CN 117934663 B CN117934663 B CN 117934663B CN 202410342948 A CN202410342948 A CN 202410342948A CN 117934663 B CN117934663 B CN 117934663B
Authority
CN
China
Prior art keywords
measuring point
curve
attribute
graphic element
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410342948.9A
Other languages
Chinese (zh)
Other versions
CN117934663A (en
Inventor
刘畅
贾泽冰
张勇
项涛
李广亭
雷超
冯震震
李心怡
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Thermal Power Research Institute Co Ltd
Original Assignee
Xian Thermal Power Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Thermal Power Research Institute Co Ltd filed Critical Xian Thermal Power Research Institute Co Ltd
Priority to CN202410342948.9A priority Critical patent/CN117934663B/en
Publication of CN117934663A publication Critical patent/CN117934663A/en
Application granted granted Critical
Publication of CN117934663B publication Critical patent/CN117934663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method, a system, equipment and a medium for generating a curve by drawing a graphic element in a DCS picture, which comprise the steps of receiving an event from drawing the graphic element to trend application; analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type; the attribute values are transmitted into the data acquisition interface, and the obtained corresponding attribute values are stored in a data table object; converting the data table object into a curve entry object, and generating a corresponding measuring point curve drawing attribute table object; and drawing a measuring point curve according to the measuring point curve drawing attribute table object. The method and the device realize that the graphic element is directly dragged to the attribute bar interface of the trend software to quickly generate the measuring point curve corresponding to the graphic element, so that an operator can conveniently and quickly browse the measuring point curve contained in the graphic element in the picture, and the working efficiency is improved.

Description

Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system, equipment and a medium for generating a curve by dragging a graphic element in a DCS picture.
Background
The distributed control system is a new generation instrument control system based on a microprocessor and adopting the design principles of distributed control functions, centralized display operation and both autonomous and comprehensive coordination. The distributed control system is called DCS for short, and can be also translated into a distributed control system or a distributed computer control system.
The system adopts a basic design idea of control dispersion, operation and management concentration, and adopts a multi-layer hierarchical and cooperative autonomous structural form. Its main feature is its centralized management and decentralized control. DCS has been used in a wide variety of industries including electric power, metallurgy, and petrochemical industries.
The process control station of DCS is a complete computer system, mainly composed of power supply, CPU (central processing unit), network interface and I/O; the control system needs to establish input and output channels for signals, i.e. I/O. I/O in DCS is typically modular, with one or more I/O channels on one I/O module for connecting sensors and actuators (e.g., regulator valves). Typically, a process control station is comprised of several racks, each of which can house a number of modules. The rack where the CPU is located is called a CPU unit, only one CPU unit can be arranged in the same process station, and other racks only used for placing the I/O module are I/O units. The I/O unit is connected with the CPU through a field bus.
The current DCS system is required to display a measuring point curve contained in a picture, namely, a graphic element attribute is firstly opened in the picture to obtain a DPU number and a measuring point name of a corresponding measuring point of the graphic element, then the DPU of the measuring point is selected in a trend software measuring point retrieval interface, and then the corresponding measuring point name is selected to complete a measuring point adding process, so that the curve corresponding to the graphic element can be displayed. The operator can not quickly browse the measuring point curves contained in the graphic elements in the picture, and the working efficiency is low.
Disclosure of Invention
Aiming at the defects, the invention aims to provide a method, a system, equipment and a medium for generating a curve by drawing a graphic element in a DCS picture, and the method, the system, the equipment and the medium can realize that the graphic element is directly drawn to a trend software attribute column interface to quickly generate a measuring point curve corresponding to the graphic element, so that an operator can conveniently and quickly browse the measuring point curve contained in the graphic element in the picture, and the working efficiency is improved.
In order to achieve the above purpose, the invention adopts the following technical means:
the first aspect of the present invention provides a method for generating a curve by dragging a graphic primitive in a DCS image, including:
Receiving an event that the graphic primitive is dragged to the trend application;
Analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
Calling a data acquisition interface by using the database access agent object, and transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters to obtain a corresponding attribute value and store the attribute value into the data table object;
Converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
As a further improvement of the present invention, before the task of dragging the received primitive to the trend application, the method further includes:
acquiring the position of a graphic element in a picture, and judging whether the Manhattan distance between the initial position of mouse dragging and the position of the graphic element exceeds the drag-drop distance defined by a picture program;
When the number of the current values is not exceeded, judging whether the current values meet the following conditions: the graphic element is assigned with measurement point information and is a digital quantity icon or a photosensitive point or a text box;
And when the data analysis type is satisfied, converting the measurement point information contained in the graphic element into binary codes, storing the binary codes into a drag array, and designating the data analysis type of the measurement point information contained in the graphic element.
As a further improvement of the present invention, the event of receiving the dragging of the primitive to the trend application includes:
A drag object is declared, a graphic element corresponding to the measurement point information in the drag array points to the drag object, and the position of a mouse in a screen window during graphic element drag is tracked;
Dragging the graphic primitive into the trend application by utilizing the dragging object and the mouse tracking position; judging whether the data analysis type of the measuring point contained in the graphic primitive can be accepted by the trend application;
if so, forming a primitive dragging event.
As a further improvement of the present invention, the measurement point attribute information includes:
Application name, database name, data storage path, station name, station type, station bit.
As a further improvement of the present invention, before the creating the database access proxy object using the measurement point attribute information, the method further includes:
And calling a system clipboard, and assigning the new clipboard object according to the attribute information of the measuring point as a text parameter, and judging whether the new clipboard object meets the following conditions: the name of the measuring point is empty or the name length of the measuring point exceeds a set threshold value;
and when the data is satisfied, performing numerical conversion operation on the bits of the graphic primitive.
As a further improvement of the present invention, the drawing the measurement point curve according to the measurement point curve drawing attribute table object includes:
Initializing a trend group drawing environment, setting a curve drawing style, upper and lower limits and a data point style according to a measuring point curve drawing attribute table object, setting a time axis refreshing period, calling a data updating interface to update a data value of a primitive curve item object according to the refreshing period, and then calling an open source drawing frame to draw the primitive item data to generate a curve.
As a further improvement of the invention, the drawing of the primitive entry data further comprises:
And calling a data updating and trend group updating interface to update the drawing data of the primitive entries and the attribute values of the trend groups.
The second aspect of the present invention provides a system for generating a curve by dragging a graphic element in a DCS image, including:
the receiving module is used for receiving an event that the graphic primitive is dragged to the trend application;
The creation module is used for analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
the calling module is used for calling a data acquisition interface by using the database access agent object, transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters, and obtaining a corresponding attribute value and storing the attribute value into the data table object;
The drawing module is used for converting the data table object into a curve entry object, adding the curve entry object into the trend group, and generating a corresponding measuring point curve drawing attribute table object according to the position where the curve entry object, the graphic primitive are dragged into the trend group and the measuring point type; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
A third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements a method for generating a curve by dragging a graphic element in a DCS screen when the computer program is executed.
A fourth aspect of the present invention provides a computer readable storage medium storing a computer program, which when executed by a processor, implements a method for generating a curve by dragging a graphic element in a DCS screen.
Compared with the prior art, the invention has the following beneficial effects:
According to the drag event, analyzing the attribute information of the measuring point to obtain a database access agent object to call a data acquisition interface, generating a corresponding measuring point curve drawing attribute table object, and drawing a measuring point curve. Therefore, the method and the device realize that the graphic element is directly dragged to the attribute bar interface of the trend software to quickly generate the measuring point curve corresponding to the graphic element, so that an operator can conveniently and quickly browse the measuring point curve contained in the graphic element in the picture, and the working efficiency is improved.
Drawings
FIG. 1 is a flow chart of a method for generating a curve by dragging a graphic element in a DCS picture;
FIG. 2 is a system for generating a curve by dragging a graphic element in a DCS picture;
fig. 3 is a schematic diagram of an electronic device according to the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, a first object of the present invention is to provide a method for generating a graph by dragging a graphic primitive in a DCS image, which includes the following steps:
S1, receiving an event that a graphic primitive is dragged to a trend application;
s2, analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
S3, calling a data acquisition interface by using the database access agent object, and transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters to obtain a corresponding attribute value and store the attribute value into the data table object;
S4, converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
Therefore, the method and the device realize that the graphic element is directly dragged to the attribute bar interface of the trend software to quickly generate the measuring point curve corresponding to the graphic element, so that an operator can conveniently and quickly browse the measuring point curve contained in the graphic element in the picture, and the working efficiency is improved.
The invention provides a specific embodiment, a method for generating a curve by dragging a graphic primitive in a DCS picture, which comprises the following steps:
1) Firstly, acquiring the position of a primitive to be dragged from a picture, and then judging whether the Manhattan distance between the starting position of mouse dragging and the position of the primitive exceeds the drag-drop distance defined by a picture program:
if the drawing is beyond, drawing of the drawing element cannot be carried out; if the range is not exceeded, performing the step 2);
2) Judging whether the primitive to be dragged in the picture meets the condition: the graphic element is assigned with measurement point information and is a digital quantity icon or a photosensitive point or a text box;
if the conditions are not met, the graphic primitives in the picture cannot be dragged to the trend application to generate a curve;
If the condition is met, converting the measurement point information contained in the graphic element into binary codes, then storing the conversion result of the binary codes into a dragging array capable of recording data information, and designating the data analysis type of the measurement point information of the graphic element to be dragged;
3) Firstly, a drag object is declared by utilizing the step 2), then the graphic elements of the drag array in the step 2) are pointed to the drag object, and the position of a mouse in a screen window during the graphic element drag is tracked;
wherein a drag object is declared for receiving a dragged primitive.
4) Utilizing the drag object and the mouse tracking position designated in the step 3) to drag the graphic element into the trend application, judging whether the data analysis type of the graphic element measuring point defined by the graphic element drag event can be accepted by the trend application, and if so, executing the step 5);
5) Analyzing the application name, the database name, the data storage path containing the measuring points, the measuring point name, the measuring point type, the measuring point bit position and other measuring point attribute information corresponding to the dragging primitive through the dragging primitive object;
6) Calling a system shear plate by using the trend program in the step 5), giving the attribute information of the measuring point analyzed in the step 5) as a text parameter to a newly-built shear plate object, when the measuring point name is empty or the measuring point name length exceeds a set threshold value, sending out a measuring point name failure requirement by the system, giving an alarm of drawing failure of the graphic element, and ending the drawing generation curve process; if the set threshold value is not exceeded, carrying out numerical conversion operation on the bits of the graphic elements, then creating a database access proxy object by utilizing the application name and the database name corresponding to the graphic elements analyzed in the step 5), constructing an attribute list to be acquired by the graphic element measuring points, receiving the data table object of the measuring point attribute values, and updating the database paths of the measuring points according to the measuring point types;
7) Calling a data acquisition interface by using the database access proxy object created in the step 6), taking a database path, an attribute list and a data table object for receiving the attribute value of the measuring point of the graphic element as parameters, transmitting the parameters into the data acquisition interface, storing a data acquisition result into the data table object created in the step 6), converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type;
8) Drawing a curve for the primitive measuring points dragged into the trend application by using the result of the step 7), wherein the specific steps comprise:
And (3) taking the primitive curve entry object and the curve drawing attribute table in the step (7) as parameters, firstly setting a time axis refreshing period according to the initialization trend group drawing environment, the setting curve drawing style, the upper limit, the lower limit, the data point style and the like of the measuring point curve drawing attribute table object, calling a data updating interface according to the refreshing period to update the primitive curve entry object data value, and then calling an open source drawing frame to draw the primitive entry data, thereby completing the whole process of drawing the primitive to generate the curve.
And the data updating and trend group updating interface is always called in the drawing process, and the drawing data and trend group attribute values of the graphic primitive entries are updated.
As shown in FIG. 2, the present invention also provides a system for generating a curve by dragging a graphic element in a DCS picture, comprising:
the receiving module is used for receiving an event that the graphic primitive is dragged to the trend application;
The creation module is used for analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
the calling module is used for calling a data acquisition interface by using the database access agent object, transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters, and obtaining a corresponding attribute value and storing the attribute value into the data table object;
The drawing module is used for converting the data table object into a curve entry object, adding the curve entry object into the trend group, and generating a corresponding measuring point curve drawing attribute table object according to the position where the curve entry object, the graphic primitive are dragged into the trend group and the measuring point type; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
As an optional embodiment, the receiving module further includes a judging module, configured to;
acquiring the position of a graphic element in a picture, and judging whether the Manhattan distance between the initial position of mouse dragging and the position of the graphic element exceeds the drag-drop distance defined by a picture program;
When the number of the current values is not exceeded, judging whether the current values meet the following conditions: the graphic element is assigned with measurement point information and is a digital quantity icon or a photosensitive point or a text box;
And when the data analysis type is satisfied, converting the measurement point information contained in the graphic element into binary codes, storing the binary codes into a drag array, and designating the data analysis type of the measurement point information.
As an optional embodiment, in the creating module, the event that the received primitive is dragged to the trend application includes:
A drag object is declared, a graphic element corresponding to the measurement point information in the drag array points to the drag object, and the position of a mouse in a screen window during graphic element drag is tracked;
Dragging the graphic primitive into the trend application by utilizing the dragging object and the mouse tracking position; judging whether the data analysis type of the measuring point contained in the graphic primitive can be accepted by the trend application;
if so, forming a primitive dragging event.
In the creation module, before the database access proxy object is created by using the measurement point attribute information, the method further comprises:
And calling a system clipboard, and assigning the new clipboard object according to the attribute information of the measuring point as a text parameter, and judging whether the new clipboard object meets the following conditions: the name of the measuring point is empty or the name length of the measuring point exceeds a set threshold value;
and when the data is not satisfied, performing numerical conversion operation on the bits of the graphic primitive.
As an optional embodiment, in the drawing module, the drawing the measurement point curve according to the measurement point curve drawing attribute table object includes:
Initializing a trend group drawing environment, setting a curve drawing style, upper and lower limits and a data point style according to a measuring point curve drawing attribute table object, setting a time axis refreshing period, calling a data updating interface to update a data value of a primitive curve item object according to the refreshing period, and then calling an open source drawing frame to draw the primitive item data to generate a curve.
As an optional embodiment, in the drawing module, in drawing the primitive entry data, the drawing module further includes:
And calling a data updating and trend group updating interface to update the drawing data of the primitive entries and the attribute values of the trend groups.
As shown in fig. 3, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements a method for generating a curve by dragging a graphic element in a DCS image when executing the computer program.
The method for generating the curve by dragging the graphic element in the DCS picture comprises the following steps of:
Receiving an event that the graphic primitive is dragged to the trend application;
Analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
Calling a data acquisition interface by using the database access agent object, and transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters to obtain a corresponding attribute value and store the attribute value into the data table object;
Converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type;
and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
The invention also provides a computer readable storage medium storing a computer program which when executed by a processor implements a method of generating a curve by dragging a graphical element in a DCS image.
The method for generating the curve by dragging the graphic element in the DCS picture comprises the following steps of:
Receiving an event that the graphic primitive is dragged to the trend application;
Analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
Calling a data acquisition interface by using the database access agent object, and transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters to obtain a corresponding attribute value and store the attribute value into the data table object;
Converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type;
and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (8)

1. The method for generating the curve by dragging the graphic element in the DCS picture is characterized by comprising the following steps of:
Receiving an event that the graphic primitive is dragged to the trend application;
Analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
Calling a data acquisition interface by using the database access agent object, and transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters to obtain a corresponding attribute value and store the attribute value into the data table object;
Converting the data table object into a curve entry object, adding the curve entry object into a trend group, and generating a corresponding measuring point curve drawing attribute table object according to the curve entry object, the position where the graphic element is dragged into the trend group and the measuring point type; drawing a measuring point curve according to the measuring point curve drawing attribute table object;
The task of receiving the dragging of the graphic primitive to the trend application further comprises the following steps:
acquiring the position of a graphic element in a picture, and judging whether the Manhattan distance between the initial position of mouse dragging and the position of the graphic element exceeds the drag-drop distance defined by a picture program;
When the number of the current values is not exceeded, judging whether the current values meet the following conditions: the graphic element is assigned with measurement point information and is a digital quantity icon or a photosensitive point or a text box;
when the data analysis type is satisfied, converting the measurement point information contained in the graphic primitive into binary codes, storing the binary codes into a dragging array, and designating the data analysis type of the measurement point information contained in the graphic primitive;
the event of drawing the primitive to the trend application is received, which comprises the following steps:
A drag object is declared, a graphic element corresponding to the measurement point information in the drag array points to the drag object, and the position of a mouse in a screen window during graphic element drag is tracked;
Dragging the graphic primitive into the trend application by utilizing the dragging object and the mouse tracking position; judging whether the data analysis type of the measuring point contained in the graphic primitive can be accepted by the trend application;
if so, forming a primitive dragging event.
2. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 1, wherein the method comprises the steps of: the measuring point attribute information comprises:
Application name, database name, data storage path, station name, station type, and station bit.
3. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 1, wherein the method comprises the steps of: the method for creating the database access agent object by using the measurement point attribute information further comprises the following steps:
and calling a system shear plate, and giving the new shear plate object as text parameters according to the attribute information of the measuring points, and judging whether the conditions are satisfied: the name of the measuring point is empty or the name length of the measuring point exceeds a set threshold value;
and when the data is not satisfied, performing numerical conversion operation on the bits of the graphic primitive.
4. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 1, wherein the method comprises the steps of: and drawing the measuring point curve according to the measuring point curve drawing attribute table object, wherein the drawing the measuring point curve comprises the following steps:
initializing a trend group drawing environment, setting a curve drawing style, upper and lower limits and a data point style according to a measuring point curve drawing attribute table object, setting a time axis refreshing period, calling a data updating interface to update a data value of a primitive curve item object according to the refreshing period, and then calling an open source drawing frame to draw the primitive item data to generate a curve.
5. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 4, wherein: in drawing the primitive entry data, further comprising:
And calling a data updating and trend group updating interface to update the drawing data of the primitive entries and the attribute values of the trend groups.
6. A system for generating a curve by dragging a graphic element in a DCS screen, the method for generating a curve by dragging a graphic element in a DCS screen according to any one of claims 1 to 5, comprising:
the receiving module is used for receiving an event that the graphic primitive is dragged to the trend application;
The creation module is used for analyzing the measurement point attribute information contained in the graphic element; creating a database access agent object by using the measuring point attribute information, constructing an attribute list to be acquired by the measuring point, receiving a data table object of the measuring point attribute value, and updating a database path of the measuring point according to the measuring point type;
the calling module is used for calling a data acquisition interface by using the database access agent object, transmitting a database path, an attribute list and a data table object of the measuring point into the data acquisition interface as parameters, and obtaining a corresponding attribute value and storing the attribute value into the data table object;
The drawing module is used for converting the data table object into a curve entry object, adding the curve entry object into the trend group, and generating a corresponding measuring point curve drawing attribute table object according to the position where the curve entry object, the graphic primitive are dragged into the trend group and the measuring point type; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing a method of generating a graph of graphical element drag in a DCS screen as claimed in any one of claims 1-5 when the computer program is executed.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements a method of generating a curve by dragging a graphical element in a DCS screen as claimed in any one of claims 1 to 5.
CN202410342948.9A 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture Active CN117934663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410342948.9A CN117934663B (en) 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410342948.9A CN117934663B (en) 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture

Publications (2)

Publication Number Publication Date
CN117934663A CN117934663A (en) 2024-04-26
CN117934663B true CN117934663B (en) 2024-06-07

Family

ID=90761365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410342948.9A Active CN117934663B (en) 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture

Country Status (1)

Country Link
CN (1) CN117934663B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0554105A (en) * 1991-08-23 1993-03-05 Fujitsu Ltd Stereoscopic primitive plotting system
JP2000339006A (en) * 1999-05-31 2000-12-08 Mitsubishi Electric Corp Dcs software design aiding device
KR20030034410A (en) * 2001-10-23 2003-05-09 한국전자통신연구원 method and the system for producting BIFS(BInary Format for Scenes language) for MPEG-4 contents
JP2011013768A (en) * 2009-06-30 2011-01-20 Nippon Telegr & Teleph Corp <Ntt> Scenario creation method, device of the same, program, and recording medium
CN106089328A (en) * 2016-08-10 2016-11-09 西安热工研究院有限公司 Steam turbine pitch rating curve discrimination method based on DCS data mining
WO2020172913A1 (en) * 2019-02-28 2020-09-03 东北大学 Production index visual monitoring system and method based on configuration
CN111857711A (en) * 2020-06-30 2020-10-30 南京华盾电力信息安全测评有限公司 SVG (scalable vector graphics) and RPC (remote procedure call) communication-based SCADA (supervisory control and data acquisition) system real-time display method
CN112579065A (en) * 2019-09-27 2021-03-30 北京广利核***工程有限公司 Method and system for generating cross-platform code for graphic configuration picture
CN113568961A (en) * 2021-09-26 2021-10-29 西安热工研究院有限公司 Curve generation method and equipment for selecting measuring points through time marks and integrating alarm information
CN113747127A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 DCS monitoring image measuring point positioning method, system, equipment and storage medium
CN116340358A (en) * 2021-12-22 2023-06-27 中能融安(北京)科技有限公司 Measuring point analysis system, equipment and storage medium applied to modeling
CN116958293A (en) * 2023-06-29 2023-10-27 浙江中控技术股份有限公司 Flow chart drawing system for planning optimization software
CN117194501A (en) * 2023-11-01 2023-12-08 西安热工研究院有限公司 DCS trend measurement point jump logic configuration method, system, equipment and medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0554105A (en) * 1991-08-23 1993-03-05 Fujitsu Ltd Stereoscopic primitive plotting system
JP2000339006A (en) * 1999-05-31 2000-12-08 Mitsubishi Electric Corp Dcs software design aiding device
KR20030034410A (en) * 2001-10-23 2003-05-09 한국전자통신연구원 method and the system for producting BIFS(BInary Format for Scenes language) for MPEG-4 contents
JP2011013768A (en) * 2009-06-30 2011-01-20 Nippon Telegr & Teleph Corp <Ntt> Scenario creation method, device of the same, program, and recording medium
CN106089328A (en) * 2016-08-10 2016-11-09 西安热工研究院有限公司 Steam turbine pitch rating curve discrimination method based on DCS data mining
WO2020172913A1 (en) * 2019-02-28 2020-09-03 东北大学 Production index visual monitoring system and method based on configuration
CN112579065A (en) * 2019-09-27 2021-03-30 北京广利核***工程有限公司 Method and system for generating cross-platform code for graphic configuration picture
CN111857711A (en) * 2020-06-30 2020-10-30 南京华盾电力信息安全测评有限公司 SVG (scalable vector graphics) and RPC (remote procedure call) communication-based SCADA (supervisory control and data acquisition) system real-time display method
CN113568961A (en) * 2021-09-26 2021-10-29 西安热工研究院有限公司 Curve generation method and equipment for selecting measuring points through time marks and integrating alarm information
CN113747127A (en) * 2021-11-08 2021-12-03 西安热工研究院有限公司 DCS monitoring image measuring point positioning method, system, equipment and storage medium
CN116340358A (en) * 2021-12-22 2023-06-27 中能融安(北京)科技有限公司 Measuring point analysis system, equipment and storage medium applied to modeling
CN116958293A (en) * 2023-06-29 2023-10-27 浙江中控技术股份有限公司 Flow chart drawing system for planning optimization software
CN117194501A (en) * 2023-11-01 2023-12-08 西安热工研究院有限公司 DCS trend measurement point jump logic configuration method, system, equipment and medium

Non-Patent Citations (10)

* Cited by examiner, † Cited by third party
Title
DCS控制***升级及控制优化;刘震;;天津冶金;20180815(第S1期);全文 *
DCS远程监控实验教学***的OPC技术实现方法;谢鹏华;牛昱光;;太原理工大学学报;20110315(第02期);全文 *
EMC项目远程能耗数据采集和分析***设计与实践;袁勇;冶金自动化;20151125;39(第06期);全文 *
一种改进的DCS通信接口方案及应用;蔡钧;段文伟;付俊杰;李平康;;自动化仪表;20110820(第08期);全文 *
优化控制平台***组态站软件设计与开发;丁宁;中国优秀硕士论文电子期刊网;20130715;全文 *
全国产分散控制***组态软件框架的设计和实现;胡波等;热力发电;20211231;第50卷(第12期);全文 *
基于WEB的生产实时监控***的研究与设计;孙栓柱;孙彬;周春蕾;王其祥;;制造业自动化;20131025(第20期);全文 *
基于图元的嵌入式组态软件的设计与实现;黄贤英;刘峰;;计算机工程与设计;20080216(第03期);全文 *
工控组态软件Web 发布***的设计与实现;田春伟;中国优秀硕士论文电子期刊网;20170315;全文 *
组态软件在火电机组中的DCS(集散控制***)应用;周亚勇;;电脑知识与技术;20081125(第33期);全文 *

Also Published As

Publication number Publication date
CN117934663A (en) 2024-04-26

Similar Documents

Publication Publication Date Title
JP5295464B1 (en) System construction support tool and system
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
EP2423767A2 (en) Automated operator interface generation in a control system
CN109871670B (en) Method for operating and monitoring industrial equipment to be controlled and operator system
CN111538731B (en) Automatic report generation system for industrial data
US10152041B2 (en) Method and apparatus for enabling model driven navigation
CN110806996B (en) System and method for collecting OPC data
CN109144511B (en) Method and system for automatically generating numerical simulation graphical user interface
JP2019109580A (en) Industrial control system and supporting device therefor, control supporting method and program
CN112199007A (en) Menu display method and device, electronic equipment and storage medium
CN108762751A (en) A kind of logic figure configuration and the method and system for changing into data flow
CN117238433A (en) Method for automatically isolating document data based on Libreoffice
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
CN117934663B (en) Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture
CN117472704A (en) Machine room management method, equipment and storage medium based on three-dimensional model
CN115860877A (en) Product marketing method, device, equipment and medium
CN107766306B (en) Data display method and equipment
CN114860221A (en) Workflow engine and implementation method thereof
CN113901033A (en) Data migration method, device, equipment and medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN110780852A (en) Method, device, equipment and medium for determining data source
US20130063449A1 (en) Method and system for preprocessing and providing information for operating a technical installation
CN112764396B (en) Configuration method and device
WO2018170350A1 (en) System and method for visually specifying computation sequences and results
KR20090038708A (en) Apparatus for creating tool for developing of control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant