CN114200385B - 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 PDF

Info

Publication number
CN114200385B
CN114200385B CN202111534711.3A CN202111534711A CN114200385B CN 114200385 B CN114200385 B CN 114200385B CN 202111534711 A CN202111534711 A CN 202111534711A CN 114200385 B CN114200385 B CN 114200385B
Authority
CN
China
Prior art keywords
data
test
electric energy
algorithm
snapshot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111534711.3A
Other languages
Chinese (zh)
Other versions
CN114200385A (en
Inventor
刘笑菲
邓文栋
敖鑫
呼进国
胡梦杰
应春达
陈玉伟
魏鹏
柳志超
于洪涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yantai Dongfang Wisdom Electric Co Ltd
Original Assignee
Yantai Dongfang Wisdom Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yantai Dongfang Wisdom Electric Co Ltd filed Critical Yantai Dongfang Wisdom Electric Co Ltd
Priority to CN202111534711.3A priority Critical patent/CN114200385B/en
Publication of CN114200385A publication Critical patent/CN114200385A/en
Application granted granted Critical
Publication of CN114200385B publication Critical patent/CN114200385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses an automatic test method for an electric energy meter with separated data and process. The data manager comprises definitions of data objects, data sources, data object algorithms, snapshot transverse algorithms and snapshot longitudinal algorithms; the data combiner is responsible for calling a processing algorithm defined by the data manager to obtain operation results of a left operand and a right operand of the judgment formula; the automation script defines a specific test procedure, but is only relevant to the test procedure, and is irrelevant to the storage of data and the specific data operation procedure. The invention separates the data and the process in the test process, reduces the complexity of the test and improves the test efficiency and maintainability.

Description

Automatic test method for electric energy meter with separated data and process
Technical Field
The invention relates to a method for testing an electric energy meter.
Background
Along with the progress of modern society industrialization, intelligent electric energy meters are becoming more and more popular. Besides being used as metering equipment, the intelligent electric energy meter integrates multiple functions such as power supply quality monitoring, historical data storage, multiple communication protocols and the like.
Just because smart electric meter has the characteristics of the function is various, complicacy, also put forward higher requirement to smart electric meter's automated test. The conventional automatic electric energy meter testing method generally comprises the steps of sending instruction control to an electric energy meter detection platform body through an upper computer, controlling the electric energy meter detection platform body to send voltage and current signals to the electric energy meter, simulating various working conditions, simultaneously reading electric energy meter data through a communication interface, and finally comparing whether the response of the electric energy meter meets the requirement or not to judge whether the test is passed or not.
The conventional test method has single judgment basis and cannot adapt to the situation that the functions of the electric energy meter are changeable. 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 compared with the forward active total electric energy actually sent by a standard meter arranged in the electric energy meter detection platform body, and if the error is in a certain range, the error passes. However, in practical situations, the definition of the total power of the forward active may change, for example: in the ammeter with the reverse forward metering function, the absolute value sum of the forward active total electric energy and the reverse active total electric energy is defined; in a three-phase ammeter with a split-phase metering function, the sum of A, B, C-phase forward active power and A, B, C-phase forward active power and A, B, C-phase reverse active power can be obtained. Which definition is specifically adopted depends on the actual application requirements.
For the situation of variable functions, the conventional automatic test method has no mature solution, and can only adapt to the demands by modifying and increasing the complexity of test cases. However, complicated test cases bring high maintenance costs and reduce test efficiency.
Disclosure of Invention
The invention provides an automatic test method for an electric energy meter with separated data and process, which aims at: the complexity of modifying the test case when the definition of the test object changes is reduced, and the test efficiency and maintainability are improved.
The technical scheme of the invention is as follows:
an automatic test method for an electric energy meter with separated data and process comprises the following steps:
step one, 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 the result value of the left operand according to the data object and calculating the result value of the 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 working 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 a result value of the left operand and a result value of the right operand by using a data combiner;
and fifthly, in the automation script, judging the result value of the left operand and the result value of the right operand through operators 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 for storing in time sequence; the storage model is in a two-dimensional table form, each row corresponds to one 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 the data object to obtain a result value of the left operand;
the snapshot longitudinal algorithm is used for calculating data sources in the same column in the storage model to obtain a longitudinal middle calculated value; or, the method is used for calculating the transverse middle calculated value corresponding to each row of data sources to obtain a right operand result value;
the snapshot transverse algorithm is used for calculating data sources in the same row in the storage model to obtain a transverse intermediate calculated value; or the method is used for calculating the vertical middle calculation value corresponding to each column 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: the processing algorithms may be any of the following: and (5) accumulating, summing, calculating a difference, taking a maximum value, taking a minimum value and taking an average value.
As a further improvement of the automatic test method of the electric energy meter: when the test requirements change, the adjustment is made as follows:
(1) If the calculation mode of the left operand or the right operand is changed, reconfiguring the processing algorithm of the data manager and the data combiner;
(2) Reconfiguring the data manager if the data related to the left operand or the right operand changes;
(3) If the power meter test conditions change, the automation script is reconfigured.
Compared with the prior art, the invention has the following beneficial effects: the invention disassembles the original test script into three parts of 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 left operands and right operands, and the automation script is only related to the test process and is irrelevant to the storage and operation process of the data. The method can separate the data and the process in the test process, and when the test object changes, only the data manager (optionally the data combiner) is required to be modified, and the automation script is not required to be modified; when the testing flow 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 schematic diagram of storage and computation according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is described in detail below with reference to the accompanying drawings:
the method is described in detail based on the forward active total electric energy testing process of the electric energy meter.
Forward active total power of the electric energy meter (E T ) From the positive active energy of phase A (E A ) Active energy of phase B (E) B ) Active energy of C phase (E) C ) The addition calculation results in that:
E T =E A +E B +E C (0.1)
for testing of forward active total power, a typical test procedure is:
(1) Powering up an electric energy meter, and reading the current E T Is stored, assuming thatAnd records the current time t 1
(2) The power source applies corresponding voltage and current values according to preset parameters, and after the power source operates for a period of time, the power source stops applying current and reads the current E T Is stored, assuming thatAnd records the current time t 2
(3) Calculation E T At time t 1 To t 2 Is assumed to be delta E T
(4) According to the power source at time t 1 To t 2 A, B, C phase active power increment of power source output is calculated, and delta E is assumed to be respectively calculated A 、ΔE B 、ΔE C
(5) If the condition DeltaE is satisfied T =ΔE A +ΔE B +ΔE C The test is passed; otherwise the test fails.
According to an example, the following definitions are given:
(1) Data object: in the test data, the formula delta E is judged T =ΔE A +ΔE B +ΔE C Operator "=" left operand Δe to the left T Related data, i.e. E T
(2) Data source: in the test data, the data used for evaluating and judging the data object, namely the data related to the right operand on the right side of "=" namely E A 、E B 、E C
(3) Snapshot type storage model: the set of data objects and data sources that are saved at each time instant is called a snapshot. A plurality of times (t 1 ,t 2 ,...,t n ) The stored snapshot data form a two-dimensional TABLE, as shown in fig. 1, which is a snapshot storage model used in the present invention:
of course, other data structures may be employed to store data.
(4) Data object algorithm: as shown in FIG. 1, the column of the data object in the two-dimensional TABLE TABLE, namely the first column, is taken out, and the calculation is performed according to a certain rule to obtain the result value of the left operand of the judgment formula. In this example, the data object algorithm is to take the increment value, namely:
delta value algorithms are typically used for power data objects, and depending on the type of data object, the data object algorithm may further include: taking the instantaneous value, i.e. no matter how many snapshots are taken, the result value of the left operand is equal to the last snapshot data, etc.
(5) Snapshot portrait algorithm: as shown in FIG. 1, the columns of the data objects in the two-dimensional TABLE TABLE are removed, and the remaining data forms the two-dimensional TABLE of the data source. The snapshot longitudinal algorithm defines the way in which the table operates in the column direction, in this example, the snapshot longitudinal algorithm takes the increment value, namely:
(6) Snapshot transverse algorithm: the snapshot transverse algorithm defines the calculation mode of the table row direction data, and in this example, the snapshot transverse algorithm is summation, namely:
ΔE'=ΔE A +ΔE B +ΔE C (0.6)
it should be noted that the vertical algorithm and the horizontal algorithm are not only aimed at the original data in the table, but also aimed at intermediate calculated values that have been obtained by another algorithm. As in the example above, the snapshot landscape algorithm is not calculated directly on the original data source, but rather the Δe calculated for the snapshot portrait algorithm A ,ΔE B ,ΔE C These longitudinal intermediate calculations are calculated. Similarly, the horizontal intermediate calculated value corresponding to each row can be calculated by using a snapshot horizontal algorithm, and then the horizontal intermediate calculated value is calculated by using a snapshot vertical algorithm 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 an algorithm of accumulation calculation, summation calculation, difference calculation, maximum value taking, minimum value taking, average value taking, and the like, and are not limited to the algorithm in the example of the present invention.
(7) A data manager: is responsible for managing the definition of data objects, data sources, data object algorithms, snapshot landscape algorithms, snapshot portrait algorithms.
(8) A data combiner: and 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 the result values of the left operand and the right operand for result judgment, namely, the method is responsible for realizing the calculation processes of formulas (1.4), (1.5) and (1.6).
(9) Automation script: control of the whole process responsible for the test: controlling a power source to output specific voltage and current to the electric energy meter, and creating testing conditions meeting requirements; controlling and reading data of the electric energy meter; receiving the result value transmitted by the data combiner, comparing and giving a judging result; but also other related operations in the process.
The conventional test method also comprises an automation script, but does not distinguish between the data object, the data source and the corresponding algorithm, so that when the definition of the data object or the test object changes, the automation judgment script must be rewritten, or an automation script must be written for each test object, which is high in complexity and maintenance difficulty.
The automatic script in the invention only comprises a test flow, does not comprise a specific test object, and the value of the test object is defined by a data manager and calculated and transmitted by a data combiner, so that the automatic script can be adapted only by modifying a corresponding data manager for the same type of data, such as electric energy type, as long as the test flow is unchanged, 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 the present example is 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 test requirements, and sending configured parameters to a data manager.
In this example, the data pairLike forward active total power (E T ) The method comprises the steps of carrying out a first treatment on the surface of the The data source is A-phase forward active power (E A ) Active energy of phase B (E) B ) Active energy of C phase (E) C ) The method comprises the steps of carrying out a first treatment on the surface of the The data object algorithm is an increment-taking algorithm; the snapshot longitudinal algorithm is an increment-taking algorithm; the snapshot transverse 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 first performing longitudinal calculation and then performing transverse calculation.
And step three, writing an automatic script. The automation judgment script should contain a power source control command, a snapshot data storage command, a judgment process and the like, and a specific data object should not appear in the script.
And running an automation script to finish the following steps:
step 3-1: powering up an electric energy meter;
step 3-2: according to the definition of the data manager, the snapshot is started to be saved:
……
step 3-3: and controlling the power source to apply corresponding voltage and current values according to preset parameters, and stopping adding current after a period of operation.
Step 3-4: and stopping the storage of the snapshot.
Step four, according to the definition of the data manager, calculating the result values of the left operand and the right operand by using a data combiner;
step 4-1: according to the snapshot two-dimensional table as in fig. 1, the column in which the data object is located is fetched, and the result value of the left operand is calculated according to the data object algorithm. In the present example, the operations of this step are:
step 4-2: and removing the column where the data object is located, and calculating the data source value according to the snapshot longitudinal algorithm and the snapshot transverse algorithm by using the rest data source snapshot values. In the present example, the operations of this step are:
and
ΔE'=ΔE A +ΔE B +ΔE C (0.10)
fifthly, in the automatic script, judging as follows:
ΔE T =ΔE'(0.11)
if so, the test passes, otherwise the test fails. The test is completed.
When the test requirements change, the adjustment is made as follows:
(1) If the calculation mode of the left operand or the right operand is changed, reconfiguring the processing algorithm of the data manager and the data combiner;
(2) Reconfiguring the data manager if the data related to the left operand or the right operand changes;
(3) If the power meter test conditions change, the automation script is reconfigured.
The adjustment process refers to the above definition process, and will not be described herein.
The method separates the data and the process in the test process, and when the test object changes, only the data manager (optionally the data combiner) is required to be modified, so that the automation script is not required to be modified; when the testing flow 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 for an electric energy meter with separated data and process is characterized by comprising the following steps:
step one, 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 the result value of the left operand according to the data object and calculating the result value of the 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 working 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 a result value of the left operand and a result value of the right operand by using a data combiner;
and fifthly, in the automation script, judging the result value of the left operand and the result value of the right operand through operators to obtain a test result.
2. The automatic test method for the electric energy meter with separated data and process as claimed in claim 1, wherein: the storage model is a snapshot type storage model for storing in time sequence; the storage model is in a two-dimensional table form, each row corresponds to one 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 automatic test method for the electric energy meter with separated data and process as claimed in 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 the data object to obtain a result value of the left operand;
the snapshot longitudinal algorithm is used for calculating data sources in the same column in the storage model to obtain a longitudinal middle calculated value; or, the method is used for calculating the transverse middle calculated value corresponding to each row of data sources to obtain a right operand result value;
the snapshot transverse algorithm is used for calculating data sources in the same row in the storage model to obtain a transverse intermediate calculated value; or the method is used for calculating the vertical middle calculation value corresponding to each column of data sources to obtain the result value of the right operand.
4. The automatic test method of the electric energy meter with separated data and process as claimed in claim 3, wherein: the processing algorithms are any one of the following algorithms respectively: and (5) accumulating, summing, calculating a difference, taking a maximum value, taking a minimum value and taking an average value.
5. The automatic test method for the electric energy meter with data and process separated according to any one of claims 1 to 4, wherein: when the test requirements change, the adjustment is made as follows:
(1) If the calculation mode of the left operand or the right operand is changed, reconfiguring the processing algorithm of the data manager and the data combiner;
(2) Reconfiguring the data manager if the data related to the left operand or the right operand changes;
(3) If the power meter test conditions change, the automation script is reconfigured.
CN202111534711.3A 2021-12-15 2021-12-15 Automatic test method for electric energy meter with separated data and process Active CN114200385B (en)

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 CN114200385A (en) 2022-03-18
CN114200385B true 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 (3)

