CN107977201B - Automatic generation method of comprehensive monitoring HMI - Google Patents

Automatic generation method of comprehensive monitoring HMI Download PDF

Info

Publication number
CN107977201B
CN107977201B CN201711133303.0A CN201711133303A CN107977201B CN 107977201 B CN107977201 B CN 107977201B CN 201711133303 A CN201711133303 A CN 201711133303A CN 107977201 B CN107977201 B CN 107977201B
Authority
CN
China
Prior art keywords
picture
equipment
data
hmi
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711133303.0A
Other languages
Chinese (zh)
Other versions
CN107977201A (en
Inventor
李靖
司春宁
沈峰
娄亭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Seari Intelligent System Co Ltd
Original Assignee
Shanghai Seari Intelligent System 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 Shanghai Seari Intelligent System Co Ltd filed Critical Shanghai Seari Intelligent System Co Ltd
Priority to CN201711133303.0A priority Critical patent/CN107977201B/en
Publication of CN107977201A publication Critical patent/CN107977201A/en
Application granted granted Critical
Publication of CN107977201B publication Critical patent/CN107977201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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

Abstract

The invention provides an automatic generation method of a comprehensive monitoring HMI. The invention automatically generates the picture file according to the equipment list and the equipment class list which are arranged in advance, and the data of the relevant graphic elements, the positions and the like, can greatly shorten the development time, and can also correct the HMI picture file. Meanwhile, the aim of subsequent version management can be fulfilled by storing relevant data of HMI picture change. The HMI picture file can be accurately generated by the picture generation software developed by the method, and the workload of development and function test is reduced.

Description

Automatic generation method of comprehensive monitoring HMI
Technical Field
The invention relates to a method for automatically generating an integrated monitoring HMI (human machine interface) with an XML format, which is applied to a rail transit integrated monitoring project.
Background
In the traditional development process of the comprehensive monitoring project, development of an HMI monitoring picture is carried out on the basis of digestive understanding such as a floor plan of a construction drawing, user requirements of system centralized monitoring, an equipment schematic diagram and the like. In the process, the change of the design drawing, the adjustment of the equipment model selection and the difference of the management requirements all affect the progress of the development work.
The rail transit comprehensive monitoring project relates to more subsystems, including FAS, BAS, ACS and the like, and the number of the subsystems is up to 20. The number of the monitoring points can reach 3000 to 5000 points or so; the number of the stations is 20 to 30, and the systems among the stations have difference and low reusability. In a normal development mode, the development period of developers is long, the project period is 1 to 2 years, the development workload is large, and the conditions of omission and errors are easy to occur
Disclosure of Invention
The invention aims to shorten the development time of a rail transit comprehensive monitoring project.
In order to achieve the above object, the technical solution of the present invention is to provide an automatic generation method of an integrated monitoring HMI, which is characterized by comprising the following steps:
step 1, acquiring and arranging a design drawing of a relevant system, acquiring the number, the position, the information and the schematic diagram of monitoring equipment, and arranging a design document of an equipment type table, an equipment point table and equipment monitoring control logic;
step 2, uniformly developing HMI development elements of related equipment according to the sorted information, uniformly designing and storing paths for all the primitives and the gallery elements, storing design information about the HMI into a configuration file table of a database, and using the design information as basic data for a picture generation tool to call;
step 3, arranging and drawing HMI pictures, abstracting the space geographic position of the system, finishing the development of a static base map, placing equipment monitoring primitives needing to be dynamically generated and the positions of the primitives displayed in a data state on the base map by using appointed marking information, saving the HMI pictures by using xml format files, naming the HMI pictures in a mode of line + station + system + picture number for the replacement of dynamic primitives and data display;
and 4, manually importing the basic data of the configuration system and the original data of the picture image into the system in the picture generation software, importing the HMI file into the software, automatically generating a final monitoring picture, and timely adjusting related contents according to the prompted information in the picture development process.
Preferably, the device point table sorted in step 1 contains all basic elements required for picture generation, including: drawing code, equipment number, belonging line, belonging site, belonging system, equipment identification and equipment physical position of the equipment.
Preferably, the step 4 comprises the steps of:
step 4.1, reading the basic configuration information in the step 1, manually selecting lines and stations, and inquiring basic data of the corresponding lines and stations;
step 4.2, acquiring historical version information of the picture, including the position of a primitive in the picture, the version time and a corresponding equipment list, and being used for verifying picture data and outputting prompt information;
4.3, converting the HMI file into a stream, circularly loading the stream into a system, and initializing the universal characteristics according to configuration;
4.4, traversing the xml node tree, reading the position information, the equipment code and the remark description of the label of the primitive to be generated, and binding the basic data of the corresponding equipment in the subsequent step of the obtained data to dynamically generate the xml node of the primitive;
step 4.5, comparing the relevant information of the historical generated picture with the current xml file, and prompting all relevant change information;
step 4.6, reading generated primitive information of the xml file, reserving the developed part, and prompting relevant information of a developer;
step 4.7, generating primitive xml node codes and binding data and scripts according to the data of the xml node tree obtained in the step 4.4 and the original basic data obtained in the step 4.1;
and 4.8, submitting data generated by the current picture, stamping a time stamp, uploading the data serving as historical version related data to a server, and taking the data as the basis of picture development version management.
Preferably, the complex control page is generated by combining a template page and configuration codes:
the method comprises the steps of abstracting related control logic action, defining and packaging partial functions in advance, making the partial functions into a public class, standardizing configuration variables and related calling parameter names, dynamically generating calling scripts according to picture names and affiliated systems, judging logic parameters and configuration needed, and writing the logic parameters and configuration into parameter initialization of scripts of xml.
The invention automatically generates the picture file according to the equipment list and the equipment class list which are arranged in advance, and the data of the relevant graphic elements, the positions and the like, can greatly shorten the development time, and can also correct the HMI picture file. Meanwhile, the aim of subsequent version management can be fulfilled by storing relevant data of HMI picture change. The HMI picture file can be accurately generated by the picture generation software developed by the method, and the workload of development and function test is reduced.
Drawings
FIG. 1 is a logic flow diagram of the HMI picture generation tool function of the present method.
Detailed Description
In order to make the invention more comprehensible, embodiments of the invention are described in detail below with reference to the accompanying drawings: the embodiment is implemented under the technical scheme of the invention, and the implementation process and the implementation effect of the invention are given. The scope of protection of the invention is not limited to the examples described below.
With reference to fig. 1, the implementation technical solution of the method provides a method capable of implementing automatic generation of an integrated monitoring HMI, and the steps are as follows:
step 1, obtaining and arranging system design drawings of all specialties related to comprehensive monitoring.
(1) And acquiring the number of the monitoring devices from the drawing and sorting out a device list. The list acquisition information comprises drawing codes, equipment numbers, affiliated lines, affiliated stations, affiliated systems, physical positions and the like of the equipment.
(2) And summarizing and sorting out equipment class tables and graphic element logic function design documents according to schematic diagrams and the like. The subsequent HMI monitors the related icon elements of the screen and develops the component type according to the equipment class table. And binding the component and the monitoring equipment by the category in the equipment category table, and then dynamically generating an xml picture file through the corresponding relation.
And 2, uniformly developing components such as related equipment pixels, public drawing frames, pop-up frames and the like according to the data sorted in the step 1. And arranging all the primitives and the gallery elements into a uniform public gallery packet for all projects to call according to the line, site, purpose and function attributes of the primitives and the gallery elements. General design information about the HMI, including screen size, background, color, layout, etc., is saved to a configuration file table as base data for the screen generation tool to call. Pages that additionally require special handling, such as: and generating a page with a specific script and a button assembly frame layout by adopting a mode of customizing a template xml file.
And 3, drawing an HMI picture, abstracting the space geographic position of the system, and finishing the development of the static base map. And marking the equipment monitoring primitives needing to be dynamically generated and the primitives displayed by the data state on the base graph by adopting a text marking mode (generally adopting equipment coding). The HMI picture is stored by an xml format file, and the naming format is named according to the rule of line + site + system + picture number.
And 4, manually importing the configuration information in the step 1, such as basic data of the configuration system, original data of the picture map and the like, into the system. Importing the HMI file into software to generate a final monitoring picture. Besides dynamically generating the picture file according to the configuration information, the picture generation tool mainly realizes the following functions:
(1) and providing background xml picture file data verification, comparing the system equipment class table with the equipment list, and prompting error, omission or arrangement of error information.
(2) And comparing the historical versions, prompting the changes of newly arranged equipment, deleted equipment and layout of the picture, and conveniently checking the correctness of the picture.
(3) And reserving the completed picture elements and dynamically generating the newly added and labeled equipment. An iteration of the version is implemented.
(4) And synchronously uploading the equipment information generated by each picture and the data of the related xml node to a server for uniform version management.
(5) The system adopts a design mode of centralized storage of configuration data by adopting a uniform background service. The development personnel can carry out the development of the cooperation team under the condition that the client can be connected with the server, and the development efficiency is improved.
(6) The client provides an off-line mode, and adjustment and picture modification are convenient to carry out when the site is debugged. The flexibility of the system is improved.

Claims (3)

1. An automatic generation method of an integrated monitoring HMI is characterized by comprising the following steps:
step 1, acquiring and arranging a design drawing of a relevant system, acquiring the number, the position, the information and the schematic diagram of monitoring equipment, and arranging a design document of an equipment type table, an equipment point table and equipment monitoring control logic;
step 2, uniformly developing HMI development elements of related equipment according to the sorted information, uniformly designing and storing paths for all the primitives and the gallery elements, storing design information about the HMI into a configuration file table of a database, and using the design information as basic data for a picture generation tool to call;
step 3, arranging and drawing HMI pictures, abstracting the space geographic position of the system, finishing the development of a static base map, placing equipment monitoring primitives needing to be dynamically generated and the positions of the primitives displayed in a data state on the base map by using appointed marking information, saving the HMI pictures by using xml format files, naming the HMI pictures in a mode of line + station + system + picture number for the replacement of dynamic primitives and data display;
step 4, manually importing basic data of a configuration system and original data of a picture image into the system in picture generation software, importing an HMI file into the software, automatically generating a final monitoring picture, and timely adjusting related contents according to prompted information in the picture development process;
the step 4 comprises the following steps:
step 4.1, reading the basic configuration information in the step 1, manually selecting lines and stations, and inquiring basic data of the corresponding lines and stations;
step 4.2, acquiring historical version information of the picture, including the position of a primitive in the picture, the version time and a corresponding equipment list, and being used for verifying picture data and outputting prompt information;
4.3, converting the HMI file into a stream, circularly loading the stream into a system, and initializing the universal characteristics according to configuration;
4.4, traversing the xml node tree, reading the position information, the equipment code and the remark description of the label of the primitive to be generated, and binding the basic data of the corresponding equipment in the subsequent step of the obtained data to dynamically generate the xml node of the primitive;
step 4.5, comparing the relevant information of the historical generated picture with the current xml file, and prompting all relevant change information;
step 4.6, reading generated primitive information of the xml file, reserving the developed part, and prompting relevant information of a developer;
step 4.7, generating primitive xml node codes and binding data and scripts according to the data of the xml node tree obtained in the step 4.4 and the original basic data obtained in the step 4.1;
and 4.8, submitting data generated by the current picture, stamping a time stamp, uploading the data serving as historical version related data to a server, and taking the data as the basis of picture development version management.
2. The integrated monitoring HMI automatic generation method according to claim 1, characterized by: the device point table sorted in step 1 contains all the basic elements required for picture generation, including: drawing code, equipment number, belonging line, belonging site, belonging system, equipment identification and equipment physical position of the equipment.
3. The integrated monitoring HMI automatic generation method according to claim 1, characterized by: generating a complex control page by combining a template page with a configuration code:
the method comprises the steps of abstracting related control logic action, defining and packaging partial functions in advance, making the partial functions into a public class, standardizing configuration variables and related calling parameter names, dynamically generating calling scripts according to picture names and affiliated systems, judging logic parameters and configuration needed, and writing the logic parameters and configuration into parameter initialization of scripts of xml.
CN201711133303.0A 2017-11-15 2017-11-15 Automatic generation method of comprehensive monitoring HMI Active CN107977201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711133303.0A CN107977201B (en) 2017-11-15 2017-11-15 Automatic generation method of comprehensive monitoring HMI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711133303.0A CN107977201B (en) 2017-11-15 2017-11-15 Automatic generation method of comprehensive monitoring HMI

Publications (2)

Publication Number Publication Date
CN107977201A CN107977201A (en) 2018-05-01
CN107977201B true CN107977201B (en) 2021-07-16

Family

ID=62013581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711133303.0A Active CN107977201B (en) 2017-11-15 2017-11-15 Automatic generation method of comprehensive monitoring HMI

Country Status (1)

Country Link
CN (1) CN107977201B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491735B (en) * 2018-10-16 2022-01-28 南京轨道交通系统工程有限公司 Integrated data generation and verification integrated monitoring human-computer interface configuration implementation method
CN112241838B (en) * 2020-10-15 2022-04-12 四川省农业机械研究设计院 Design system and method for large-scale beef cattle farm
CN112596786B (en) * 2020-12-22 2022-10-18 浙江中控技术股份有限公司 HMI flow chart generation method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882071A (en) * 2009-05-07 2010-11-10 北京四方继保自动化股份有限公司 Picture design method for configuration software
CN102968443A (en) * 2012-10-22 2013-03-13 上海富欣智能交通控制有限公司 Optimized interface resource management system for automatic train supervision (ATS) system
CN105786893A (en) * 2014-12-24 2016-07-20 北京国际系统控制有限公司 XML(Extensive Markup Language)-based dynamic picture display method and system
US20170278487A1 (en) * 2016-03-25 2017-09-28 Lsis Co., Ltd. Method for displaying monitoring viewer in hmi system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882071A (en) * 2009-05-07 2010-11-10 北京四方继保自动化股份有限公司 Picture design method for configuration software
CN102968443A (en) * 2012-10-22 2013-03-13 上海富欣智能交通控制有限公司 Optimized interface resource management system for automatic train supervision (ATS) system
CN105786893A (en) * 2014-12-24 2016-07-20 北京国际系统控制有限公司 XML(Extensive Markup Language)-based dynamic picture display method and system
US20170278487A1 (en) * 2016-03-25 2017-09-28 Lsis Co., Ltd. Method for displaying monitoring viewer in hmi system

Also Published As

Publication number Publication date
CN107977201A (en) 2018-05-01

Similar Documents

Publication Publication Date Title
US11068382B2 (en) Software testing and verification
CN103543993B (en) Application builds method and system
CN107977201B (en) Automatic generation method of comprehensive monitoring HMI
CN108897724B (en) Function completion progress determining method and device
CN109445783B (en) Method and device for constructing dynamic configuration application driven by service
CN112085217B (en) Method, device, equipment and computer medium for deploying artificial intelligence service
CN112860260B (en) Web-based cross-platform application construction tool and method in college scene
CN112181854A (en) Method, device, equipment and storage medium for generating flow automation script
CN112905262A (en) Configuration method and device of aerospace measurement and control system
CN106484452A (en) A kind of unified configuring management method of software platform and device
KR101409528B1 (en) Method and apparatus of mda-based authoring application for smart cross-platform
CN111090976B (en) Method and device for generating inspection document based on dynamic data
CN111813417B (en) Task scheduling method based on page configuration of several bin tasks and model tasks
CN110991150B (en) Data format conversion method, device and account reporting system
CN105868104B (en) A kind of cross-platform graphic user interface automatic test approach
CN109474822B (en) Android television multi-language automatic testing method and device
CN109190969B (en) Weighing equipment management and control method and system, weighing equipment management middleware and medium
CN111597596A (en) Signal system-based construction drawing automatic drawing method and device
CN114461531A (en) Platform adaptability test method, device, equipment and storage medium of test case
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN104539697B (en) A kind of client, server and the method for making Android mobile application
CN114116488A (en) Method, device and equipment for acquiring test coverage rate information and storage medium
CN114003661A (en) Offline data entry method and device, electronic equipment and storage medium
CN111400190A (en) Automatic test flow generation method and device and computer readable storage medium
CN114363718B (en) Classroom control method, device, equipment and medium for remote multimedia

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
GR01 Patent grant