CN104090259B - Automatic gauge test platform and method based on Python script - Google Patents

Automatic gauge test platform and method based on Python script Download PDF

Info

Publication number
CN104090259B
CN104090259B CN201410316788.7A CN201410316788A CN104090259B CN 104090259 B CN104090259 B CN 104090259B CN 201410316788 A CN201410316788 A CN 201410316788A CN 104090259 B CN104090259 B CN 104090259B
Authority
CN
China
Prior art keywords
test
testing
ammeter
meter
time
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
CN201410316788.7A
Other languages
Chinese (zh)
Other versions
CN104090259A (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.)
Ningbo Sanxing Smart Electric Co Ltd
Original Assignee
Ningbo Sanxing Smart 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 Ningbo Sanxing Smart Electric Co Ltd filed Critical Ningbo Sanxing Smart Electric Co Ltd
Priority to CN201410316788.7A priority Critical patent/CN104090259B/en
Publication of CN104090259A publication Critical patent/CN104090259A/en
Application granted granted Critical
Publication of CN104090259B publication Critical patent/CN104090259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an automatic test platform and method for the working voltage drop of a gauge, and relates to an automatic test platform for the working voltage of the gauge, in particular to a test method adopting a Python script. The test platform comprises an automatic test platform experiment device, a PC, a communication interface, a communication network, a single-phase meter, a three-phase meter, a collector and a concentrator. The test method comprises a load recording function experiment scheme and a test step. According to the automatic test platform and method, the advantage of powerful functions of the Python script is fully utilized to design a flexible test system, various illegal working conditions can be simulated, manual misjudgment and repeated test work are reduced, fatigue never occurs, and the gauge detection efficiency is improved. Thus, the automatic test platform and method have broad application prospects.

Description

Meter automatically testing platform based on python script and method of testing
Technical field
The present invention relates to a kind of meter running voltage automatically testing platform, more particularly, to a kind of survey of application python script Method for testing.
Background technology
The quality of power supply is not only related to the safety and economic operation of electrical network, also affects the normal of big and small electric load Work.With the development of modern industrial technology, electric network composition also becomes increasingly complicated;Meanwhile, many power sensitive equipment quilts It is applied to produce, these equipment have high demands to power quality, and new power quality problem is following.Detection ammeter is at the scene Under various adverse circumstances, whether normal work is very important, and traditional detection is to go test manually by artificial, but So workload some tests huge are impossible.
Python is a kind of object-oriented, explanation type computer programming language, and the advantage of python language has: letter Single, easy to learn, speed is fast, portability, object-oriented, expansibility, Residuated Lattice and the advantages of have abundant storehouse, if energy Set up meter automatically testing platform using the powerful function of python script and complete white-box testing, grey box testing, Black-box Testing Lamp, can create the more excellent ammeter of performance with all standing platform tools function of each class testing of innovation realization software and hardware.
Content of the invention
For deficiency of the prior art, the invention provides a kind of python script is to meter automatically testing platform and survey Method for testing.
The present invention is achieved through the following technical solutions: the meter automatically testing platform based on python script, including automatically Test platform experimental provision, pc machine, communication interface, communication network, single-phase meter, three-phase meter, harvester and concentrator, described automatic Test platform experimental provision include ammeter running voltage fall, high-voltage pulse group's device, surge module, emc device, high frequency occur Device, high-low temperature chamber, controllable load case and voltage switching control module, current switching control module, described voltage switching module Fluctuation and the impact of running voltage simulated field low voltage electric network can be provided for single-phase meter, three-phase meter, harvester and concentrator, described Current switching module can provide word current, the automatic testing software fortune of exploitation for single-phase meter, three-phase meter, harvester and concentrator Row, in described pc machine, controls described automatically testing platform with the automatic testing scheme of python script formulation by described communication interface The experiment parameter of experimental provision, occurrence time and all operations experiment, described pc machine and described interconnection of telecommunication network, described pc machine The automatic testing scheme running python script formulation arranges concentrator, harvester all kinds of ammeter operational factor by communication network Various types of data with copy reading single-phase meter, three-phase meter, harvester and concentrator.Test system high flexible is extendible.
Method of testing is divided into load record functional test and error-logic to speculate method Reliability Synthesis experimental program and test Step two part: described load record functional test and error-logic speculate that method Reliability Synthesis experimental program is as follows: function Test: setting load record pattern-word is set to entirely to start each data item, load record initial time is set to current time, Time interval is set to 1 minute, allows ammeter everywhere in extreme operating condition, changes ammeter clock so that ammeter is in the shortest time The interior record points producing user's technical conditions defined, then copy reading load record data, detects ammeter keeping records data Integrity.
Error-logic speculates method test: setting load record pattern-word is set to illegal parameter, sees ammeter reaction and realizes Function;Load record initial time is set to the illegal time, and deliberately setting is very close for time interval, is less than minimum time Interval etc.;1st ~ 6 type load intra-record slack byte set of time illegal value;Above-mentioned load record pattern-word, load record initial time In the setting of 1 ~ 2 data normal, other settings are illogical, when the 1st ~ 6 type load intra-record slack byte time and load record initiate Between normally arrange.
Described testing procedure is as follows: the first step: describes design testing scheme by scheme, is write using python language and retouched The testing scheme stated;Second step: detection ammeter error;3rd step, surveyed electric energy meter is arranged on and has good luck on testing stand;4th Step: start single three-phase drop test platform;5th step, imports to software library the testing scheme writing, and opens python intelligence Table automatization test system;5th step: select ammeter to be detected after entering automatic testing software;6th step: start test it is ensured that Scheme normally runs several cycles;7th step: after test terminates, preserve test data and do preliminary analyses, whole after the completion of experiment Reason testing equipment, by test instrunment power-off, ammeter is removed, and instrument playback is put neat, in case next time uses, arranges derivation Experimental data and record, and fill in test report, use-case scheme and experimental data are tested in filing.
The device have the advantages that being: test system high flexible is extendible, reducing artificial erroneous judgement and repeatability is surveyed Trial work is made, never tired, makes full use of the quitting time, improves inspection table efficiency, can carry out the substantial amounts of test that manually cannot complete, Protocol command can independent assortment, test equipment can flexibly control at random, can carry out polytype meter test, and export Automatization can be realized by python script.Can build meter acquisition terminal under special service condition it may happen that The scene of fault, simulation field failure phenomenon retain ammeter working condition carries out principle analysis at that time again.The present invention has Very significant advantage, can simulate the situation of the illegal work being likely to occur in multiple meter work, by experimental data Record and analysis can draw best solution, have boundless development space, have obviously beneficial effect Really.
Brief description
Fig. 1 is the test platform schematic diagram of the present invention.
Specific embodiment
The concrete operating principle of the present invention is described below in conjunction with the accompanying drawings: referring to the drawings 1, the meter based on python script from Dynamic test platform, including automatically testing platform experimental provision, pc machine, communication interface, communication network, single-phase meter, three-phase meter, collection Device and concentrator, described automatically testing platform experimental provision includes ammeter running voltage falling device, high-voltage pulse group's device, wave Gush module, emc device, high frequency generator, high-low temperature chamber, controllable load case and voltage switching control module, current switching control Molding block, described voltage switching module can provide running voltage simulated field low for single-phase meter, three-phase meter, harvester and concentrator The fluctuation of voltage electric grid and impact, described current switching module can provide, for single-phase meter, three-phase meter, harvester and concentrator, electricity of having good luck Stream, the automatic testing software of exploitation operates in described pc machine, with the automatic testing scheme of python script formulation by described communication The experiment parameter of automatically testing platform experimental provision described in Interface Controller, occurrence time and all operations experiment, described pc machine with Described interconnection of telecommunication network, the automatic testing scheme that described pc machine runs python script formulation arranges concentration by communication network Device, harvester all kinds of ammeter operational factor and the Various types of data of copy reading single-phase meter, three-phase meter, harvester and concentrator.Test system System high flexible is extendible.