* Cited by examiner, † Cited by third party
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
CN111767037A (en) * 2020-06-28 2020-10-13 烟台东方威思顿电气有限公司 Scripted intelligent electric meter event judgment method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2561916B (en) * 2017-04-28 2021-09-22 Gb Gas Holdings Ltd Method and system for detecting anomalies in energy consumption

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN111767037A (en) * 2020-06-28 2020-10-13 烟台东方威思顿电气有限公司 Scripted intelligent electric meter event judgment method

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
.Net框架下测试脚本自动生成技术研究;芦彩林;丁刚毅;;微计算机应用(第05期);全文 *
一种模块化的数据驱动测试自动化框架;邹才凤;杨志伟;;现代计算机(专业版)(第06期);全文 *
基于智能电能表脚本测试方案研究;陈红芳;舒隽;;赤峰学院学报(自然科学版)(第01期);全文 *
数据驱动和关键字驱动的研究与应用;陈腊梅;;软件(第04期);全文 *
电能计量终端自动化测试平台的研究与设计;张敏;中国优秀硕士学位论文全文数据库信息科技辑;全文 *
自动化测试框架技术及应用;邓璐娟;李金萌;董东晓;;计算机测量与控制(第09期);全文 *

Also Published As

Publication number Publication date
CN114200385A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
Annergren et al. An ADMM algorithm for solving ℓ 1 regularized MPC
CN109638812B (en) Self-adaptive distribution line ultra-short term load prediction method and system
CN112018758A (en) Modeling method of high-proportion new energy-containing alternating current-direct current hybrid system based on digital twinning
CN109066689B (en) Junctor power flow adjusting method and device for data splicing of internal network and external network of power system
CN114200385B (en) Automatic test method for electric energy meter with separated data and process
CN110378585B (en) Power grid fault handling calculation task arrangement calling method, system and storage medium
CN111769545A (en) Load flow evaluation method and device under successive multiple-break scene
CN116488149A (en) Method and device for determining micro-grid power generation strategy and micro-grid
CN110544985A (en) Network source coordination data communication system
CN112463045B (en) Method, device, equipment and product for controlling diversity of redundant arrays of disks in batch
CN112421617B (en) Load flow calculation method and system of distributed power supply
US11556119B2 (en) System and method for improving simulation accuracy of manufacturing plants
CN109964180A (en) Device and method for determining the parameter of regulating device
CN114418418A (en) Work order information transfer method, system, equipment and medium based on process conversion ratio
CN109657332B (en) Method and system for decoupling electromagnetic transient automatic modeling of large-scale power grid
CN115248577B (en) Group control management method and system for sewing machine
Luzyanin et al. Practical aspects of software developing for the system of structural and functional analysis of power supply systems in oil companies
CN110445357B (en) Harmonic current suppression method for grid-connected inverter and readable storage medium
CN117335416B (en) Method, device, equipment and storage medium for optimizing power load
CN114022309A (en) Line loss reduction method and system, readable storage medium and computing device
CN110445130B (en) Static voltage stability margin calculation device considering optimal reactive power support
CN115574369A (en) Operation control method and device for cogeneration unit, electronic equipment and storage medium
CN107134779B (en) Automatic selection method and device for power distribution network power flow algorithm
CN112787334A (en) Method and system for rapidly controlling reactive power of battery energy storage power station
Sajjanshetty et al. Transient performance bounds for adaptive control

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