Disclosure of Invention
In view of the foregoing, it is desirable to provide a graphical programming-based electric energy meter test system, method, apparatus, computer device and storage medium that can improve the efficiency of electric energy meter testing.
An electrical energy meter test system based on graphical programming, comprising: the device comprises electric energy meter test equipment, electric energy meter verification equipment and a tested electric energy meter arranged on the electric energy meter verification equipment; the electric energy meter verification device and the electric energy meter to be tested are connected with the electric energy meter test device;
the electric energy meter test equipment is used for responding to the graphical test instruction aiming at the electric energy meter to be tested and converting the graphical test instruction into a target test instruction matched with the communication protocol of the electric energy meter verification equipment; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested;
the electric energy meter verification equipment is used for receiving the target test instruction and configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction;
the electric energy meter testing equipment is also used for collecting the test result data output by the tested electric energy meter in the electric power testing environment.
In one embodiment, the electric energy meter verification device is further configured to determine a test voltage, a test current and a test power factor for the electric energy meter under test according to the target test instruction;
the electric energy meter verification device is further used for outputting the test voltage, the test current and the test power factor to the electric energy meter to be tested.
In one embodiment, the electric energy meter verification device and the electric energy meter to be tested are both in communication connection with the electric energy meter test device through a communication interface; the communication interface comprises at least one of an RS232 serial port, an RS485 serial port, bluetooth and Ethernet.
In one embodiment, the electric energy meter test device is further configured to respond to a graphical calibration instruction for the electric energy meter under test, and convert the graphical calibration instruction into a target calibration instruction matched with a communication protocol of the electric energy meter calibration device; the graphical calibration instruction is an instruction generated by graphical programming aiming at a calibration task of the electric energy meter to be tested;
the electric energy meter verification equipment is used for receiving the target calibration instruction and calibrating the electric energy meter to be tested according to the target calibration instruction.
In one embodiment, the graphical calibration instructions include at least one of a power meter date calibration instruction, a power meter time calibration instruction.
An electric energy meter testing method based on graphical programming, the method comprising:
responding to a graphical test instruction aiming at a tested electric energy meter, and converting the graphical test instruction into a target test instruction matched with a communication protocol of an electric energy meter verification device; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested;
sending the target test instruction to the electric energy meter verification device; the electric energy meter verification device is used for configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction after receiving the target test instruction;
and collecting test data output by the tested electric energy meter in the electric power test environment.
In one embodiment, the collecting test data output by the electric energy meter under test in the power test environment includes:
collecting active power data output by the electric energy meter to be tested in the electric power test environment, and obtaining actual output power data of the electric energy meter verification device;
and generating an electric energy meter test result aiming at the test task according to the difference between the active power data and the actual output power data, and taking the electric energy meter test result as the test data.
An electrical energy meter testing device based on graphical programming, the device comprising:
the response module is used for responding to the graphical test instruction aiming at the electric energy meter to be tested and converting the graphical test instruction into a target test instruction matched with the communication protocol of the electric energy meter verification device; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested;
the sending module is used for sending the target test instruction to the electric energy meter checking device; the electric energy meter verification device is used for configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction after receiving the target test instruction;
and the acquisition module is used for acquiring the test data output by the tested electric energy meter in the electric power test environment.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method described above.
The electric energy meter test system based on the graphical programming comprises electric energy meter test equipment, electric energy meter verification equipment and a tested electric energy meter arranged on the electric energy meter verification equipment; the electric energy meter checking equipment and the electric energy meter to be tested are connected with the electric energy meter testing equipment; responding to the graphical test instruction aiming at the electric energy meter to be tested through the electric energy meter test equipment, and converting the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification equipment; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested; then, receiving a target test instruction through electric energy meter verification equipment, and configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction; finally, collecting test result data output by the tested electric energy meter in the electric power test environment through electric energy meter test equipment; therefore, a user only needs to input a graphical test instruction which is easy to edit and understand to the electric energy meter test equipment, the electric energy meter test equipment converts the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification equipment, so that the electric energy meter verification equipment configures a corresponding electric power test environment for the electric energy meter to be tested based on the target test instruction, test data output by the electric energy meter to be tested in the electric power test environment are collected through the electric power test environment, the complexity of the electric energy meter test process is reduced, the test period of the electric energy meter is shortened, and the test efficiency of the electric energy meter is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In the description of the present application, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or an implicit indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
In the description of the present application, it will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. In contrast, when an element is referred to as being "directly connected" to another element, there are no intervening elements present.
For ease of understanding by those skilled in the art, FIG. 1 provides a block diagram of a graphical programming-based power meter testing system; the electric energy meter test system based on the graphical programming comprises: the electric energy meter test equipment 110, the electric energy meter verification equipment 130 and the electric energy meter 120 to be tested which is installed on the electric energy meter verification equipment; the electric energy meter checking equipment and the electric energy meter to be tested are connected with the electric energy meter testing equipment. In practical application, the electric energy meter to be tested is electrically connected with the electric energy meter checking equipment.
The electric energy meter test equipment is used for responding to the graphical test instruction aiming at the electric energy meter to be tested and converting the graphical test instruction into a target test instruction matched with the communication protocol of the electric energy meter verification equipment. In practical application, the electric energy meter test equipment can also be named as an electric energy meter test device.
The graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested.
In the specific implementation, when a user needs to test the electric energy meter to be tested, the user can input a graphical test instruction aiming at the electric energy meter to be tested through the electric energy meter test equipment. Specifically, the user may input a graphical test instruction for the electric energy meter under test through graphical programming software installed on the electric energy meter test equipment, for example, scratch software. In practical application, the control interface for editing, running and stopping the graphical program can be completed through the Scratch software.
After the electric energy meter test equipment receives the graphical test instruction, the electric energy meter test equipment responds to the graphical test instruction aiming at the electric energy meter to be tested and converts the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification equipment. Specifically, the electric energy meter test equipment can convert the graphical test instruction based on the Scratch communication protocol received by the electric energy meter test equipment into a target test instruction matched with the communication protocol of the electric energy meter verification equipment and the electric energy meter to be tested through protocol conversion service software installed on the electric energy meter test equipment. In practical application, the graphical programming software and the protocol conversion service software adopt HTTP Get requests to realize mutual communication. Wherein the graphical programming software acts as a web server. The graphical programming software sends the data of the graphical test instruction to the protocol conversion service software, so that the protocol conversion service software receives and converts the graphical test instruction into a target test instruction matched with the communication protocol of the electric energy meter verification equipment and the electric energy meter to be tested.
For ease of understanding by those skilled in the art, FIG. 2 provides a schematic diagram of the system architecture of a power meter testing system.
After the electric energy meter test equipment determines the target test instruction, the electric energy meter test equipment can send the target test instruction to the electric energy meter verification equipment through the communication interface. In practical application, the electric energy meter test equipment can send the target test instruction to the electric energy meter verification equipment through at least one communication interface among an RS232 serial port, an RS485 serial port, bluetooth and Ethernet.
The electric energy meter verification equipment is used for receiving the target test instruction and configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction. In practical application, the electric energy meter checking device can be named as an electric energy meter checking device.
In the specific implementation, after receiving a target test instruction sent by the electric energy meter test equipment, the electric energy meter test equipment configures an electric power test environment corresponding to the target test instruction for the electric energy meter to be tested based on the target test instruction, so that the electric energy meter to be tested runs in the electric power test environment.
The electric energy meter testing equipment is also used for collecting the test result data output by the tested electric energy meter in the electric power testing environment.
In the specific implementation, the electric energy meter test equipment also collects test result data output by the tested electric energy meter in the electric power test environment. Specifically, the electric energy meter test equipment can also collect test result data output by the tested electric energy meter in the electric power test environment through at least one communication interface among an RS232 serial port, an RS485 serial port, bluetooth and Ethernet. In practical applications, the power test environment may also be named as a power supply environment.
The electric energy meter test system based on the graphical programming comprises electric energy meter test equipment, electric energy meter verification equipment and a tested electric energy meter arranged on the electric energy meter verification equipment; the electric energy meter checking equipment and the electric energy meter to be tested are connected with the electric energy meter testing equipment; responding to the graphical test instruction aiming at the electric energy meter to be tested through the electric energy meter test equipment, and converting the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification equipment; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested; then, receiving a target test instruction through electric energy meter verification equipment, and configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction; finally, collecting test result data output by the tested electric energy meter in the electric power test environment through electric energy meter test equipment; therefore, a user only needs to input a graphical test instruction which is easy to edit and understand to the electric energy meter test equipment, the electric energy meter test equipment converts the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification equipment, so that the electric energy meter verification equipment configures a corresponding electric power test environment for the electric energy meter to be tested based on the target test instruction, test data output by the electric energy meter to be tested in the electric power test environment are collected through the electric power test environment, the complexity of the electric energy meter test process is reduced, the test period of the electric energy meter is shortened, and the test efficiency of the electric energy meter is improved.
In another embodiment, the electric energy meter verification device is further configured to determine a test voltage, a test current and a test power factor for the electric energy meter under test according to the target test instruction; the electric energy meter checking equipment is also used for outputting the test voltage, the test current and the test power factor to the electric energy meter to be tested.
In a specific implementation, in a process of configuring a power test environment corresponding to the target test instruction for the electric energy meter to be tested, the electric energy meter verification device specifically includes: the electric energy meter checking equipment can determine the test voltage, the test current and the test power factor applied to the electric energy meter to be tested according to the target test instruction. And then, the electric energy meter verification equipment outputs test voltage, test current and test power factor to the tested electric energy meter, so that the tested electric energy meter is configured with a power test environment corresponding to the target test instruction, and the tested electric energy meter operates in the power test environment.
According to the technical scheme of the embodiment, the electric energy meter verification equipment determines the test voltage, the test current and the test power factor applied to the electric energy meter to be tested according to the target test instruction, and outputs the test voltage, the test current and the test power factor to the electric energy meter to be tested, so that the electric energy meter to be tested is configured with the electric power test environment corresponding to the target test instruction, and the electric energy meter to be tested operates in the electric power test environment conforming to the test task.
In another embodiment, the electric energy meter test device is further configured to respond to a graphical calibration instruction for the electric energy meter under test, and convert the graphical calibration instruction into a target calibration instruction matched with a communication protocol of the electric energy meter calibration device; the graphical calibration instruction is an instruction generated by graphical programming aiming at a calibration task of the electric energy meter to be tested; and the electric energy meter verification equipment is used for receiving the target calibration instruction and calibrating the electric energy meter to be tested according to the target calibration instruction.
The graphical calibration instruction is an instruction generated by graphically programming a calibration task of the electric energy meter to be tested.
The graphical calibration instruction is an instruction generated by graphically programming a calibration task of the electric energy meter to be tested. In practical application, the graphic calibration instruction comprises at least one of an electric energy meter date calibration instruction and an electric energy meter time calibration instruction.
In the specific implementation, when a user needs to calibrate the electric energy meter to be tested, the user can input a graphical calibration instruction aiming at the electric energy meter to be tested through the electric energy meter testing equipment. Specifically, a user may input a graphical calibration instruction for the electric energy meter under test through graphical programming software installed on the electric energy meter test equipment.
After the electric energy meter testing equipment receives the graphic calibration instruction, the electric energy meter testing equipment responds to the graphic calibration instruction aiming at the tested electric energy meter and converts the graphic calibration instruction into a target calibration instruction matched with a communication protocol of the electric energy meter checking equipment. Specifically, the electric energy meter test equipment can convert the graphical calibration instruction based on the Scratch communication protocol received by the electric energy meter test equipment into a target calibration instruction matched with the communication protocol of the electric energy meter verification equipment and the electric energy meter to be tested through protocol conversion service software installed on the electric energy meter test equipment.
After the electric energy meter test equipment determines the target calibration instruction, the electric energy meter test equipment can send the target calibration instruction to the electric energy meter verification equipment through the communication interface. In practical application, the electric energy meter test equipment can send the target calibration instruction to the electric energy meter verification equipment through at least one communication interface among an RS232 serial port, an RS485 serial port, bluetooth and Ethernet.
And after receiving the target calibration instruction, the electric energy meter calibration equipment calibrates the electric energy meter to be tested according to the target calibration instruction.
According to the technical scheme, the graphic calibration instruction for the electric energy meter to be tested is responded, and the graphic calibration instruction is converted into a target calibration instruction matched with a communication protocol of the electric energy meter verification equipment; the graphical calibration instruction is an instruction generated by graphical programming aiming at a calibration task of the electric energy meter to be tested; the electric energy meter calibration device receives the target calibration instruction and calibrates the electric energy meter to be measured according to the target calibration instruction, so that a user can calibrate the electric energy meter to be measured conveniently and rapidly.
In one embodiment, as shown in fig. 3, a method for testing an electric energy meter based on graphical programming is provided, and the method is applied to the electric energy meter testing device 110 in fig. 1 for illustration, and includes the following steps:
step S310, responding to the graphical test instruction of the tested electric energy meter, and converting the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification device; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested.
Step S320, a target test instruction is sent to an electric energy meter checking device; the electric energy meter verification device is used for configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction after receiving the target test instruction.
Step S330, collecting test data output by the tested electric energy meter in the power test environment.
It should be noted that, the specific limitation of the above steps may be referred to the specific limitation of a method for testing an electric energy meter based on graphical programming, which is not described herein.
According to the electric energy meter testing method based on the graphical programming, a user only needs to input the graphical testing instruction which is easy to edit and understand to the electric energy meter testing equipment, the electric energy meter testing equipment converts the graphical testing instruction into the target testing instruction matched with the communication protocol of the electric energy meter checking equipment, so that the electric energy meter checking equipment can configure a corresponding electric power testing environment for the electric energy meter to be tested based on the target testing instruction, further test data output by the electric energy meter to be tested in the electric power testing environment are collected through the electric power testing environment, complexity in the electric energy meter testing process is reduced, the testing period of the electric energy meter is shortened, and the testing efficiency of the electric energy meter is improved.
In another embodiment, collecting test data output by a tested electric energy meter in a power test environment includes: collecting active power data output by a tested electric energy meter in an electric power test environment, and obtaining actual output power data of an electric energy meter verification device; and generating an electric energy meter test result aiming at the test task according to the difference between the active power data and the actual output power data, and taking the electric energy meter test result as test data.
In a specific implementation, in the process of collecting test data output by the electric energy meter under test in the power test environment, the electric energy meter test equipment specifically comprises: the electric energy meter testing equipment acquires active power data output by the electric energy meter to be tested in the electric power testing environment, and acquires actual output power data of the electric energy meter checking device. Then, the electric energy meter test device generates an electric energy meter test result for the test task according to the deviation between the active power data and the actual output power data, for example, a txt file (a text file) is generated as test data.
According to the technical scheme, active power data output by the electric energy meter to be tested in an electric power test environment are collected, actual output power data of an electric energy meter checking device are obtained, and finally, an electric energy meter test result aiming at a test task is generated according to the difference between the active power data and the actual output power data and is used as test data; therefore, the user can know the actual performance of the electric energy meter to be tested based on the difference between the active power data and the actual output power data.
In another embodiment, as shown in fig. 4, a method for testing an electric energy meter based on graphical programming is provided, and the method is applied to the electric energy meter testing device 110 in fig. 1 for illustration, and includes the following steps:
step S410, responding to a graphical test instruction aiming at the electric energy meter to be tested, and converting the graphical test instruction into a target test instruction matched with a communication protocol of the electric energy meter verification device; the graphical test instruction is an instruction generated by graphically programming a test task of the electric energy meter to be tested.
Step S420, sending the target test instruction to the electric energy meter checking device; the electric energy meter verification device is used for configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction after receiving the target test instruction.
Step S430, collecting active power data output by the tested electric energy meter in the electric power test environment, and obtaining actual output power data of the electric energy meter verification device.
Step S440, generating an electric energy meter test result for the test task according to the difference between the active power data and the actual output power data, as the test data.
It should be noted that, the specific limitation of the above steps may be referred to the specific limitation of a method for testing an electric energy meter based on graphical programming, which is not described herein.
It should be understood that, although the steps in the flowcharts of fig. 3 and 4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in fig. 3 and 4 may include a plurality of steps or stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the execution of the steps or stages is not necessarily sequential, but may be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 5, there is provided a graphic programming-based electric energy meter testing device, comprising:
the response module 510 is configured to respond to a graphical test instruction for a tested electric energy meter, and convert the graphical test instruction into a target test instruction matched with a communication protocol of an electric energy meter verification device; the graphical test instruction is an instruction generated by graphical programming aiming at a test task of the electric energy meter to be tested;
a sending module 520, configured to send the target test instruction to the electric energy meter verification device; the electric energy meter verification device is used for configuring the electric power test environment of the electric energy meter to be tested according to the target test instruction after receiving the target test instruction;
and the acquisition module 530 is used for acquiring test data output by the electric energy meter under test in the power test environment.
In one embodiment, the collection module 530 is specifically configured to collect active power data output by the tested electric energy meter in the power test environment, and obtain actual output power data of the electric energy meter calibration device; and generating an electric energy meter test result aiming at the test task according to the difference between the active power data and the actual output power data, and taking the electric energy meter test result as the test data.
For specific limitation of an electric energy meter testing device based on graphical programming, reference may be made to the limitation of an electric energy meter testing method based on graphical programming hereinabove, and the description thereof will not be repeated here. The modules in the electric energy meter testing device based on the graphical programming can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program, when executed by the processor, implements a method for testing an electric energy meter based on graphical programming. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of a graphical programming-based power meter testing method described above. The steps of the electric energy meter testing method based on the graphical programming may be the steps of the electric energy meter testing method based on the graphical programming in the above embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of a method for testing a power meter based on graphical programming as described above. The steps of the electric energy meter testing method based on the graphical programming may be the steps of the electric energy meter testing method based on the graphical programming in the above embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.