Claims (1)

1. the meter automatically testing platform based on python script it is characterised in that: include automatically testing platform experimental provision, pc Machine, communication interface, communication network, single-phase meter, three-phase meter, harvester and concentrator, described automatically testing platform experimental provision bag Include ammeter running voltage falling device, high-voltage pulse group's device, surge module, emc, high frequency generator, high-low temperature chamber, controlled negative Carry case and voltage switching module, current switching control module, described voltage switching module can be single-phase meter, three-phase meter, collection The fluctuation of device and concentrator offer running voltage simulated field low voltage electric network and impact, described current switching module can be single-phase Table, three-phase meter, harvester and concentrator provide word current, and the automatic testing software of exploitation operates in described pc machine, use The automatic testing scheme of python script formulation controls the experiment of described automatically testing platform experimental provision by described communication interface Parameter, occurrence time and all operations experiment, described pc machine and described interconnection of telecommunication network, described pc machine runs python script The automatic testing scheme of design pass through communication network setting concentrator, the ammeter operational factor of harvester and copy reading single-phase meter, three The Various types of data of phase table, harvester and concentrator;Test system high flexible is extendible;Method of testing is divided into load record function Test and error-logic speculate method Reliability Synthesis experimental program and two parts of testing procedure: described load record functional test And error-logic speculates that method Reliability Synthesis experimental program is as follows: functional test: setting load record pattern-word is set to entirely open Move each data item, load record initial time is set to current time, time interval is set to 1 minute, allow ammeter everywhere in Extreme operating condition, modification ammeter clock is so that ammeter produces the measuring point of user's technical conditions defined within the shortest time Number, then copy reading load record data, the integrity of detection ammeter keeping records data;Error-logic speculates method test: setting Load record pattern-word is set to illegal parameter, sees ammeter reaction and the function of realizing;Load record initial time is set to non- The method time, time interval is deliberately set smaller than minimum interval;1st ~ 6 type load intra-record slack byte set of time illegal value; In above-mentioned load record pattern-word, load record initial time, 1 ~ 2 data setting is normal, and other settings are illogical, the 1st ~ 6 type load intra-record slack byte times and load record initial time are normally arranged;Described testing procedure is as follows: the first step: by scheme Description design testing scheme, writes described testing scheme using python language;Second step: detection ammeter error;3rd Step, surveyed electric energy meter is arranged on and has good luck on testing stand;4th step: start single three-phase drop test platform;5th step, writing Testing scheme import to software library, open python intelligent meter automatization test system;5th step: enter automatic testing software After select ammeter to be detected;6th step: start test it is ensured that scheme normally runs several cycles;7th step: after test terminates, Preserve test data and do preliminary analyses.
CN201410316788.7A 2014-07-04 2014-07-04 Automatic gauge test platform and method based on Python script Active CN104090259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410316788.7A CN104090259B (en) 2014-07-04 2014-07-04 Automatic gauge test platform and method based on Python script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410316788.7A CN104090259B (en) 2014-07-04 2014-07-04 Automatic gauge test platform and method based on Python script

