CN117934663A - 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 PDFInfo
- Publication number
- CN117934663A CN117934663A CN202410342948.9A CN202410342948A CN117934663A CN 117934663 A CN117934663 A CN 117934663A CN 202410342948 A CN202410342948 A CN 202410342948A CN 117934663 A CN117934663 A CN 117934663A
- Authority
- CN
- China
- Prior art keywords
- measuring point
- curve
- graphic element
- attribute
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000005259 measurement Methods 0.000 claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 16
- 238000007405 data analysis Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 7
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000013500 data storage Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004886 process control Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005272 metallurgy Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- 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
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 (10)
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; and drawing a measuring point curve according to the measuring point curve drawing attribute table object.
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 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;
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.
3. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 2, wherein: 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.
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: the measuring point attribute information comprises:
Application name, database name, data storage path, station name, station type, and station bit.
5. 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 satisfied, performing numerical conversion operation on the bits of the graphic primitive.
6. 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.
7. The method for generating a curve by dragging a graphic element in a DCS screen according to claim 6, 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.
8. A system for generating a curve by dragging a graphic element in a DCS screen, 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.
9. 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-7 when the computer program is executed.
10. 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 7.
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 true CN117934663A (en) | 2024-04-26 |
CN117934663B 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)
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 |
-
2024
- 2024-03-25 CN CN202410342948.9A patent/CN117934663B/en active Active
Patent Citations (13)
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)
Title |
---|
丁宁: "优化控制平台系统组态站软件设计与开发", 中国优秀硕士论文电子期刊网, 15 July 2013 (2013-07-15) * |
刘震;: "DCS控制系统升级及控制优化", 天津冶金, no. 1, 15 August 2018 (2018-08-15) * |
周亚勇;: "组态软件在火电机组中的DCS(集散控制系统)应用", 电脑知识与技术, no. 33, 25 November 2008 (2008-11-25) * |
孙栓柱;孙彬;周春蕾;王其祥;: "基于WEB的生产实时监控系统的研究与设计", 制造业自动化, no. 20, 25 October 2013 (2013-10-25) * |
田春伟: "工控组态软件Web 发布系统的设计与实现", 中国优秀硕士论文电子期刊网, 15 March 2017 (2017-03-15) * |
胡波等: "全国产分散控制系统组态软件框架的设计和实现", 热力发电, vol. 50, no. 12, 31 December 2021 (2021-12-31) * |
蔡钧;段文伟;付俊杰;李平康;: "一种改进的DCS通信接口方案及应用", 自动化仪表, no. 08, 20 August 2011 (2011-08-20) * |
袁勇: "EMC项目远程能耗数据采集和分析系统设计与实践", 冶金自动化, vol. 39, no. 06, 25 November 2015 (2015-11-25) * |
谢鹏华;牛昱光;: "DCS远程监控实验教学系统的OPC技术实现方法", 太原理工大学学报, no. 02, 15 March 2011 (2011-03-15) * |
黄贤英;刘峰;: "基于图元的嵌入式组态软件的设计与实现", 计算机工程与设计, no. 03, 16 February 2008 (2008-02-16) * |
Also Published As
Publication number | Publication date |
---|---|
CN117934663B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109871670B (en) | Method for operating and monitoring industrial equipment to be controlled and operator system | |
CN111538731B (en) | Automatic report generation system for industrial data | |
CN108874926A (en) | Mass data inquiry method, device, computer equipment and storage medium | |
EP2423767A2 (en) | Automated operator interface generation in a control system | |
CN113282795B (en) | Data structure diagram generation and updating method and device, electronic equipment and storage medium | |
CN105677353A (en) | Feature extraction method and machine learning method and device thereof | |
CN107273104B (en) | Processing method and device for configuration data structure | |
US20170192407A1 (en) | Method and apparatus for enabling model driven navigation | |
CN112199086A (en) | Automatic programming control system, method, device, electronic device and storage medium | |
CN108762751A (en) | A kind of logic figure configuration and the method and system for changing into data flow | |
CN112199007A (en) | Menu display method and device, electronic equipment and storage medium | |
CN117238433A (en) | Method for automatically isolating document data based on Libreoffice | |
CN113918437B (en) | User behavior data analysis method, device, computer 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 | |
CN116069202A (en) | Operating condition radar chart processing method and device | |
US20230401347A1 (en) | Plant infrastructure modelling | |
CN109388385A (en) | Method and apparatus for application and development | |
CN109725973A (en) | A kind of data processing method and data processing equipment | |
CN114860221A (en) | Workflow engine and implementation method thereof | |
CN111104031B (en) | User-oriented data updating method and device, electronic equipment and storage medium | |
KR100928895B1 (en) | Tool generator for control system development | |
Kugler et al. | Method for the generation of use case related views for Digital Twins | |
CN112783913B (en) | Database updating method, device, equipment and storage medium |
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 |