CN108717355A - A kind of macro substitution method of monitoring interface pixel - Google Patents

A kind of macro substitution method of monitoring interface pixel Download PDF

Info

Publication number
CN108717355A
CN108717355A CN201810360432.1A CN201810360432A CN108717355A CN 108717355 A CN108717355 A CN 108717355A CN 201810360432 A CN201810360432 A CN 201810360432A CN 108717355 A CN108717355 A CN 108717355A
Authority
CN
China
Prior art keywords
pixel
macrodefinition
picture
character string
variable
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
CN201810360432.1A
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.)
Fuzhou Sesame Intelligent Technology Co Ltd
Original Assignee
Fuzhou Sesame Intelligent Technology 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 Fuzhou Sesame Intelligent Technology Co Ltd filed Critical Fuzhou Sesame Intelligent Technology Co Ltd
Priority to CN201810360432.1A priority Critical patent/CN108717355A/en
Publication of CN108717355A publication Critical patent/CN108717355A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of macro substitution method of monitoring interface pixel, the notation methods of the script command character string of pixel attribute variable are pre-defined in source code, draw pixel, the script command of corresponding display and operation is defined to each fundamental figure in pixel, and according to the pre-defined notation methods, to indicating that the character string of pixel attribute variable is labeled;The whole definition classification and index name that pixel is marked to performing character string, are then added in pre-established macrodefinition picture library;When needing the arbitrary picture of monitoring system to create new pixel, the operation of macrodefinition pixel is added in monitoring system picture, input the index name of macrodefinition pixel, pixel attribute value is reset in the character string for the script command for performing mark, then the macrodefinition pixel in the macrodefinition picture library corresponding to index name can be added in picture by picture automatically, and rewrite, compile and run the animation and script operation command lanuage of these picture libraries automatically according to the pixel attribute value set, show corresponding macrodefinition pixel content.To substantially increase development efficiency.

Description

A kind of macro substitution method of monitoring interface pixel
Technical field
The present invention relates to automation control area, more particularly to a kind of monitoring system is in the monitoring of equipment, monitored picture The macro substitution method of pixel.
Background technology
Under the background of industry 4.0, the increasingly maturation of automation and information technology, the scattered control system in China applies city Field appropriate growth.Subproblem is found in long-term development and application.The picture exploitation of control system project needs to design and make With pixels such as Dynamic Graphs in the flow chart of projects, a large amount of in kind schematic diagram, project operation.Many of which pixel weight It is multiple to use, when project variation causes pixel to need change, such as all or part of color, word, shape of pixel change Etc., it requires a great deal of time and energy, and these changes often relate to the change of a large amount of identical pixel, lead Developer's inefficiency is caused, work is uninteresting, is also easy to mistake and changes and leak the behavior changed, very unfavorable to the exploitation of project.
Invention content
The technical problem to be solved in the present invention is to provide a kind of macro substitution method of monitoring interface pixel, for industry The similar pixel of monitored picture is arranged a macrodefinition picture library and establishes index of reference, then when industrial monitoring picture is opened These similar pixels are re-created automatically by this index, and are set by the script command character string of pixel attribute Set pixel attribute, you can automatically update pixel, substantially increase development efficiency.
The invention is realized in this way:A kind of macro substitution method of monitoring interface pixel, including:
Step S1, the notation methods of the script command character string of pixel attribute variable are pre-defined in source code, wherein The pixel attribute variable includes monitoring link point variable, picture variable and operation script command variable;
Step S2, the pixel being composed of fundamental figure is drawn;
Step S3, the script command for corresponding display being set to each fundamental figure in pixel and operating, and according to The pre-defined notation methods, to indicating that the character string of pixel attribute variable carries out in the script command for showing and operating Mark;
Step S4, the pixel for performing character string mark is added in the macrodefinition picture library pre-established, becomes macrodefinition Pixel, and define the index name of the macrodefinition pixel;
Step S5, when needing the arbitrary picture of monitoring system to create new pixel, monitoring system arbitrary picture into The operation of row addition macrodefinition pixel, inputs the index name of macrodefinition pixel, in the character string for the script command for performing mark In reset pixel attribute value, then picture can automatically add the macrodefinition pixel in the macrodefinition picture library corresponding to index name It adds in picture, and rewrites, compiles and run the animation and foot of these picture libraries automatically according to the pixel attribute value set This operational order language shows corresponding macrodefinition pixel content, so as to complete the macro substitution of monitoring interface pixel.
Further, the notation methods are:Using the character string of two # head and the tail envelope script commands.
Further, the fundamental figure includes lines, rectangle, ellipse, round rectangle, bitmap and character.
Further, be in the step S3 to step S5 operated by the form of the dialog box of pop-up, wherein Step S5 be by the dialog box of pop-up will show and the character string of the script command of operation in it is automatic to having made the variable of mark It lists, new dialog box is popped up after being selected and is changed for user.
The invention has the advantages that:A macrodefinition figure is arranged for the similar pixel of industrial monitoring picture in the present invention Library makes after a macrodefinition pixel and is saved in macrodefinition picture library, and index of reference established, then in industrial monitoring picture These similar pixels, and the script command character for passing through pixel attribute are re-created by this index automatically when opening It goes here and there pixel attribute is arranged, you can automatically update pixel.Secondary development of the developer to pixel is facilitated, and is very easy to real The achievement of existing multiple developers is shared, substantially increases development efficiency, at the same save a large amount of time and manually at This input.
Description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the method for the present invention execution flow chart.
Fig. 2 is the example schematic diagram for the pixel drawn in the method for the present invention.
Fig. 3 is the example schematic diagram for being labeled mode of operation in the method for the present invention to the character string of script command.
Fig. 4 is the example schematic diagram when pixel of drafting being added into macrodefinition picture library in the method for the present invention.
Fig. 5 is that illustration when creating pixel in the method for the present invention in monitoring system picture is intended to.
Specific implementation mode
In automation control area, the picture exploitation of control system project needs the flow of design and use projects The pixels such as the Dynamic Graph in figure, a large amount of material object schematic diagram, project operation.Many of which pixel can be reused, and project is worked as Variation cause pixel need change when, such as all or part of color of pixel, word, shape change etc., if can pass through The mode of pixel attribute setting solves these changes, then can greatly improve secondary development efficiency.
Based on above-mentioned thought, please refer to Fig.1 to shown in Fig. 5, the macro substitution method of monitoring interface pixel of the invention is wrapped It includes:
Step S1, the notation methods of the script command character string of pixel attribute variable are pre-defined in source code, wherein The pixel attribute variable includes monitoring link point variable, picture variable and operation script command variable.Such as:The mark side Formula can be the character string using two # head and the tail envelope script commands, and however, the present invention is not limited thereto can also use other marks Note mode.
Step S2, as shown in Fig. 2, drawing the pixel being composed of fundamental figure in picture by mouse and keyboard; The fundamental figure includes lines, rectangle, ellipse, round rectangle, bitmap and character etc..
Step S3, as shown in figure 3, the script that corresponding display and operation are arranged to each fundamental figure in pixel is ordered It enables, and according to the pre-defined notation methods, to showing and operating (such as to label point assignment, change external variable value Deng) the character string of script command be labeled, by the variable of the monitoring linking point of fundamental figure, different picture variable, no The variable of same operation script command is got up with two pound sign (#) envelopes, to show the difference with general script command character string, after It is continuous to confirm that this part is exactly pixel attribute section according to notation methods when using, the later stage quote pixel after be modified i.e. It can;
Step S4, as shown in figure 4, pre-establishing macrodefinition picture library, the pixel for performing character string mark is added in advance In the macrodefinition picture library of foundation, become macrodefinition pixel, and defines the index name of the macrodefinition pixel;
Step S5, as shown in figure 5, when needing when the arbitrary picture of monitoring system creates new pixel, in monitoring system Arbitrary picture be added the operation of macrodefinition pixel, the index name of macrodefinition pixel is inputted, in the script for performing mark Pixel attribute value is set in the character string of order, then picture can automatically will be macro fixed in the macrodefinition picture library corresponding to index name Adopted pixel is added in picture, and rewrites, compiles and run these picture libraries automatically according to the pixel attribute value set Animation and script operation command lanuage show corresponding macrodefinition pixel content, to be created in the arbitrary picture of monitoring system New similar pixel, that is, complete the macro substitution of monitoring interface pixel.
After macrodefinition picture library index name, after solving the picture library source modification brought using the method that picture library replicates The problem of referring to the figure of these picture libraries will not change automatically.
As previously mentioned, according to the present invention, after developer's one macrodefinition pixel of making and it is saved in macrodefinition picture library It afterwards, need not be to each pixel as long as the subsequent all similar figure selection macrodefinition pixel titles for putting more pictures Drawn, and if having modified this macrodefinition pixel, the pixel of this macrodefinition pixel of all references therewith it is automatic more Newly, to greatly facilitate the work of developer, efficiency is improved, shortens the development cycle very easy multiple developers of realization Achievement it is shared;Macrodefinition pixel can also be applied in multiple projects, it might even be possible to macrodefinition is realized on network Pixel is shared.
In the step S3 to step S5 operated by the form of the dialog box of pop-up, wherein step S5 is logical Cross pop-up dialog box will show and the character string of the script command of operation in the variable for having made mark is listed automatically, selected New dialog box is popped up after selecting to change for user, is not only facilitated, but also do not allow error-prone.
Although specific embodiments of the present invention have been described above, those familiar with the art should manage Solution, we are merely exemplary described specific embodiment, rather than for the restriction to the scope of the present invention, it is familiar with this The technical staff in field modification and variation equivalent made by the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (4)

1. a kind of macro substitution method of monitoring interface pixel, it is characterised in that:Including:
Step S1, the notation methods of the script command character string of pixel attribute variable are pre-defined in source code, wherein described Pixel attribute variable includes monitoring link point variable, picture variable and operation script command variable;
Step S2, the pixel being composed of fundamental figure is drawn;
Step S3, the script command of corresponding display and operation is set to each fundamental figure in pixel, and according to advance The notation methods of definition, to indicating the character string of pixel attribute variable into rower in the script command for showing and operating Note;
Step S4, the pixel for performing character string mark is added in the macrodefinition picture library pre-established, becomes macrodefinition pixel, And define the index name of the macrodefinition pixel;
Step S5, when needing the arbitrary picture of monitoring system to create new pixel, added in the arbitrary picture of monitoring system Add the operation of macrodefinition pixel, inputs the index name of macrodefinition pixel, the weight in the character string for the script command for performing mark New that pixel attribute value is arranged, then the macrodefinition pixel in the macrodefinition picture library corresponding to index name can be added to by picture automatically In picture, and according to the pixel attribute value set rewrite, compile and run automatically these picture libraries animation and script grasp Make command lanuage, corresponding macrodefinition pixel content is shown, so as to complete the macro substitution of monitoring interface pixel.
2. a kind of macro substitution method of monitoring interface pixel according to claim 1, it is characterised in that:The notation methods It is:Using the character string of two # head and the tail envelope script commands.
3. a kind of macro substitution method of monitoring interface pixel according to claim 1, it is characterised in that:The fundamental figure Including lines, rectangle, ellipse, round rectangle, bitmap and character.
4. a kind of macro substitution method of monitoring interface pixel according to claim 1, it is characterised in that:The step S3 is arrived It is to be operated by the form of the dialog box of pop-up in step S5, wherein step S5 will be shown by the dialog box of pop-up The variable for having made mark is listed automatically in the character string of the script command of operation, new dialog box is popped up after being selected and is supplied User changes.
CN201810360432.1A 2018-04-20 2018-04-20 A kind of macro substitution method of monitoring interface pixel Pending CN108717355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810360432.1A CN108717355A (en) 2018-04-20 2018-04-20 A kind of macro substitution method of monitoring interface pixel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810360432.1A CN108717355A (en) 2018-04-20 2018-04-20 A kind of macro substitution method of monitoring interface pixel

Publications (1)

Publication Number Publication Date
CN108717355A true CN108717355A (en) 2018-10-30

Family

ID=63899247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810360432.1A Pending CN108717355A (en) 2018-04-20 2018-04-20 A kind of macro substitution method of monitoring interface pixel

Country Status (1)

Country Link
CN (1) CN108717355A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381813A (en) * 2018-12-28 2020-07-07 北京字节跳动网络技术有限公司 Front-end page debugging method and device, computer equipment and storage medium
CN113312685A (en) * 2021-05-28 2021-08-27 东风设计研究院有限公司 Part brand replacement method in macro circuit and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593223A (en) * 2008-05-28 2009-12-02 北京数码大方科技有限公司 The gallery management method that is used for CAD
US20100289803A1 (en) * 2009-05-13 2010-11-18 International Business Machines Corporation Managing graphics load balancing strategies
CN103092585A (en) * 2011-11-04 2013-05-08 上海宝信软件股份有限公司 Image library configuration design system for integrated supervision software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593223A (en) * 2008-05-28 2009-12-02 北京数码大方科技有限公司 The gallery management method that is used for CAD
US20100289803A1 (en) * 2009-05-13 2010-11-18 International Business Machines Corporation Managing graphics load balancing strategies
CN103092585A (en) * 2011-11-04 2013-05-08 上海宝信软件股份有限公司 Image library configuration design system for integrated supervision software

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
屈志坚: "图库一体生成的配电自动化图元实时编码存显技术", 《电力系统保护与控制》 *
杨素华: "HMI 软件中参数调用画面的方法", 《冶金自动化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381813A (en) * 2018-12-28 2020-07-07 北京字节跳动网络技术有限公司 Front-end page debugging method and device, computer equipment and storage medium
CN113312685A (en) * 2021-05-28 2021-08-27 东风设计研究院有限公司 Part brand replacement method in macro circuit and storage medium

Similar Documents

Publication Publication Date Title
CA2945328C (en) Software test automation system and method
US6986120B2 (en) System and apparatus for programming system views in an object oriented environment
US9087296B2 (en) Navigable semantic network that processes a specification to and uses a set of declaritive statements to produce a semantic network model
US20050283758A1 (en) Bi-directional programming system/method for program development
US9830417B1 (en) Methods and systems for generation and editing of parameterized figure group
US9335978B2 (en) Computer aided visualization of a business object model lifecycle
CN105700888A (en) Visualization rapid developing platform based on jbpm workflow engine
CN110297752A (en) Acquisition methods and device, automatization test system, the storage medium of control element
US20090241088A1 (en) Creating graphical models representing control flow of a program manipulating data resources
US20060020931A1 (en) Method and apparatus for managing complex processes
Pimpler Programming ArcGIS with Python Cookbook
CN107153606A (en) A kind of program analyzes process visualization method and system
CN108717355A (en) A kind of macro substitution method of monitoring interface pixel
Krahl Extend: An interactive simulation tool
US7941456B2 (en) Information management method, information management program and information management apparatus
CN101710275B (en) Gui tool is utilized to carry out the method and system of editing stream logic and screens
Marcopoulos et al. An online development environment for answer set programming
CN111309378A (en) Machine learning model life cycle management system and method
CN108804095A (en) A kind of attribute definition method of monitored picture pixel
US20130106863A1 (en) Program creating apparatus and image control system
Jeong et al. A Layout-to-Generator Conversion Framework With Graphical User Interface for Visual Programming of Analog Layout Generators
JP2001273125A (en) Method and system for automatically generating source program, and program recording medium therefor
Dimitrieski et al. An Overview of Selected Visual M2M Transformation Languages
Desaunay et al. Building User-Friendly Interfaces for Petroleum Software: The Contribution of X-Window System Based Tools
CN111857680A (en) Intelligent model construction method based on meta-characteristics

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181030

WD01 Invention patent application deemed withdrawn after publication