Publications (2)

Publication Number Publication Date
CN104090259A CN104090259A (en) 2014-10-08
CN104090259B true CN104090259B (en) 2017-02-01

Family

ID=51637990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410316788.7A Active CN104090259B (en) 2014-07-04 2014-07-04 Automatic gauge test platform and method based on Python script

Country Status (1)

Country Link
CN (1) CN104090259B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104237838B (en) * 2014-10-27 2017-10-10 宁波三星智能电气有限公司 A kind of meter operating voltage falls automatically testing platform and Voltage Drop mode
CN104486561A (en) * 2014-12-26 2015-04-01 广东威创视讯科技股份有限公司 Matrix control system based on Python
CN105319527B (en) * 2015-11-23 2019-03-22 中国电力科学研究院 A kind of electric energy meter load record test method
CN105467355A (en) * 2015-12-28 2016-04-06 深圳市科陆电子科技股份有限公司 Automatic testing method of electric energy meter and automatic testing device of same
CN106093834A (en) * 2016-06-06 2016-11-09 宁波三星医疗电气股份有限公司 A kind of Stress superposition test platform based on table
CN108072855B (en) * 2016-11-16 2020-12-08 通号(北京)轨道工业集团有限公司 Testing device and testing system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231320B (en) * 2008-01-31 2010-06-09 湖北省电力试验研究院 Undervoltage meter system detecting device based on virtual electric energy meter module
CN102521120B (en) * 2011-11-16 2014-11-12 中国民航信息网络股份有限公司 Software automation test system and method
CN103760511A (en) * 2014-01-26 2014-04-30 国家电网公司 Full-automatic test system for multiple voltage monitors

Also Published As

Publication number Publication date
CN104090259A (en) 2014-10-08

Similar Documents

Publication Publication Date Title
CN104090259B (en) Automatic gauge test platform and method based on Python script
CN106597142B (en) A kind of automatic testing equipment of SVG power module
CN103439592B (en) A kind of intelligent substation site intelligent method of testing
CN203965613U (en) A kind of emulation test system of earth-fault indicator performance
CN105929278B (en) A kind of unsteady flow module high voltage test macro and method
WO2014153764A1 (en) Method and device for automatic test of relay protection function of intelligent substation
CN105629180A (en) Test method, test device and controller
CN104932479A (en) Automatic test method and system
CN103616660A (en) Power-down processing reliability test device and method for intelligent ammeters in interference environment
CN105824001B (en) Method and system for testing IEC61850 conformance of digital electric energy meter
CN103308808A (en) System and method for testing secondary device of intelligent substation automatically
CN106405286A (en) Electric energy quality monitoring device automatic test method and system
CN107479007A (en) A kind of power supply module test system and method
CN104793171A (en) Fault simulation based smart meter fault detection method
CN107247827A (en) Empty terminal model modeling and automatic connecting method based on machine learning
CN103713627A (en) Function node test system
CN202421365U (en) Reliability detecting device of miniature fuse used for nuclear power station
CN105425201A (en) Metering chip simulation test method used for intelligent electric energy meter software reliability detection
CN103344850A (en) System and method of intelligent substation automatic testing based on test formwork technology
CN203054133U (en) Intelligent test system of intelligent protection and measuring control device
CN104020376A (en) Three-remote automatic testing method for power distribution terminal
CN104237838B (en) A kind of meter operating voltage falls automatically testing platform and Voltage Drop mode
CN206696311U (en) The test system and test fixture of a kind of quick charger
CN202102312U (en) Portable light current AC signal testing arrangement
CN109490805A (en) A kind of portable fault detector detection device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: NINGBO SANXING INTELLIGENT ELECTRIC CO., LTD.

Free format text: FORMER OWNER: NINGBO SANXING ELECTRIC CO., LTD.

Effective date: 20150618

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150618

Address after: 315034 Ningbo, Jiangbei District, Zhejiang City, the town of Maple Bay Road, No. 16

Applicant after: Ningbo Samsung intelligent electric company limited

Address before: 315100 Zhejiang city of Ningbo province Jiangshan town Yinzhou District Mingguang Road No. 1166

Applicant before: Ningbo Sanxing Electric Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant