CN112486471A - Configuration method, device and equipment for operation recording function - Google Patents
Configuration method, device and equipment for operation recording function Download PDFInfo
- Publication number
- CN112486471A CN112486471A CN202011248415.2A CN202011248415A CN112486471A CN 112486471 A CN112486471 A CN 112486471A CN 202011248415 A CN202011248415 A CN 202011248415A CN 112486471 A CN112486471 A CN 112486471A
- Authority
- CN
- China
- Prior art keywords
- operation record
- configuration
- record
- hmi
- view control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006870 function Effects 0.000 claims abstract description 96
- 230000001960 triggered effect Effects 0.000 claims description 29
- 238000004088 simulation Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a configuration method, a configuration device and configuration equipment of an operation recording function. Wherein, the method comprises the following steps: configuring an operation recording function according to a preset configuration mode through HMI configuration software, wherein the preset configuration mode comprises the following steps: data-driven operation records and/or operation-driven operation records; and after the configuration is finished, compiling the configured functions and outputting a compiler program to the HMI equipment. The operation recording function is configured by the HMI configuration software according to the data driving operation record and/or the operation driving operation record, so that the operation recording function is realized, convenience is brought to an HMI configuration software user, the data driving operation record mode or the operation driving operation record mode can be independently adopted for configuration, the data driving operation record mode and the operation driving operation record mode can be combined for configuration, and the diversified configuration requirements of the user are met.
Description
Technical Field
The invention relates to the technical field of function configuration, in particular to a configuration method, a device and equipment of an operation recording function.
Background
In recent years, with rapid development of Human-computer interaction technology, HMI (Human Machine Interface) configuration software is very important Human-computer interaction design software. HMI configuration software is used as a secondary development platform, and the speed of realizing a human-computer interaction page by a user is greatly improved. Through the HMI configuration software, a user can build pictures and configuration functions according to requirements, and can compile and download the pictures and configuration functions to HMI equipment, so that various interactive scenes are realized.
However, it is not enough to satisfy only the operation requirements of the user, the users using the same HMI device may be different, the use time, the use mode, and the like are constantly changing, and the user may wish to master the operation performed on the HMI device.
Aiming at the problem that the operation recording function cannot be realized when projects are built based on HMI configuration software in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a configuration method, a configuration device and configuration equipment of an operation recording function, and aims to at least solve the problem that the operation recording function cannot be realized when a project is built based on HMI configuration software in the prior art.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for configuring an operation recording function, including:
configuring an operation recording function according to a preset configuration mode through HMI configuration software, wherein the preset configuration mode comprises the following steps: data-driven operation records and/or operation-driven operation records;
and after the configuration is finished, compiling the configured functions and outputting a compiler program to the HMI equipment.
Optionally, configuring, by HMI configuration software, an operation record function according to a data-driven operation record manner, including:
adding at least one operation record item on the configuration interface;
setting operation record information of each operation record item respectively;
and respectively binding a trigger event for each operation record item, wherein the trigger event is used for triggering operation record when the target data meets a trigger condition so as to record the operation record information of the corresponding operation record item.
Optionally, configuring, by HMI configuration software, an operation record function according to a data-driven operation record manner, further comprising:
adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information;
and selecting at least one operation record item from the added operation record items, and binding the operation record item to the operation record view control.
Optionally, configuring, by HMI configuration software, an operation record function according to an operation-driven operation record manner, including:
adding at least one control capable of executing operation on the configuration interface;
enabling an operation recording function aiming at the at least one control capable of executing the operation;
and acquiring configured operation corresponding to each control capable of executing the operation and/or acquiring user-defined operation as target operation, and triggering operation recording when the control capable of executing the operation executes the target operation so as to record operation record information of the target operation.
Optionally, configuring, by HMI configuration software, an operation record function according to an operation-driven operation record manner, further including:
adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information;
and establishing a binding relationship between the added operation record view control and the added control capable of executing the operation.
Optionally, before compiling the configured function and outputting the compiler to the HMI device, the method further includes:
receiving a simulation operation instruction;
for a data-driven operation record mode, detecting a trigger event bound with any configured operation record item, and storing the current operation record information of the operation record item;
and for the mode of operating the driving operation record, detecting a target operation corresponding to the configured control capable of executing any operation, and storing the current operation record information of the target operation.
Optionally, storing the current operation record information of the operation record item, or storing the current operation record information of the target operation, includes:
if the operation record page where the operation record view control is located is not loaded, storing triggered operation record information corresponding to the operation record view control into a first storage location;
and after the loading of the operation record page where the operation record view control is located is finished, storing the triggered operation record information and the corresponding operation record view control identification into a second storage position according to a preset period.
Optionally, after storing the current operation record information of the operation record item, or storing the current operation record information of the target operation, the method further includes:
when an operation record page where an operation record view control is located is loaded, reading operation record information corresponding to the operation record view control from the first storage position, and displaying the read operation record information in a real-time operation record display area;
and after the loading of the operation record page where the operation record view control is located is finished, synchronously displaying the latest triggered operation record information in the real-time operation record display area.
Optionally, after the triggered operation record information and the corresponding operation record view control identifier are stored in the second storage location according to the preset period, the method further includes:
receiving a processing instruction in a historical operation record display area;
determining target operation record information according to the processing instruction;
and reading the target operation record information from the second storage position, and processing the target operation record information.
An embodiment of the present invention further provides a configuration apparatus for an operation recording function, including:
the configuration module is used for configuring the operation recording function through HMI configuration software according to a preset configuration mode, wherein the preset configuration mode comprises the following steps: data-driven operation records and/or operation-driven operation records;
and the compiling module is used for compiling the configured functions after the configuration is completed and outputting the compiling program to the HMI equipment.
An embodiment of the present invention further provides a configuration device for operating a recording function, including: the configuration device of the operation recording function in the embodiment of the invention.
An embodiment of the present invention further provides an electronic device, including: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a configuration method of an operation recording function according to an embodiment of the present invention.
The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a configuration method of an operation recording function according to the embodiment of the present invention.
By applying the technical scheme of the invention, after the configuration of the operation record function is completed by the HMI configuration software according to the data drive operation record and/or the operation drive operation record, the configured function is compiled, and a compiling program is output to the HMI equipment. The HMI configuration software is used for realizing the operation recording function, bringing convenience to HMI configuration software users, and being capable of configuring by independently adopting a data driving operation recording mode or an operation driving operation recording mode, and also being capable of configuring by combining the data driving operation recording mode and the operation driving operation recording mode, thereby providing a diversified configuration scheme for the users and meeting diversified configuration requirements of the users.
Drawings
Fig. 1 is a flowchart of a configuration method of an operation recording function according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an HMI configuration software end-to-HMI device solution provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a data driven operational record configuration provided by an embodiment of the present invention;
FIG. 4 is a flow chart of an operation driven operation record configuration provided by an embodiment of the present invention;
FIG. 5 is a flow chart of an implementation of an operation recording function of the simulation/HMI device provided by the embodiment of the present invention;
fig. 6 is a block diagram of a configuration apparatus for operating a recording function according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The present embodiment provides a method for configuring an operation recording function, which can implement configuration of the operation recording function through HMI configuration software. Fig. 1 is a flowchart of a configuration method of an operation recording function according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
s101, configuring an operation recording function according to a preset configuration mode through HMI configuration software, wherein the preset configuration mode comprises the following steps: data driven operational records and/or operational driven operational records.
And S102, after the configuration is completed, compiling the configured functions and outputting a compiler program to the HMI equipment.
The data-driven operation recording mode refers to operation recording based on data change triggering, and the operation-driven operation recording mode refers to operation recording triggered when a user performs an operation on a control. After the HMI device downloads the compiler, the compiler can be operated, so that the HMI device can realize the operation recording function. The HMI configuration software can be used to build up an engineering project, so the implementation of the operational record is based on the configuration engineering project.
In the method for configuring the operation recording function according to the embodiment, after the operation recording function is configured by the HMI configuration software according to the data-driven operation record and/or the operation-driven operation record, the configured function is compiled, and a compiler is output to the HMI device. The HMI configuration software is used for realizing the operation recording function, bringing convenience to HMI configuration software users, and being capable of configuring by independently adopting a data driving operation recording mode or an operation driving operation recording mode, and also being capable of configuring by combining the data driving operation recording mode and the operation driving operation recording mode, thereby providing a diversified configuration scheme for the users and meeting diversified configuration requirements of the users.
Two configuration implementations are described separately below.
(1) Data-driven operational recording mode
Configuring an operation record function according to a data driving operation record mode through HMI configuration software, wherein the operation record function comprises the following steps: adding at least one operation record item on the configuration interface; setting operation record information of each operation record item respectively; and respectively binding a trigger event for each operation record item, wherein the trigger event is used for triggering operation record when the target data meets a trigger condition so as to record the operation record information of the corresponding operation record item.
The configuration interface is an interface provided by the HMI configuration software and used for configuring the operation recording function. The operation entry refers to an operation that needs to be recorded, for example, a delete data operation, a jump page operation, and the like. Each operation record item can be correspondingly provided with operation record information, the operation record information represents specific information of the operation record item, and the operation record information can include: number, name, user, operating device, operating content, old data value, new data value, operating time, and the like. The trigger event comprises target data and a trigger condition, and when the target data meets the trigger condition, operation recording is triggered to record the operation recording information of the corresponding operation recording item. The target data may also be referred to as a data carrier, and may be, for example, a variable carrier such as a communication variable, a local variable, a custom variable, etc., and the trigger condition may be a condition such as an increase, a decrease, a change, or an equality to a specified value of a data value, for example, when the variable a decreases, a corresponding operation record may be triggered.
According to the method, the operation record items are added, the operation record information is edited, and the trigger events are bound according to the data driving operation record mode, so that the configuration implementation mode of triggering the operation record based on the data change of the HMI configuration software is simply and effectively realized, and convenience is brought to HMI configuration software users.
In order to facilitate the user to view the operation record information, the operation record view control can be utilized to realize the display of the operation record. In one embodiment, configuring the operation record function by the HMI configuration software in a data-driven operation record manner further comprises: adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information; and selecting at least one operation record item from the added operation record items, and binding the operation record item to the operation record view control. And the operation record information corresponding to the operation record item bound to the operation record view control can be displayed. The establishment of the binding relationship can be realized through the unique identifier, the correctness and the uniqueness of the binding are ensured, and names can be provided for the binding relationship so as to be convenient for a user to check. According to the embodiment, the binding relationship between the operation record item and the operation record view control is established, so that the operation record information can be displayed, and a user can conveniently check the operation record information.
(2) Operation-driven operation recording mode
Configuring an operation record function through HMI configuration software according to an operation driving operation record mode, wherein the operation record function comprises the following steps: adding at least one control capable of executing operation on the configuration interface; enabling an operation recording function aiming at the at least one control capable of executing the operation; and acquiring configured operation corresponding to each control capable of executing the operation and/or acquiring user-defined operation as target operation, and triggering operation recording when the control capable of executing the operation executes the target operation so as to record operation record information of the target operation.
The configuration interface is an interface provided by the HMI configuration software and used for configuring the operation recording function. The control capable of executing the operation comprises independent controls for executing the operation in the HMI configuration software, such as button controls, input controls, slide switches, state switches, and buttons in some charts (such as query, clear, page-turning buttons in a data record view, a trend view, an operation record view, a histogram, and the like). Specifically, when a user executes an operation through the control, the control operation is recorded to realize operation recording. The configured operation refers to an operation that can be executed by a control capable of executing the operation, and the configured operation may include: data query, data clearing, page jump, setting, text input and the like. If the control capable of executing the operation relates to two or more operations, which operations can trigger the recording and which can not trigger the recording, the user can set the operation by himself. Each target operation may correspond to operation record information, and the operation record information may include: number, name, user, operating device, operating content, old data value, new data value, operating time, and the like.
According to the method, the control capable of executing the operation is added according to the mode of driving the operation record by the operation, the operation record function is started, the target operation is obtained, the operation record is triggered when the control capable of executing the operation executes the target operation so as to record the operation record information of the target operation, the configuration implementation mode of the HMI configuration software based on the operation trigger operation record is simply and effectively realized, and convenience is brought to an HMI configuration software user.
In order to facilitate the user to view the operation record information, the operation record view control can be utilized to realize the display of the operation record. In one embodiment, configuring the operation record function by the HMI configuration software according to the operation-driven operation record, further comprises: adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information; and establishing a binding relationship between the added operation record view control and the added control capable of executing the operation. The establishment of the binding relationship can be realized through the unique identifier, the correctness and the uniqueness of the binding are ensured, and names can be provided for the binding relationship so as to be convenient for a user to check. According to the embodiment, the binding relationship between the control capable of executing the operation and the operation record view control is established, so that the operation record information of the control capable of executing the operation can be displayed, and the user can conveniently check the operation record information.
It should be noted that the data-driven operation recording manner and the operation-driven operation recording manner may be used in combination in the same operation recording view control, that is, the operation record item and the operation-executable control may be bound to the same operation recording view control.
In one embodiment, prior to compilation, simulation verification may also be performed, which is the same process as that implemented by the HMI device running the compiler. Specifically, before compiling the configured function and outputting the compiler to the HMI device, the method may further include: receiving a simulation operation instruction; for a data-driven operation record mode, detecting a trigger event bound with any configured operation record item, and storing the current operation record information of the operation record item; and for the mode of operating the driving operation record, detecting a target operation corresponding to the configured control capable of executing any operation, and storing the current operation record information of the target operation.
In this embodiment, a simulation flow is started based on a simulation operation instruction, and a simulation operation can be performed on an HMI configuration software side for a function of simulating an operation record configured in a data-driven operation record mode and an operation-driven operation record mode, so that a user can verify the operation record at any time through simulation to achieve an effect.
In the simulation process, under the condition that the operation record can be displayed, namely, an operation record view control is configured, if the page where the operation record view is located is not loaded, the operation record is triggered but the corresponding operation record view cannot be found for displaying. For this purpose, the present embodiment provides a solution, specifically, storing current operation record information of the operation record item, or storing current operation record information of the target operation, including: if the operation record page where the operation record view control is located is not loaded, storing triggered operation record information corresponding to the operation record view control into a first storage location; and after the loading of the operation record page where the operation record view control is located is finished, storing the triggered operation record information and the corresponding operation record view control identification into a second storage position according to a preset period.
The preset period may be set by the user, for example, may be real-time, or may be set at intervals. Both the first storage location and the second storage location may be in the form of containers, files, or databases. The first storage location is a different storage location than the second storage location. The corresponding relationship between the operation record information and the operation record view control identifier is determined by the binding relationship between the operation record item and the operation record view control and the binding relationship between the control capable of executing the operation and the operation record view control.
The embodiment distinguishes two situations of no loading and loading completion of the operation record page where the operation record view control is located, stores the triggered operation record information to different positions, provides a solution for temporarily storing data when the page is not loaded, and avoids the loss of operation record data; when the page is loaded, the temporarily stored operation record information can be read out from the first storage position for display.
In one embodiment, after storing the current operation record information of the operation record item or storing the current operation record information of the target operation, the method further includes: when an operation record page where an operation record view control is located is loaded, reading operation record information corresponding to the operation record view control from the first storage position, and displaying the read operation record information in a real-time operation record display area; and after the loading of the operation record page where the operation record view control is located is finished, synchronously displaying the latest triggered operation record information in the real-time operation record display area. When the page where the operation record view is located is loaded, the data matched with the operation record view in the first storage location is read firstly and displayed in the real-time operation record display area in the operation record view as initialization data, and the completeness of operation record information display is guaranteed. After the page where the operation record view is located is loaded, the latest triggered operation record information is synchronously displayed in the real-time operation record display area, so that the real-time performance of the operation record information display is ensured.
The embodiment sets the real-time operation record display area based on the operation record view control, can display operation record information in real time, is convenient for a user to check the operation record information in real time, and can ensure the accuracy and integrity of the displayed information by setting the first storage position.
In one embodiment, after storing the triggered operation record information and the corresponding operation record view control identifier thereof in the second storage location according to a preset period, the method further includes: receiving a processing instruction in a historical operation record display area; determining target operation record information according to the processing instruction; and reading the target operation record information from the second storage position, and processing the target operation record information. Wherein, the processing instruction refers to an instruction for managing the operation record information that has been stored (or called as record), and the processing instruction includes: page turning, display, inquiry or clearing, etc., for example, display by date, inquiry of a specified page number, page turning, clearing of specified date data, clearing of all data, etc.
The embodiment sets a historical operation record display area based on the operation record view control, provides a data management function, is convenient for a user to acquire historical operation record information at any time, looks over the operation record information in a targeted manner, and controls the operation record information of the HMI equipment.
The following describes the configuration method of the operation recording function with reference to a specific embodiment, but it should be noted that the specific embodiment is only for better describing the present application and is not to be construed as a limitation of the present application. The same or corresponding terms as those of the above-described embodiments are explained, and the description of the present embodiment is omitted.
As shown in fig. 2, a schematic diagram of a complete solution from an HMI configuration software end to an HMI device is shown, which includes the following steps:
s201, configuring operation records, wherein the selectable configuration mode comprises the following steps: a data driven operational recording configuration and/or an operational driven operational recording configuration.
S202, after configuration is completed, effects can be achieved through simulation verification.
And S203, compiling and downloading to the HMI equipment.
And S204, the HMI equipment runs the compiler to realize the functions of displaying and storing the operation record information in real time.
As shown in fig. 3, the process for configuring the data driving operation record of the HMI configuration software end includes the following steps:
and S301, providing an adding operation record item configuration interface, and adding the operation record item through a configuration page.
And S302, editing the operation record information of the operation record item.
And S303, binding the data carrier for each operation record item, configuring the conditions of increasing, decreasing, changing or being equal to the specified value of the data carrier and the like, and realizing the operation record triggered according to the conditions. The data carrier may be a variable carrier such as a communication variable, a local variable, a custom variable, etc.
S304, adding an operation record view control, optionally setting a screening rule based on the equipment type, the protocol type and the like, and conveniently searching the required data carrier.
S305, selecting one or more operation record items from the added operation record items, and binding to the operation record view control.
When the simulation or HMI equipment runs, the operation record view control identifies the operation record in the operation record item bound to the operation record view control, and the operation record is triggered by the data carrier bound by the operation record item. The operation record information includes: and the simulation or HMI equipment displays and stores operation record information when running.
As shown in fig. 4, the process for configuring the operation driving operation record of the HMI configuration software end includes the following steps:
s401, adding any control (including an operation record view control) capable of executing operation, and selecting to enable the operation record.
S402, after the operation record is enabled, the operation information (including but not limited to data query, data clearing, page jump, setting, text input, and other operations) configured by the control that can perform the operation can be identified and obtained, and the operation information is dynamically updated as the operation record information when the operation configuration of the control that can perform the operation is updated. The user can also enable the user-defined operation content, and the user-defined operation content can be identified after the user-defined operation content is enabled.
And S403, adding an operation record view control.
S404, binding the control capable of executing the operation with the operation record view control, and optionally binding one or more operation record view controls.
When the simulation or HMI equipment runs, the operation record view control identifies the operation record triggered by the control bound to the operation record view. One operation record (i.e., operation record information) includes: and after the operation record is triggered, various data of the operation record are dynamically identified according to the content configured by the control for displaying and storing.
As shown in fig. 5, the process for implementing the simulation of the HMI configuration software end and the operation record of the HMI device during operation includes the following steps:
s501, when simulation or HMI equipment runs, determining that an operation record page where an operation record view control is located is not loaded;
s502, storing the triggered operation record into an initialization memory (corresponding to the first storage position);
s503, loading an operation record page where the operation record view control is located;
s504, reading the operation record matched with the operation record view control under the page from the initialization memory;
s505, displaying the read operation record in a real-time operation record display area;
s506, completing loading of the operation record page where the operation record view control is located;
s507, synchronously displaying the latest triggered operation record in a real-time operation record display area;
s508, storing the triggered operation record information and the corresponding operation record view control into a disk file (equivalent to the second storage position) at regular time, and setting the regular storage time by a user according to the requirement;
s509, through the historical operation record display area, the user can use the query function, read the disk file and identify the unique ID of the operation record view control, display the operation record of the specified date, and provide the functions of querying the specified page number, turning pages, clearing the data of the specified date, clearing all data and the like.
Through the embodiment, two configuration implementation modes of the operation recording function are provided, and the diversified configuration requirements of users are met. The data display function is provided, so that a user can conveniently check the operation record information in real time, the historical operation record information can be obtained at any time, and the user can conveniently master the operation record information of the HMI equipment. The data management function is provided, the functions of inquiry, clearing, page turning and the like are achieved, and a user can conveniently view operation record information in a targeted mode. The data temporary storage solution is provided when the page is not loaded, the data loss is avoided, and the matched data in the initialization memory can be identified and read in the loaded page for display. The embodiment of the invention also realizes a perfect simulation function, is convenient for a user to check the realization effect at any time, and saves time and cost compared with compiling and downloading to HMI equipment for verification.
Based on the same inventive concept, the present embodiment provides a configuration apparatus for an operation recording function, which can be used to implement the configuration method for the operation recording function described in the above embodiments. The device can be implemented by software and/or hardware, and can be generally integrated in equipment for operating the recording function, for example, a terminal installed with HMI configuration software.
Fig. 6 is a block diagram of a configuration apparatus for operating a recording function according to an embodiment of the present invention, and as shown in fig. 6, the apparatus includes:
a configuration module 61, configured to configure the operation recording function according to a preset configuration mode through HMI configuration software, where the preset configuration mode includes: data-driven operation records and/or operation-driven operation records;
and the compiling module 62 is configured to compile the configured functions after the configuration is completed, and output the compiler program to the HMI device.
Optionally, the configuration module 61 includes:
the first adding unit is used for adding at least one operation record item on the configuration interface;
a setting unit configured to set operation record information of each of the operation record items, respectively;
the first binding unit is used for binding trigger events for the operation record items respectively, wherein the trigger events are used for triggering operation record when target data meet trigger conditions so as to record operation record information of the corresponding operation record items.
Optionally, the configuration module 61 further includes:
a second adding unit, configured to add an operation record view control to the configuration interface, where the operation record view control is used to display operation record information;
and the second binding unit is used for selecting at least one operation record item from the added operation record items and binding the operation record item to the operation record view control.
Optionally, the configuration module 61 includes:
the third adding unit is used for adding at least one control capable of executing operation on the configuration interface;
the enabling unit is used for enabling the operation recording function aiming at the at least one control capable of executing the operation;
and the acquisition unit is used for acquiring configured operations corresponding to the control capable of executing the operations and/or acquiring user-defined operations as target operations, and triggering operation records when the control capable of executing the operations executes the target operations so as to record operation record information of the target operations.
Optionally, the configuration module 61 further includes:
a fourth adding unit, configured to add an operation record view control to the configuration interface, where the operation record view control is used to display operation record information;
and the third binding unit is used for establishing the binding relationship between the added operation record view control and the added control capable of executing the operation.
Optionally, the apparatus may further include:
the receiving module is used for receiving a simulation operation instruction before compiling the configured functions and outputting a compiler to the HMI equipment;
the simulation module is used for detecting a trigger event bound with any configured operation record item in a data-driven operation record mode and storing the current operation record information of the operation record item; and detecting a target operation corresponding to the configured control capable of executing any operation according to the operation driving operation recording mode, and storing the current operation recording information of the target operation.
Optionally, the simulation module includes:
the first storage unit is used for storing triggered operation record information corresponding to the operation record view control into a first storage location if an operation record page where the operation record view control is located is not loaded;
and the second storage unit is used for storing the triggered operation record information and the corresponding operation record view control identification into a second storage position according to a preset period after the operation record page where the operation record view control is located is loaded.
Optionally, the simulation module may further include:
the first display unit is used for reading the operation record information corresponding to the operation record view control from the first storage position when the operation record page where the operation record view control is located is loaded, and displaying the read operation record information in a real-time operation record display area;
and the second display unit is used for synchronously displaying the latest triggered operation record information in the real-time operation record display area after the operation record page where the operation record view control is located is loaded.
Optionally, the simulation module may further include:
a processing unit for receiving a processing instruction in the history operation record display area; determining target operation record information according to the processing instruction; and reading the target operation record information from the second storage position, and processing the target operation record information.
The device can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In another embodiment, there is also provided a configuration apparatus for operating a recording function, including: the configuration device for the operation recording function according to the above embodiment. The configuration device of the operation recording function can be a terminal installed with HMI configuration software.
In another embodiment, there is also provided an electronic device including: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the configuration method of the operation recording function as described in the above embodiments.
In another embodiment, there is also provided a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the configuration method of the operation recording function as described in the above embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (13)
1. A method for configuring an operation recording function, comprising:
configuring an operation recording function according to a preset configuration mode through HMI configuration software, wherein the preset configuration mode comprises the following steps: data-driven operation records and/or operation-driven operation records;
and after the configuration is finished, compiling the configured functions and outputting a compiler program to the HMI equipment.
2. The method of claim 1, wherein configuring the operation record function by HMI configuration software in a data-driven operation record manner comprises:
adding at least one operation record item on the configuration interface;
setting operation record information of each operation record item respectively;
and respectively binding a trigger event for each operation record item, wherein the trigger event is used for triggering operation record when the target data meets a trigger condition so as to record the operation record information of the corresponding operation record item.
3. The method of claim 2, wherein configuring the operation record function by HMI configuration software in a data-driven operation record manner further comprises:
adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information;
and selecting at least one operation record item from the added operation record items, and binding the operation record item to the operation record view control.
4. The method of claim 1, wherein configuring the operation record function by the HMI configuration software in an operation driven operation record manner comprises:
adding at least one control capable of executing operation on the configuration interface;
enabling an operation recording function aiming at the at least one control capable of executing the operation;
and acquiring configured operation corresponding to each control capable of executing the operation and/or acquiring user-defined operation as target operation, and triggering operation recording when the control capable of executing the operation executes the target operation so as to record operation record information of the target operation.
5. The method of claim 4, wherein configuring the operation record function by the HMI configuration software in an operation driven operation record manner further comprises:
adding an operation record view control on the configuration interface, wherein the operation record view control is used for displaying operation record information;
and establishing a binding relationship between the added operation record view control and the added control capable of executing the operation.
6. The method of claim 1, further comprising, prior to compiling the configured functions and outputting the compiler to the HMI device:
receiving a simulation operation instruction;
for a data-driven operation record mode, detecting a trigger event bound with any configured operation record item, and storing the current operation record information of the operation record item;
and for the mode of operating the driving operation record, detecting a target operation corresponding to the configured control capable of executing any operation, and storing the current operation record information of the target operation.
7. The method of claim 6, wherein storing current operation record information of the operation record item or storing current operation record information of the target operation comprises:
if the operation record page where the operation record view control is located is not loaded, storing triggered operation record information corresponding to the operation record view control into a first storage location;
and after the loading of the operation record page where the operation record view control is located is finished, storing the triggered operation record information and the corresponding operation record view control identification into a second storage position according to a preset period.
8. The method according to claim 7, further comprising, after storing the current operation record information of the operation record item or storing the current operation record information of the target operation:
when an operation record page where an operation record view control is located is loaded, reading operation record information corresponding to the operation record view control from the first storage position, and displaying the read operation record information in a real-time operation record display area;
and after the loading of the operation record page where the operation record view control is located is finished, synchronously displaying the latest triggered operation record information in the real-time operation record display area.
9. The method according to claim 7, further comprising, after storing the triggered operation log information and the corresponding operation log view control identifier in the second storage location according to a preset period, the following steps:
receiving a processing instruction in a historical operation record display area;
determining target operation record information according to the processing instruction;
and reading the target operation record information from the second storage position, and processing the target operation record information.
10. A configuration apparatus that operates a recording function, comprising:
the configuration module is used for configuring the operation recording function through HMI configuration software according to a preset configuration mode, wherein the preset configuration mode comprises the following steps: data-driven operation records and/or operation-driven operation records;
and the compiling module is used for compiling the configured functions after the configuration is completed and outputting the compiling program to the HMI equipment.
11. A configuration device that operates a recording function, comprising: a configuration device for an operation recording function according to claim 10.
12. An electronic device, comprising: one or more processors; memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of configuring an operation recording function according to any one of claims 1 to 9.
13. A computer-readable storage medium on which a computer program is stored, characterized in that the program realizes a configuration method of the operation recording function according to any one of claims 1 to 9 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011248415.2A CN112486471B (en) | 2020-11-10 | 2020-11-10 | Configuration method, device and equipment for operation recording function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011248415.2A CN112486471B (en) | 2020-11-10 | 2020-11-10 | Configuration method, device and equipment for operation recording function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112486471A true CN112486471A (en) | 2021-03-12 |
CN112486471B CN112486471B (en) | 2022-06-21 |
Family
ID=74929322
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011248415.2A Active CN112486471B (en) | 2020-11-10 | 2020-11-10 | Configuration method, device and equipment for operation recording function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112486471B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019125A (en) * | 2012-12-29 | 2013-04-03 | 国电南京自动化股份有限公司 | Multitask real-time data processing system and data recording and data analyzing method |
CN107577579A (en) * | 2017-09-15 | 2018-01-12 | 通鼎互联信息股份有限公司 | A kind of log recording method and device |
CN107632867A (en) * | 2017-08-21 | 2018-01-26 | 珠海市魅族科技有限公司 | A kind of method, apparatus of information record, computer installation and readable storage medium storing program for executing |
CN107844331A (en) * | 2017-11-23 | 2018-03-27 | 腾讯科技(成都)有限公司 | Generate the method, apparatus and equipment of boot configuration file |
CN109040235A (en) * | 2018-08-01 | 2018-12-18 | 厦门大学 | A kind of storage method of the industrial control system operation note based on block chain technology |
CN109862064A (en) * | 2018-11-22 | 2019-06-07 | 中国铁建重工集团有限公司 | A kind of configuration method and device for equipment remote monitoring |
US20190220584A1 (en) * | 2018-01-16 | 2019-07-18 | International Business Machines Corporation | Discreet user identification and multiple device modes of operations |
CN111209170A (en) * | 2019-10-21 | 2020-05-29 | 江苏卓易信息科技股份有限公司 | Rule-based user behavior log acquisition and analysis method and system |
-
2020
- 2020-11-10 CN CN202011248415.2A patent/CN112486471B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103019125A (en) * | 2012-12-29 | 2013-04-03 | 国电南京自动化股份有限公司 | Multitask real-time data processing system and data recording and data analyzing method |
CN107632867A (en) * | 2017-08-21 | 2018-01-26 | 珠海市魅族科技有限公司 | A kind of method, apparatus of information record, computer installation and readable storage medium storing program for executing |
CN107577579A (en) * | 2017-09-15 | 2018-01-12 | 通鼎互联信息股份有限公司 | A kind of log recording method and device |
CN107844331A (en) * | 2017-11-23 | 2018-03-27 | 腾讯科技(成都)有限公司 | Generate the method, apparatus and equipment of boot configuration file |
US20190220584A1 (en) * | 2018-01-16 | 2019-07-18 | International Business Machines Corporation | Discreet user identification and multiple device modes of operations |
CN109040235A (en) * | 2018-08-01 | 2018-12-18 | 厦门大学 | A kind of storage method of the industrial control system operation note based on block chain technology |
CN109862064A (en) * | 2018-11-22 | 2019-06-07 | 中国铁建重工集团有限公司 | A kind of configuration method and device for equipment remote monitoring |
CN111209170A (en) * | 2019-10-21 | 2020-05-29 | 江苏卓易信息科技股份有限公司 | Rule-based user behavior log acquisition and analysis method and system |
Also Published As
Publication number | Publication date |
---|---|
CN112486471B (en) | 2022-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109634598B (en) | Page display method, device, equipment and storage medium | |
CN111190718A (en) | Method, device and system for realizing task scheduling | |
CN112558824B (en) | Page display method and device and computer storage medium | |
CN107483521A (en) | A kind of information displaying method, apparatus and system | |
CN111708557B (en) | Method, device and storage medium for updating configuration file | |
CN110688115A (en) | Method and device for generating interface | |
CN107819930A (en) | A kind of function prompt method and system | |
CN114791797A (en) | Application development method, system, device and storage medium based on service middlebox | |
EP4231145A1 (en) | View display method and apparatus for table, and electronic device | |
CN105159673A (en) | Method and device for setting control style | |
CN110531985A (en) | SDK initial method and system, electronic equipment, storage medium | |
CN107203372A (en) | Control shows method and device | |
CN108536470A (en) | A kind of development approach and system of resource file | |
CN112486471B (en) | Configuration method, device and equipment for operation recording function | |
CN117130697B (en) | Method and device for fixing application on taskbar | |
CN111026945B (en) | Multi-platform crawler scheduling method, device and storage medium | |
CN117313674A (en) | Processing method, system, equipment and medium of rich text editor | |
CN110673879A (en) | One-key adjustment method and device for element style of configuration software | |
CN113157326B (en) | Multi-system starting method and device, terminal and control platform | |
CN114579128A (en) | Visual page building method and device, storage medium and computer equipment | |
CN104298426A (en) | Method and device for displaying terminal application program APP information and mobile terminal | |
WO2021084101A1 (en) | Systems and methods for replacing a theme of a virtual environment | |
CN112988139B (en) | Method and device for developing event processing file | |
CN113961191A (en) | Method and device for automatically registering hierarchical code and storage medium | |
CN115048162A (en) | Dial display method and device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |