Batch processing method for human-computer interaction interface development of configuration software

By creating basic examples in the configuration software and exporting them into xaml format files, batch processing and splicing, and finally importing the human-computer interactive interface program, the problem of low efficiency and long cycle of human-computer interactive interface development in the configuration software is solved, and automatic batch processing across modules is realized, and development efficiency and accuracy are improved.

CN120215938APending Publication Date: 2025-06-27HIWING TECH ACAD OF CASIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510216564.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In configuration software, there are problems such as large repetitive workload, low development efficiency and long development cycle when developing human-computer interactive interfaces. Especially in multi-point and complex situations, the batch processing methods of the existing technology lack universality and automation.

Method used

By creating basic examples in each module of the configuration software, exporting them into xaml format files, reading and parsing these files, batch processing to obtain statements in different module formats, and splicing them with the basic format, and finally importing them into the human-computer interactive interface program to realize automatic batch processing across modules.

Benefits of technology

It improves the efficiency of human-computer interactive interface development, shortens the development cycle, reduces development errors, and provides a method to quickly modify a large number of controls, variables, and functions in the later stage, which is suitable for rapid iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215938A_ABST
    Figure CN120215938A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of human-computer interface development, and discloses a batch processing method for human-computer interface development of configuration software. The method comprises the following steps of: creating a basic paradigm which needs to be subjected to batch processing in each module of configuration software; exporting all the basic examples as an xaml format file, wherein the file contains xaml editing commands of all the basic examples; reading and analyzing the xaml format file, placing a basic format term in the xaml format file into a character string variable according to a preset text specification, and recording a special format in the xaml format file at the same time; performing batch processing to obtain statements in different module formats, splicing the statements in different module formats and the basic format, and finally obtaining xaml texts of all modules; and importing the xaml text of each module into a human-computer interaction interface program. Therefore, the design and development efficiency is improved, and meanwhile development errors are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of human-machine interface development, and in particular to a batch processing method for developing a human-machine interactive interface of configuration software. Background Art

[0002] The languages ​​used in the development of existing human-machine interaction interface software include C, C++, C#, Matlab, Java and other programming languages. However, in the field of industrial control and monitoring, the commonly used human-machine interaction interface development tools are mainly configuration software, among which "Kingview" and wincc are widely used. In the process of developing the human-machine interaction interface with "Kingview", it has several advantages over other programs for interface development: it has strong adaptability to a variety of PLC devices, and the underlying layer has communication and parsing mechanisms with various PLC devices; the interface display and control are designed by binding points, which is more stable; by modifying the variable properties, the register position can be flexibly changed to adapt to iteration needs; configuration software. However, there are many problems with the configuration software when developing human-computer interaction interfaces: the interface development function must be developed based on the controls provided by the configuration software or custom controls, which will lead to a lot of repetitive work when the interface is complex or the number is large; iterations will occur during the development process, but operations such as adjusting the screen structure and modifying a large number of variables must be configured by clicking all the modification items, and it is impossible to achieve the purpose of modifying all by editing once through the reuse function; the batch function of variable creation and attribute change functions is poor; because the supported function language is relatively simple, it is impossible to use the reuse function to reduce the amount of code, etc. In response to these problems, a method that spans various functions such as interface design, data dictionary, and running function programming must be designed to achieve batch processing to help reduce the development work of human-computer interaction interfaces in the case of a large number of points.

[0003] One method used in the prior art is to use semi-automatic batch technology in user interface design, data dictionary, function implementation, etc. to reduce the workload at large points and improve development efficiency according to the functional characteristics supported by each configuration software. For example, the function of importing and exporting Excel variable tables in "Configuration King" is used to batch add, delete, and change variables; the interface is exported to xaml format and re-edited and imported with the interface import and export function, and the function import and export function is used to realize batch editing of functions. However, these methods do not have the universality across interfaces, variables, and functions, and the editing process can only be completed by manually entering the corresponding statements.

[0004] When developing a human - machine interaction interface with the "Kingview" configuration software, there are also many problems: The interface development function must be based on the controls provided by the configuration software or custom controls. When the interface is relatively complex or there are a large number of interfaces, it will lead to a large amount of repetitive work; During the development process, there will be iterative situations. However, for operations such as adjusting the screen architecture and modifying a large number of variables, all modification items must be clicked for configuration, and it is impossible to achieve the purpose of modifying all at once through the reuse function; The batch function of variable creation and attribute change is relatively poor; Since the supported function language is relatively simple, it is impossible to use the reuse function to reduce the code amount and achieve more complex applications, etc. Therefore, when developing an interface for scenarios with a large number of points and relatively complex logic, it will consume a large amount of time and is very prone to errors, resulting in a long development cycle.

