CN114200385A - Automatic test method for electric energy meter with separated data and process - Google Patents
Automatic test method for electric energy meter with separated data and process Download PDFInfo
- Publication number
- CN114200385A CN114200385A CN202111534711.3A CN202111534711A CN114200385A CN 114200385 A CN114200385 A CN 114200385A CN 202111534711 A CN202111534711 A CN 202111534711A CN 114200385 A CN114200385 A CN 114200385A
- Authority
- CN
- China
- Prior art keywords
- data
- test
- electric energy
- algorithm
- energy meter
- 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
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R35/00—Testing or calibrating of apparatus covered by the other groups of this subclass
- G01R35/04—Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an automatic test method of an electric energy meter with separated data and process, which disassembles an original test script into a data manager, a data combiner and an automatic script. The data manager comprises definitions of a data object, a data source, a data object algorithm, a snapshot transverse algorithm and a snapshot longitudinal algorithm; the data combiner is responsible for calling a processing algorithm defined by the data manager to obtain the operation results of the left operand and the right operand of the judgment formula; the automation script defines a specific test process, but is only relevant to the test process and is not relevant to the storage of data and a specific data operation process. The invention separates the data and the process in the test process, reduces the test complexity and improves the test efficiency and the maintainability.
Description
Technical Field
The invention relates to a method for testing an electric energy meter.
Background
Along with the industrialization process of the modern society, the intelligent electric energy meter is also becoming more and more popular. Besides being used as a metering device, the intelligent electric energy meter integrates multiple functions of power supply quality monitoring, historical data storage, multiple communication protocols and the like.
Just because smart electric meter has the characteristics of various functions and complexity, higher requirements are also put forward to the automatic test of smart electric meter. The conventional automatic testing method for the electric energy meter generally comprises the steps of sending an instruction control to an electric energy meter detection table body through an upper computer, controlling the electric energy meter detection table body to send voltage and current signals to the electric energy meter to simulate various working conditions, reading data of the electric energy meter through a communication interface, and finally comparing whether the response of the electric energy meter meets the requirements or not to judge whether the test is passed or not.
The conventional test method has single judgment basis and cannot adapt to the condition of variable functions of the electric energy meter. For example, in the forward active total electric energy test, the forward active total electric energy increment of the electric energy meter in a period of time is finally compared with the forward active total electric energy actually sent by the standard meter built in the electric energy meter detection table body, and if the error is within a certain range, the result is passed. However, in practical situations, the definition of the total forward active power may vary, for example: in the electric meter with the reverse and positive metering function, the absolute value sum of the total positive active electric energy and the total reverse active electric energy is defined; in the three-phase electric meter with the split-phase metering function, the sum of A, B, C positive active electric energy is possible, and the sum of A, B, C positive active electric energy and A, B, C reverse active electric energy is also possible. Which definition is specifically adopted depends on the actual application requirements.
For the condition of variable functions, the conventional automatic test method has no mature solution and can only adapt to the requirements by modifying and increasing the complexity of the test cases. However, the complex test cases bring high maintenance cost and reduce the test efficiency.
Disclosure of Invention
The invention provides an automatic test method of an electric energy meter with separated data and process, which aims to: the complexity of modifying the test case when the definition of the test object is changed is reduced, and the test efficiency and the maintainability are improved.
The technical scheme of the invention is as follows:
an automatic test method of an electric energy meter with data and process separated comprises the following steps:
determining test data related to a judgment formula of a test, wherein the test data comprises a data object and a data source, the data object refers to data related to a left operand of the judgment formula, and the data source refers to data related to a right operand of the judgment formula;
constructing a data manager, wherein the data manager comprises a storage model for storing test data and a processing algorithm for performing calculation processing on the test data;
step two, constructing a data combiner according to the test requirement, wherein the data combiner is used for calling the processing algorithm, calculating a result value of a left operand according to the data object and calculating a result value of a right operand according to the data source;
step three, the automatic script sends out a control instruction to provide test conditions for the electric energy meter, so that the electric energy meter starts to work in a test state, test data of the electric energy meter are further obtained, and the test data are stored according to a storage model;
step four, calculating the result value of the left operand and the result value of the right operand by using a data combiner;
and step five, judging the result value of the left operand and the result value of the right operand through an operator in the automatic script to obtain a test result.
As a further improvement of the automatic test method of the electric energy meter: the storage model is a snapshot type storage model which is stored according to a time sequence; the storage model is in a two-dimensional table form, each row corresponds to a snapshot, namely a group of test data acquired at the same time, and each column corresponds to different data objects or data sources respectively.
As a further improvement of the automatic test method of the electric energy meter: the processing algorithm comprises a data object algorithm, a snapshot transverse algorithm and a snapshot longitudinal algorithm;
the data object algorithm is used for calculating a data object to obtain a result value of a left operand;
the snapshot longitudinal algorithm is used for calculating the data sources in the same column in the storage model to obtain a longitudinal intermediate calculation value; or, the calculation module is used for calculating the horizontal intermediate calculation value corresponding to each row of data source to obtain the result value of the right operand;
the snapshot transverse algorithm is used for calculating the data sources in the same line in the storage model to obtain a transverse intermediate calculation value; or, the method is used for calculating the vertical middle calculation value corresponding to each row of data sources to obtain the result value of the right operand.
As a further improvement of the automatic test method of the electric energy meter: each processing algorithm may be any one of the following algorithms: accumulation calculation, summation calculation, difference calculation, maximum value taking, minimum value taking and average value taking.
As a further improvement of the automatic test method of the electric energy meter: when the test requirements change, the adjustment is carried out according to the following modes:
(1) if the calculation mode of the left operand or the right operand is changed, the processing algorithm and the data combiner of the data manager are reconfigured;
(2) reconfiguring the data manager if the data to which the left operand or the right operand refers changes;
(3) and if the test conditions of the electric energy meter change, reconfiguring the automation script.
Compared with the prior art, the invention has the following beneficial effects: the original test script is disassembled into a data manager, a data combiner and an automation script, wherein the data manager is responsible for defining, storing and basic operation of data, the data combiner is responsible for advanced operation of the data so as to obtain operation results of a left operand and a right operand, and the automation script is only related to the test process and is unrelated to the storage of the data and the operation process. The method can separate the data and the process in the test process, when the test object changes, only the data manager needs to be modified (the data combiner is modified according to the situation), and the automatic script does not need to be modified; when the testing process is changed, only the automatic script needs to be modified, so that the testing complexity is greatly reduced, and the testing efficiency and maintainability are improved.
Drawings
FIG. 1 is a diagram illustrating storage and computation according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is explained in detail in the following with the accompanying drawings:
in this embodiment, the method is described in detail based on a forward active total electric energy test process of the electric energy meter.
Total positive active electric energy (E) of electric energy meterT) Positive active electric energy from A phase (E)A) B phase active electric energy (E)B) C phase active electric energy (E)C) The sum is calculated as:
ET=EA+EB+EC(0.1)
for the test of the positive active total electric energy, a typical test flow is as follows:
(1) electrifying the electric energy meter and reading the current ETIs stored, assuming asAnd records the current time t1;
(2) The power source applies corresponding voltage and current values according to preset parameters, stops applying the current after running for a period of time, and reads the current ETIs stored, assuming asAnd records the current time t2;
(3) Calculation of ETAt time t1To t2Is assumed to be Δ ET:
(4) According to power source at time t1To t2The A, B, C phase active power increment of the power source output is calculated, and the voltage and the current are respectively assumed to be delta EA、ΔEB、ΔEC;
(5) If the condition Δ E is satisfiedT=ΔEA+ΔEB+ΔECIf so, the test is passed; otherwise the test fails.
According to an example, the following definitions are given:
(1) data object: in the test data, and the judgment formula Δ ET=ΔEA+ΔEB+ΔECLeft operand of leftTRelated data, i.e. ET;
(2) A data source: in the test data, data for evaluating and judging a data object, that is, "right operand-related data on the right side", that is, EA、EB、EC;
(3) Fast-beat storage model: the set of data objects and data sources that are saved at each time instant is called a snapshot. A plurality of moments in time (t)1,t2,...,tn) The stored snapshot data form a two-dimensional TABLE, as shown in fig. 1, which is a snapshot-type storage model used in the present invention:
of course, other data structures may be used to store data.
(4) Data object algorithm: as shown in fig. 1, the column where the data object in the two-dimensional TABLE is located, that is, the first column, is taken out, and calculation is performed according to a certain rule, so as to obtain a result value of the left operand of the judgment formula. In this example, the data object algorithm is to take the increment value, i.e.:
the incremental value algorithm is generally applied to the electric energy data object, and according to different data object types, the data object algorithm may further include: instantaneous values are taken, i.e. the result value of the left operand is equal to the last snapshot data, no matter how many snapshots are taken, etc.
(5) And (3) snapshot longitudinal algorithm: as shown in FIG. 1, the remaining data, excluding the column of data objects in the two-dimensional TABLE TABLE, constitutes a two-dimensional TABLE of data sources. The snapshot longitudinal algorithm defines a mode that the table is operated in the column direction, in this example, the snapshot longitudinal algorithm takes an increment value, that is:
(6) and (3) snapshot transverse algorithm: the snapshot lateral algorithm defines the calculation mode of the table row direction data, and in this example, the snapshot lateral algorithm is summation, that is:
ΔE'=ΔEA+ΔEB+ΔEC(0.6)
it should be noted that the vertical algorithm and the horizontal algorithm are not only for the raw data in the table, but also for the intermediate calculation value already obtained by another algorithm. For example, in the above example, the snapshot transverse algorithm does not directly compute Δ E for the original data source, but for the snapshot longitudinal algorithmA,ΔEB,ΔECThese longitudinal median calculated values are calculated. Similarly, it can also use the snapshot transverse algorithm to calculate the transverse intermediate calculation value corresponding to each row, and then use the snapshot longitudinal algorithm to calculate the transverse intermediate calculation valueAnd calculating to obtain a result value.
In addition, the data object algorithm, the snapshot transverse algorithm, and the snapshot longitudinal algorithm may be written according to actual requirements, and may be algorithms such as accumulation calculation, summation calculation, difference calculation, maximum value taking, minimum value taking, and average value taking, and are not limited to the algorithms in the examples of the present invention.
(7) A data manager: and the system is responsible for managing the definitions of data objects, data sources, data object algorithms, snapshot transverse algorithms and snapshot longitudinal algorithms.
(8) A data combiner: the method is responsible for calling a data object algorithm, a snapshot transverse algorithm and a snapshot longitudinal algorithm according to a self-defined sequence, calculating result values of a left operand and a right operand, and judging the result, namely, the calculation process of the formulas (1.4), (1.5) and (1.6) is realized.
(9) Automated scripting: control of the entire process responsible for testing: controlling a power source to output specific voltage and current to an electric energy meter, and creating a test condition meeting the requirement; controlling and reading data of the electric energy meter; receiving and comparing result values transmitted by the data combiner, and giving a judgment result; and is also responsible for other related operations in the process.
The traditional test method also comprises an automation script, but a data object, a data source and a corresponding algorithm are not distinguished, so that when the definition of the data object or the test object changes, the automation judgment script needs to be rewritten, or an automation script needs to be written for each test object, and the traditional test method is high in complexity and high in maintenance difficulty.
The automatic script only comprises a test flow and does not comprise a specific test object, and the value of the test object is defined by the data manager and calculated and transmitted by the data combiner, so that the automatic script can be adapted only by modifying the corresponding data manager as long as the test flow is unchanged for the same type of data, such as the electric energy type, the automatic script is not required to be modified, and the maintenance cost and the complexity of the script are reduced.
The test method of this example was performed as follows:
step one, configuring a data object, a data source, a data object algorithm, a snapshot longitudinal algorithm and a snapshot transverse algorithm according to a test requirement, and sending configured parameters to a data manager.
In this example, the data object is the total positive active power (E)T) (ii) a The data source is A phase positive active electric energy (E)A) B phase active electric energy (E)B) C phase active electric energy (E)C) (ii) a The data object algorithm is an incremental algorithm; the snapshot longitudinal algorithm is an incremental algorithm; the snapshot lateral algorithm is summation.
And step two, configuring a data combiner according to the calculation modes of the left operand and the right operand.
In this example, the left operand is obtained directly by using an increment algorithm; the right operand is obtained by performing vertical calculation and then performing horizontal calculation.
And step three, compiling an automatic script. The automatic judgment script comprises a power source control command, a snapshot data storage command, a judgment process and the like, and a specific data object does not appear in the script.
And running an automation script to complete the following steps:
step 3-1: powering on the electric energy meter;
step 3-2: according to the definition of the data manager, starting to save the snapshot:
……
step 3-3: and controlling the power source to apply corresponding voltage and current values according to preset parameters, and stopping applying the current after running for a period of time.
Step 3-4: the storage of the snapshot is stopped.
Step four, calculating result values of the left operand and the right operand by using a data combiner according to the definition of the data manager;
step 4-1: according to the snapshot two-dimensional table as in fig. 1, the column in which the data object is located is taken out, and the result value of the left operand is calculated according to the data object algorithm. In the present example, the operation of this step is:
step 4-2: and removing the column where the data object is positioned, and calculating the data source value of the residual data source snapshot value according to the snapshot longitudinal algorithm and the snapshot transverse algorithm. In the present example, the operation of this step is:
and
ΔE'=ΔEA+ΔEB+ΔEC(0.10)
and step five, in the automatic script, judging as follows:
ΔET=ΔE'(0.11)
if so, the test passes, otherwise the test fails. This completes the test.
When the test requirements change, the adjustment is carried out according to the following modes:
(1) if the calculation mode of the left operand or the right operand is changed, the processing algorithm and the data combiner of the data manager are reconfigured;
(2) reconfiguring the data manager if the data to which the left operand or the right operand refers changes;
(3) and if the test conditions of the electric energy meter change, reconfiguring the automation script.
The adjustment process refers to the above definition process, and is not described herein again.
The method separates the data and the process in the test process, when the test object changes, only the data manager needs to be modified (the data combiner is modified according to the situation), and the automatic script does not need to be modified; when the testing process is changed, only the automatic script needs to be modified, so that the testing complexity is greatly reduced, and the testing efficiency and maintainability are improved.
Claims (5)
1. An automatic test method of an electric energy meter with separated data and process is characterized by comprising the following steps:
determining test data related to a judgment formula of a test, wherein the test data comprises a data object and a data source, the data object refers to data related to a left operand of the judgment formula, and the data source refers to data related to a right operand of the judgment formula;
constructing a data manager, wherein the data manager comprises a storage model for storing test data and a processing algorithm for performing calculation processing on the test data;
step two, constructing a data combiner according to the test requirement, wherein the data combiner is used for calling the processing algorithm, calculating a result value of a left operand according to the data object and calculating a result value of a right operand according to the data source;
step three, the automatic script sends out a control instruction to provide test conditions for the electric energy meter, so that the electric energy meter starts to work in a test state, test data of the electric energy meter are further obtained, and the test data are stored according to a storage model;
step four, calculating the result value of the left operand and the result value of the right operand by using a data combiner;
and step five, judging the result value of the left operand and the result value of the right operand through an operator in the automatic script to obtain a test result.
2. The method for automatically testing a data and process decoupled electric energy meter according to claim 1, wherein: the storage model is a snapshot type storage model which is stored according to a time sequence; the storage model is in a two-dimensional table form, each row corresponds to a snapshot, namely a group of test data acquired at the same time, and each column corresponds to different data objects or data sources respectively.
3. The method for automatically testing a data and process decoupled electric energy meter according to claim 2, wherein: the processing algorithm comprises a data object algorithm, a snapshot transverse algorithm and a snapshot longitudinal algorithm;
the data object algorithm is used for calculating a data object to obtain a result value of a left operand;
the snapshot longitudinal algorithm is used for calculating the data sources in the same column in the storage model to obtain a longitudinal intermediate calculation value; or, the calculation module is used for calculating the horizontal intermediate calculation value corresponding to each row of data source to obtain the result value of the right operand;
the snapshot transverse algorithm is used for calculating the data sources in the same line in the storage model to obtain a transverse intermediate calculation value; or, the method is used for calculating the vertical middle calculation value corresponding to each row of data sources to obtain the result value of the right operand.
4. The method for automatically testing a data and process decoupled electric energy meter according to claim 3, wherein: each processing algorithm may be any one of the following algorithms: accumulation calculation, summation calculation, difference calculation, maximum value taking, minimum value taking and average value taking.
5. The method for automatically testing an electric energy meter with data separated from the process according to any one of claims 1 to 4, characterized in that: when the test requirements change, the adjustment is carried out according to the following modes:
(1) if the calculation mode of the left operand or the right operand is changed, the processing algorithm and the data combiner of the data manager are reconfigured;
(2) reconfiguring the data manager if the data to which the left operand or the right operand refers changes;
(3) and if the test conditions of the electric energy meter change, reconfiguring the automation script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111534711.3A CN114200385B (en) | 2021-12-15 | 2021-12-15 | Automatic test method for electric energy meter with separated data and process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111534711.3A CN114200385B (en) | 2021-12-15 | 2021-12-15 | Automatic test method for electric energy meter with separated data and process |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114200385A true CN114200385A (en) | 2022-03-18 |
CN114200385B CN114200385B (en) | 2023-07-25 |
Family
ID=80654067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111534711.3A Active CN114200385B (en) | 2021-12-15 | 2021-12-15 | Automatic test method for electric energy meter with separated data and process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114200385B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604412A (en) * | 2009-07-15 | 2009-12-16 | 江苏省电力试验研究院有限公司 | Gate automatic test data management system |
CN109614313A (en) * | 2018-10-25 | 2019-04-12 | 平安科技(深圳)有限公司 | Automated testing method, device and computer readable storage medium |
US20200182653A1 (en) * | 2017-04-28 | 2020-06-11 | Gb Gas Holdings Limited | Method and system for detecting anomalies in energy consumption |
CN111767037A (en) * | 2020-06-28 | 2020-10-13 | 烟台东方威思顿电气有限公司 | Scripted intelligent electric meter event judgment method |
-
2021
- 2021-12-15 CN CN202111534711.3A patent/CN114200385B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604412A (en) * | 2009-07-15 | 2009-12-16 | 江苏省电力试验研究院有限公司 | Gate automatic test data management system |
US20200182653A1 (en) * | 2017-04-28 | 2020-06-11 | Gb Gas Holdings Limited | Method and system for detecting anomalies in energy consumption |
CN109614313A (en) * | 2018-10-25 | 2019-04-12 | 平安科技(深圳)有限公司 | Automated testing method, device and computer readable storage medium |
CN111767037A (en) * | 2020-06-28 | 2020-10-13 | 烟台东方威思顿电气有限公司 | Scripted intelligent electric meter event judgment method |
Non-Patent Citations (6)
Title |
---|
张敏: "电能计量终端自动化测试平台的研究与设计", 中国优秀硕士学位论文全文数据库信息科技辑 * |
芦彩林;丁刚毅;: ".Net框架下测试脚本自动生成技术研究", 微计算机应用, no. 05 * |
邓璐娟;李金萌;董东晓;: "自动化测试框架技术及应用", 计算机测量与控制, no. 09 * |
邹才凤;杨志伟;: "一种模块化的数据驱动测试自动化框架", 现代计算机(专业版), no. 06 * |
陈红芳;舒隽;: "基于智能电能表脚本测试方案研究", 赤峰学院学报(自然科学版), no. 01 * |
陈腊梅;: "数据驱动和关键字驱动的研究与应用", 软件, no. 04 * |
Also Published As
Publication number | Publication date |
---|---|
CN114200385B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103713271A (en) | BMS current detection unit automatic calibration device and calibration method | |
CN105553362A (en) | Internal combustion locomotive main generator excitation control device | |
CN103618486A (en) | Fuzzy-control direct-current motor speed control method | |
CN105067930A (en) | Test method and system of automatic test platform | |
CN208311185U (en) | A kind of electro-hydraulic position servo device of expert PID control | |
CN102073274B (en) | Expert fuzzy incremental type self-adapting parameter on-line setting and optimizing system and method thereof | |
CN114200385A (en) | Automatic test method for electric energy meter with separated data and process | |
CN117009774B (en) | Rapid verification method for multivariate data | |
CN109933179A (en) | A kind of server intelligence start-up control method, device and equipment | |
CN105579920A (en) | Programmable controller and control method for programmable controller | |
CN101892954B (en) | Continuous positioning mode-based wind power variable-pitch driving method | |
CN116009470A (en) | Ground control test method and system for autonomous power distribution of carrier rocket | |
CN203720605U (en) | Equipment system for optimizing coordination control quality of distributed control system (DCS) | |
CN106629504A (en) | Electric forklift as well as hydraulic system thereof and control method of hydraulic system | |
CN109379010A (en) | One kind being based on BSS communication type intelligent power controller chip | |
CN105207719A (en) | Cascaded Hybrid amplifier control method and system | |
CN204883211U (en) | Automatic excitation control unit of calibration function | |
CN104467500A (en) | Model-based design device and method for double closed-loop three-level inverter system | |
CN113847308B (en) | Remote electrohydraulic servo control system and method based on Ethernet communication | |
CN114458660B (en) | Control system and control method for electric control bus hydraulic valve | |
CN117335416B (en) | Method, device, equipment and storage medium for optimizing power load | |
CN214782925U (en) | Coating machine drying cabinet temperature control device | |
CN212495887U (en) | Modular combined power supply and electric welding machine | |
CN202067099U (en) | Expert fuzzy increment type self-adapting parameter online setting and optimizing system | |
CN211577760U (en) | Water treatment facilities with early warning and data tracking management function |
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 |