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 PDF

Info

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.)
Pending
Application number
CN202410342948.9A
Other languages
Chinese (zh)
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/CN117934663A/en
Publication of CN117934663A publication Critical patent/CN117934663A/en
Pending legal-status Critical Current

Links

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 (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.
CN202410342948.9A 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture Pending CN117934663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410342948.9A CN117934663A (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 CN117934663A (en) 2024-03-25 2024-03-25 Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture

Publications (1)

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

Family

ID=90761365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410342948.9A Pending CN117934663A (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) CN117934663A (en)

Similar Documents

Publication Publication Date Title
EP2423767A2 (en) Automated operator interface generation in a control system
US10152041B2 (en) Method and apparatus for enabling model driven navigation
CN105677353A (en) Feature extraction method and machine learning method and device thereof
CN110806996B (en) System and method for collecting OPC data
CN111538731B (en) Automatic report generation system for industrial data
CN107273104B (en) Processing method and device for configuration data structure
CN110990445B (en) Data processing method, device, equipment and medium
CN109144511B (en) Method and system for automatically generating numerical simulation graphical user interface
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
CN117934663A (en) Method, system, equipment and medium for generating curve by dragging graphic element in DCS picture
CN114860221A (en) Workflow engine and implementation method thereof
CN114625448A (en) Flow generation method and device combining RPA and AI, electronic equipment and storage medium
CN113377473A (en) Task creation method and device, electronic equipment and computer readable storage medium
CN110780852A (en) Method, device, equipment and medium for determining data source
KR100928895B1 (en) Tool generator for control system development
Kugler et al. Method for the generation of use case related views for Digital Twins
US20130063449A1 (en) Method and system for preprocessing and providing information for operating a technical installation
CN113282795B (en) Data structure diagram generation and updating method and device, electronic equipment and storage medium
CN109388385A (en) Method and apparatus for application and development
CN112764396B (en) Configuration method and device
CN112783913B (en) Database updating method, device, equipment and storage medium
Pribeanu Tool support for handling mapping rules from domain to task models
EP2887281A1 (en) Displaying MES records on a grid in a MES client screen
CN117034882A (en) Method, device, server and machine-readable storage medium for processing combined report

Legal Events

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