[0005] At the same time, the existing batch technologies only have separate editing functions in several aspects such as interface design, data dictionary, and function writing, and do not have universality. Most importantly, this batch method does not achieve automation and can only rely on text and tables for quick operations to achieve batch processing. Summary of the Invention

[0006] The present invention provides a batch processing method for the development of a human - machine interaction interface of a configuration software, which can solve the technical problems in the prior art.

[0007] The present invention provides a batch processing method for the development of a human - machine interaction interface of a configuration software, wherein the method includes:

[0008] Create basic examples that need to be batch - processed in each module of the configuration software;

[0009] Export all basic examples as xaml - format files, and the files contain xaml editing commands for all basic examples;

[0010] Read and parse the xaml - format files, place the basic format terms in the xaml - format files into string variables according to the preset text specifications, and record the special formats in the xaml - format files at the same time;

[0011] Batch - process to obtain statements in different module formats, splice the statements in different module formats with the basic format, and finally obtain the xaml text of each module;

[0012] Import the xaml text of each module into the human - machine interaction interface program.

[0013] Preferably, use a C# program to read and parse the xaml - format files.

[0014] Preferably, loop statements of the C# program or the content of each field in the Excel are used for batch processing to obtain statements in different module formats, and the statements in different module formats are spliced with the basic format to finally obtain the xaml text of each module, where the Excel records the attributes that need to be changed for various modules.

[0015] Preferably, the basic examples include screen examples, data dictionary examples, alarm examples, log examples, application command languages, data change command languages, and event command languages.

[0016] Preferably, the configuration software is KingView - type configuration software.

[0017] Through the above - mentioned technical solution, the human - machine interaction interface of KingView - type configuration software can be rapidly developed in an automatic batch - processing manner based on cross - module xaml text, solving the problems of low development efficiency and long development cycle in the traditional method for multi - point and complex situations. By batch - generating unified cross - platform xaml text, the design and development efficiency is improved, and at the same time, development errors are reduced. Moreover, in this way, a method for quickly modifying a large number of controls, variables, and functions in the later stage is also provided, which is convenient for rapid iteration. Description of the Drawings

[0018] The accompanying drawings included are used to provide a further understanding of the embodiments of the present invention, which form a part of the specification, are used to illustrate the embodiments of the present invention, and are used to explain the principles of the present invention together with the written description. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It shows a flowchart of a batch - processing method for developing the human - machine interaction interface of configuration software according to an embodiment of the present invention. Detailed Embodiments

[0020] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. The following description of at least one exemplary embodiment is actually only illustrative and in no way restricts the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0021] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0022] Unless otherwise specifically stated, the relative arrangements of components and steps, numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present invention. At the same time, it should be understood that, for the sake of convenience of description, the dimensions of the various parts shown in the drawings are not drawn in actual proportional relationships. Technologies, methods, and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, the said technologies, methods, and devices should be regarded as part of the authorized specification. In all the examples shown and discussed herein, any specific value should be construed as merely exemplary and not as a limitation. Therefore, other examples of the exemplary embodiments may have different values. It should be noted that similar reference numerals and letters denote similar items in the following drawings, and thus, once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.

[0023] Figure 1 A flowchart of a batch processing method for developing a human-machine interaction interface of configuration software according to an embodiment of the present invention is shown.

[0024] As Figure 1 shown, an embodiment of the present invention provides a batch processing method for developing a human-machine interaction interface of configuration software, wherein the method includes:

[0025] Create basic examples to be batch-processed in each module of the configuration software;

[0026] Export all basic examples as xaml format files, and the files contain xaml editing commands for all basic examples;

[0027] Read and parse the xaml format file, place the basic format terms in the xaml format file into string variables according to the preset text specification, and record the special formats in the xaml format file at the same time (for example, record the special formats of modules such as picture examples, data dictionary examples, alarm examples, log examples, application command languages, data change command languages, event command languages, etc. respectively);

[0028] Batch-process to obtain statements in different module formats, splice the statements in different module formats with the basic format, and finally obtain the xaml text of each module.

[0029] Import the xaml text of each module into the human - machine interaction interface program to complete the operation.

[0030] Through the above - mentioned technical solution, the human - machine interaction interface of "Kingview" - type configuration software can be rapidly developed in an automatic batch - processing manner based on cross - module xaml text, solving the problems of low development efficiency and long development cycle in traditional methods for multi - point and complex situations. By uniformly generating cross - platform xaml text in batch, the design and development efficiency is improved, and at the same time, development errors are reduced. Moreover, in this way, a method for quickly modifying a large number of controls, variables, and functions in the later stage is also provided, facilitating rapid iteration.

[0031] Generally speaking, by rapidly developing the human - machine interaction interface of "Kingview" - type configuration software in an automatic batch - generation manner based on cross - module xaml text, while obtaining interface stability in the industrial field, the development efficiency of the human - machine interaction interface can be significantly improved.

[0032] According to an embodiment of the present invention, a C# program is used to read and parse xaml - format files.

[0033] According to an embodiment of the present invention, loop statements of a C# program or the content of each field in an excel file are used to batch - process and obtain statements in different module formats, and the statements in different module formats are spliced with the basic format to finally obtain the xaml text of each module, where the excel file records the attributes that need to be changed for various types of modules.

[0034] According to an embodiment of the present invention, the basic examples include a screen example (including various status displays and control button controls required for screen design), a data dictionary example (IO integer, internal string, internal integer, etc.), an alarm example (alarm thresholds and alarm contents of variables), a log example (recording rules of variables), application program command language (software initialization program, periodic program, program at the end), data - change command language, and event - command language.

[0035] It should be noted that for screen design, the idea of dividing the screen layout into blocks can be used, and insertions are made by adjusting the positions and properties of controls (the software provides configurations for editing the distances and positions of controls within the blocks); for the data dictionary, mainly variables with the same name but different suffixes can be batch - configured and generated to facilitate editing; for application program command language (software initialization, periodic, program at the end), data - change command language, event - command language, etc., the modified content can be pre - configured and then batch - generated.

[0036] According to an embodiment of the present invention, the configuration software is a "Kingview" - type configuration software.

[0037] As can be seen from the above embodiments, the method of the present invention has at least the following advantages:

[0038] 1) It solves the problems of large workload and low development efficiency existing in the interface development of "Kingview": When developing based on the controls provided by the configuration software or custom controls, when the interface is relatively complex or the quantity is large, it will lead to a large amount of repetitive work. And for operations such as adjusting the screen architecture and modifying a large number of variables, all modification items must be clicked for configuration, and the purpose of modifying all at once cannot be achieved through the reuse function. The development efficiency of the human-computer interaction software can be improved and the development cycle can be shortened through the automated batch processing technology.

[0039] 2) It integrates the separate batch editing functions in aspects such as existing various modules, such as interface design, data dictionary, function writing, etc., across modules to make them universal.

[0040] 3) It realizes the existing batch editing functions (performing quick operations on text and tables) by software methods, and realizes semi-automated batch processing through configuration methods.

[0041] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by orientation words such as "front, back, up, down, left, right", "horizontal, vertical, perpendicular, horizontal" and "top, bottom", etc. is usually based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description. Without contrary description, these orientation words do not indicate and imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the protection scope of the present invention; the orientation words "inside, outside" refer to the inside and outside relative to the contour of each component itself.

[0042] For the convenience of description, spatial relative terms such as "above...", "above...", "on the upper surface of...", "above" etc. can be used here to describe the spatial positional relationship between a device or feature shown in the figure and other devices or features. It should be understood that the spatial relative terms are intended to include different orientations in use or operation in addition to the orientation described in the figure of the device. For example, if the device in the drawing is inverted, the device described as "above other devices or structures" or "above other devices or structures" will be positioned as "below other devices or structures" or "beneath other devices or structures" afterwards. Thus, the exemplary term "above..." can include two orientations of "above..." and "below...". The device can also be positioned in other different ways (rotated 90 degrees or in other orientations), and corresponding explanations are made for the spatial relative descriptions used here.

[0043] In addition, it should be noted that the use of terms such as "first" and "second" to limit components is only for the convenience of distinguishing the corresponding components. Without additional declaration, the above terms have no special meaning, and therefore should not be construed as a limitation on the protection scope of the present invention.

[0044] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention can have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. A batch processing method for developing a human-computer interaction interface of configuration software, characterized in that: The method includes: Create basic examples that require batch processing in each module of the configuration software; Export all basic examples to xaml format files, which contain xaml editing commands for all basic examples; Read and parse the xaml format file, put the basic format terms in the xaml format file into a string variable according to the preset text specification, and record the special format in the xaml format file; Batch processing is used to obtain statements in different module formats, and the statements in different module formats are spliced ​​with the basic format to finally obtain the xaml text of each module; Import the xaml text of each module into the human-computer interaction interface program.

2. The method according to claim 1, characterized in that Use C# program to read and parse xaml format files.

3. The method according to claim 2, characterized in that Use the loop statement of the C# program or read the contents of each field in Excel for batch processing to obtain statements in different module formats, and splice the statements in different module formats with the basic format to finally obtain the xaml text of each module, where Excel records the properties that need to be changed for each module.

4. The method according to claim 3, characterized in that Basic examples include screen examples, data dictionary examples, alarm examples, log examples, application command language, data change command language, and event command language.

5. The method according to claim 4, characterized in that The configuration software is Kingview configuration software.