CN101556325A - Method for quickly verifying electric energy error - Google Patents
Method for quickly verifying electric energy error Download PDFInfo
- Publication number
- CN101556325A CN101556325A CNA2009103027024A CN200910302702A CN101556325A CN 101556325 A CN101556325 A CN 101556325A CN A2009103027024 A CNA2009103027024 A CN A2009103027024A CN 200910302702 A CN200910302702 A CN 200910302702A CN 101556325 A CN101556325 A CN 101556325A
- Authority
- CN
- China
- Prior art keywords
- electric energy
- timer
- pulse
- value
- full sized
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 210000001367 artery Anatomy 0.000 claims description 3
- 230000007423 decrease Effects 0.000 claims description 3
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 230000011218 segmentation Effects 0.000 claims description 3
- 210000003462 vein Anatomy 0.000 claims description 3
- 108010057186 Insulin Glargine Proteins 0.000 claims description 2
- COCFEDIXXNGUNL-RFKWWTKHSA-N Insulin glargine Chemical compound C([C@@H](C(=O)N[C@@H](CC(C)C)C(=O)N[C@H]1CSSC[C@H]2C(=O)N[C@H](C(=O)N[C@@H](CO)C(=O)N[C@H](C(=O)N[C@H](C(N[C@@H](CO)C(=O)N[C@@H](CC(C)C)C(=O)N[C@@H](CC=3C=CC(O)=CC=3)C(=O)N[C@@H](CCC(N)=O)C(=O)N[C@@H](CC(C)C)C(=O)N[C@@H](CCC(O)=O)C(=O)N[C@@H](CC(N)=O)C(=O)N[C@@H](CC=3C=CC(O)=CC=3)C(=O)N[C@@H](CSSC[C@H](NC(=O)[C@H](C(C)C)NC(=O)[C@H](CC(C)C)NC(=O)[C@H](CC=3C=CC(O)=CC=3)NC(=O)[C@H](CC(C)C)NC(=O)[C@H](C)NC(=O)[C@H](CCC(O)=O)NC(=O)[C@H](C(C)C)NC(=O)[C@H](CC(C)C)NC(=O)[C@H](CC=3NC=NC=3)NC(=O)[C@H](CO)NC(=O)CNC1=O)C(=O)NCC(=O)N[C@@H](CCC(O)=O)C(=O)N[C@@H](CCCNC(N)=N)C(=O)NCC(=O)N[C@@H](CC=1C=CC=CC=1)C(=O)N[C@@H](CC=1C=CC=CC=1)C(=O)N[C@@H](CC=1C=CC(O)=CC=1)C(=O)N[C@@H]([C@@H](C)O)C(=O)N1[C@@H](CCC1)C(=O)N[C@@H](CCCCN)C(=O)N[C@@H]([C@@H](C)O)C(=O)N[C@@H](CCCNC(N)=N)C(=O)N[C@@H](CCCNC(N)=N)C(O)=O)C(=O)NCC(O)=O)=O)CSSC[C@@H](C(N2)=O)NC(=O)[C@H](CCC(N)=O)NC(=O)[C@H](CCC(O)=O)NC(=O)[C@H](C(C)C)NC(=O)[C@@H](NC(=O)CN)[C@@H](C)CC)[C@@H](C)CC)[C@@H](C)O)NC(=O)[C@H](CCC(N)=O)NC(=O)[C@H](CC(N)=O)NC(=O)[C@@H](NC(=O)[C@@H](N)CC=1C=CC=CC=1)C(C)C)C1=CN=CN1 COCFEDIXXNGUNL-RFKWWTKHSA-N 0.000 claims description 2
- 229940060975 lantus Drugs 0.000 claims description 2
- 238000005259 measurement Methods 0.000 abstract description 4
- JEIPFZHSYJVQDO-UHFFFAOYSA-N ferric oxide Chemical compound O=[Fe]O[Fe]=O JEIPFZHSYJVQDO-UHFFFAOYSA-N 0.000 description 4
- 238000012360 testing method Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 1
Images
Abstract
The invention provides a method for quickly verifying the electric energy error; on the condition of not changing the original counting way, the method introduces a microprocessor timer interrupt as a time scale, refines the pulse width measurement accuracy of a standard pulse and a verified pulse, and leads the pulse which can originally remember the integer to be refined to be capable of remembering the decimal; when the clock frequency of the microprocessor timer is high enough, the resolution of the decimal can ensure enough electric energy calculation accuracy on the condition of a single verified pulse, thus achieving the purpose of quickly and accurately verifying the electric energy pulse and greatly improving the working efficiency.
Description
Technical field
The present invention relates to a kind of error calibration method, particularly about a kind of electric energy error calibration method.
Background technology
The various electric energy meter errors of single-phase and three-phase are examined and determine the umber of pulse relative method that all adopts at present, calculate the electric energy metering error of electric energy meter.Specifically be that the pulse number that tested electric energy meter need be examined and determine is set, the number that counting is set the time period internal standard pulse of number pulse in tested electric energy meter output is calculated the electric energy error of electric energy meter.Need guarantee enough full sized puless when using this method, its computing formula is as follows:
The umber of pulse of wherein surveying full sized pules is the full sized pules number in the actual measurement process, and theoretical umber of pulse is the number of the tested pulse equivalence of tested electric energy meter to full sized pules.Because the number of actual measurement pulse can be introduced measuring error, thus require the full sized pules of actual measurement abundant, many to the degree that does not influence error.
The method of digital counting is adopted in pulse in the present power test, i.e. pulsimeter one number is write down the number C0 of full sized pules, at first when tested step-by-step counting number reaches setting value, the number C1 of record standard pulse (C1-C0) is exactly the number of surveying pulse again.The mode of technology adopts microprocessor or hardware circuit, and this situation is owing to can only count an integer pulse, and the abundant full sized pules number of needs could be eliminated the error of introducing in the computation process or reduce the saltus step amount of each error.In order to guarantee that enough umber of pulses need extend the test duration, reduce user's testing efficiency in actual use.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides a kind of method for quickly verifying electric energy error efficiently.
The technical solution adopted for the present invention to solve the technical problems is: a kind of method for quickly verifying electric energy error is provided, and it may further comprise the steps: A receives standard electric energy impulse and tested electrical energy pulse respectively the external interrupt input port of the microprocessor of Error Calculation; B system start-up timer interrupts; When C took place when the external interrupt of standard electric energy impulse, interrupt service routine was noted the value of the timing register of the software count value of current timer and timer respectively; When D occurred when tested electric energy arteries and veins number, microprocessor can produce new external interrupt, and noted the value of the timing register of the count value of current timer and timer; When E took place when standard electric energy impulse next time, standard electric energy impulse service routine can be noted new timer parameter, determined when tested pulse occurs the ratio in full sized pules; F if arrived the calibrating number of setting, notes the value of the timing register of the count value of current timer and timer when tested electrical energy pulse takes place next time; G waits when new full sized pules Lantus, notes the value of the timing register of the count value of current timer and timer, thus when determining that tested pulse occurs in the ratio of full sized pules, draw the actual full sized pules number that has fraction part.
The scheme that the present invention solves further technical matters is: among the described step B, add one by the each interrupt counter of counter in timer interrupts, read this value and just know the number of times that interrupts generation.
The scheme that the present invention solves further technical matters is: the value of timing register adds up automatically or successively decreases regularly beginning back each system clock at microprocessor, overflows (accumulate mode) or zero clearing (mode of successively decreasing) timer when this value and interrupts and will take place.
The scheme that the present invention solves further technical matters is: among the described step C, the timer parameter when the external interrupt service routine of standard electric energy writes down nearest standard twice power interruptions is respectively T
Mark 0, T
Mark 1, T
Mark 1-T
Mark 0It is the width of standard electric energy impulse last time.
The scheme that the present invention solves further technical matters is: when wherein each standard power interruptions takes place, and T
Mark 1Value be saved in T
Mark 0, new timer parameter records T
Mark 1
The scheme that the present invention solves further technical matters is: in described step D, the value that tested electrical energy pulse interrupt service routine is noted the timing register of the software count value of current timer and timer respectively is saved in T
Survey 0
The scheme that the present invention solves further technical matters is: in described step e, standard electric energy impulse service routine can be noted new T
Mark 1, according to T
Survey 0Previous T
Mark 0With after once T
Mark 1, determine when tested pulse occurs ratio, i.e. fraction part X in full sized pules
0, X wherein
0=(T
Mark 1-T
Survey 0)/(T
Mark 1-T
Mark 0).
The scheme that the present invention solves further technical matters is: in described step F, tested electrical energy pulse service routine can be noted new T
Survey 01, according to T
Survey 01Previous T
Mark 00With after once T
Mark 01, can determine when tested pulse occurs ratio, i.e. fraction part X in full sized pules
1, X wherein
1=(T
Survey 01-T
Mark 00)/(T
Mark 01-T
Mark 00).
The scheme that the present invention solves further technical matters is: according to (T
Mark 00-T
Mark 1+ X
0+ X
1) draw actual full sized pules number.
The scheme that the present invention solves further technical matters is: the full sized pules number of described reality is based on the data after the segmentation of timing microprocessor device, is equivalent to full sized pules is amplified to the timer clock multiple.
Compared to prior art, enforcement provided by the invention with method for quickly verifying electric energy error by under the situation that does not change original counting mode, the timer of introducing microprocessor interrupts as markers, the pulse width measure precision of refinement full sized pules and tested pulse, make and to remember that originally refineing to of integer can remember decimal, when the clock frequency of timing microprocessor device is enough high, the resolution of decimal just can satisfy the enough electric energy computational accuracies of assurance under the situation of single tested pulse, realized carrying out fast and accurately the check of electrical energy pulse, increased work efficiency greatly.
Description of drawings
Fig. 1 is the structure principle chart that is adopted of the method for quickly verifying electric energy error that provides of the invention process;
Fig. 2 is the principle schematic of the method for quickly verifying electric energy error that provides of the invention process.
Embodiment
As Fig. 1 and shown in Figure 2, the invention provides a kind of method for quickly verifying electric energy error, by under the situation that does not change original counting mode, the timer of introducing microprocessor interrupts as markers, the pulse width measure precision of refinement full sized pules and tested pulse, make and can only remember that originally refineing to of integer can remember decimal, when the clock frequency of timing microprocessor device was enough high, the resolution of decimal just can satisfy the enough electric energy computational accuracies of assurance under the situation of single tested pulse.
Concrete steps are as follows:
1. standard electric energy impulse and tested electrical energy pulse are received the external interrupt input port of the microprocessor of Error Calculation respectively.
2. the system start-up timer interrupts.In timer interrupts, there is the each interrupt counter of software counter to add one, reads this value and just can know the number of times that interrupts generation.
3. when the external interrupt of standard electric energy impulse takes place, interrupt service routine is noted the value (this value adds up automatically or successively decreases regularly beginning back each system clock at microprocessor, overflows (accumulate mode) or zero clearing (mode of successively decreasing) timer when this value and interrupts and will take place) of the timing register of the software count value of current timer and timer respectively.Timer parameter when the external interrupt service routine of standard electric energy writes down nearest standard twice power interruptions is respectively T
Mark 0, T
Mark 1, T
Mark 1-T
Mark 0It is the width of standard electric energy impulse last time.When wherein each standard power interruptions takes place, T
Mark 1Value be saved in T
Mark 0, new timer parameter records T
Mark 1
4. when tested electric energy arteries and veins number occurred, microprocessor can produce new external interrupt--and-tested electrical energy pulse interrupts.The value that tested electrical energy pulse interrupt service routine is noted the timing register of the software count value of current timer and timer respectively is saved in T
Survey 0
5. when standard electric energy impulse next time took place, standard electric energy impulse service routine can be noted new T
Mark 1, according to T
Survey 0Previous T
Mark 0With after once T
Mark 1, can determine when tested pulse occurs ratio, i.e. fraction part X in full sized pules
0(X
0=(T
Mark 1-T
Survey 0)/(T
Mark 1-T
Mark 0)).
6. when tested electrical energy pulse takes place next time, system judges whether the calibrating number set if do not arrive, to withdraw from interrupt service routine, if arrived the calibrating number of setting, tested electrical energy pulse service routine can be noted new T
Survey 01, according to T
Survey 01Previous T
Mark 00With after once T
Mark 01, can determine when tested pulse occurs ratio, i.e. fraction part X in full sized pules
1(X
1=(T
Survey 01-T
Mark 00)/(T
Mark 01-T
Mark 00)).
According to (T
Mark 00-T
Mark 1+ X
0+ X
1) just can accurately calculate actual full sized pules number, its precision depends on the clock frequency that the timing microprocessor device interrupts.The full sized pules number of described reality is based on the data after the segmentation of timing microprocessor device, is equivalent to full sized pules is amplified to the timer clock multiple.
Enforcement provided by the invention with method for quickly verifying electric energy error by under the situation that does not change original counting mode, the timer of introducing microprocessor interrupts as markers, the pulse width measure precision of refinement full sized pules and tested pulse, make and to remember that originally refineing to of integer can remember decimal, when the clock frequency of timing microprocessor device is enough high, the resolution of decimal just can satisfy the enough electric energy computational accuracies of assurance under the situation of single tested pulse, realized carrying out fast and accurately the check of electrical energy pulse, increased work efficiency greatly.
Claims (10)
1. method for quickly verifying electric energy error, it may further comprise the steps: A receives standard electric energy impulse and tested electrical energy pulse respectively the external interrupt input port of the microprocessor of Error Calculation; B system start-up timer interrupts; When C took place when the external interrupt of standard electric energy impulse, interrupt service routine was noted the value of the timing register of the software count value of current timer and timer respectively; When D occurred when tested electric energy arteries and veins number, microprocessor can produce new external interrupt, and noted the value of the timing register of the count value of current timer and timer; When E took place when standard electric energy impulse next time, standard electric energy impulse service routine can be noted new timer parameter, determined when tested pulse occurs the ratio in full sized pules; F if arrived the calibrating number of setting, notes the value of the timing register of the count value of current timer and timer when tested electrical energy pulse takes place next time; G waits when new full sized pules Lantus, notes the value of the timing register of the count value of current timer and timer, thus when determining that tested pulse occurs in the ratio of full sized pules, draw the actual full sized pules number that has fraction part.
2. method for quickly verifying electric energy error according to claim 1 is characterized in that: among the described step B, add one by the each interrupt counter of counter in timer interrupts, read this value and just know the number of times that interrupts generation.
3. method for quickly verifying electric energy error according to claim 2, it is characterized in that: the value of timing register adds up automatically or successively decreases regularly beginning back each system clock at microprocessor, overflows (accumulate mode) or zero clearing (mode of successively decreasing) timer when this value and interrupts and will take place.
4. method for quickly verifying electric energy error according to claim 3, it is characterized in that: among the described step C, the timer parameter when the external interrupt service routine of standard electric energy writes down twice nearest interruption is respectively T0, T1, T1-T0 are the width of standard electric energy impulse last time.
5. method for quickly verifying electric energy error according to claim 4 is characterized in that: when wherein each standard power interruptions took place, the value of T1 was saved in T0, and new timer parameter records T1.
6. method for quickly verifying electric energy error according to claim 5, it is characterized in that: in described step D, the value that tested electrical energy pulse interrupt service routine is noted the timing register of the software count value of current timer and timer respectively is saved in T0.
7. method for quickly verifying electric energy error according to claim 6, it is characterized in that: in described step e, standard electric energy impulse service routine can be noted new T1, according to the previous T0 of T0 and after once T1, determine when tested pulse occurs ratio in full sized pules, be fraction part X0, X0=(T1-T0)/(T1-T0) wherein.
8. method for quickly verifying electric energy error according to claim 7, it is characterized in that: in described step F, tested electrical energy pulse service routine can be noted new T01, according to the previous T00 of T01 and after once T01, can determine when tested pulse occurs ratio in full sized pules, be fraction part X1, X1=(T01-T00)/(T01-T00) wherein.
9. method for quickly verifying electric energy error according to claim 8 is characterized in that: draw actual full sized pules number according to (T00-T1+X0+X1).
10. method for quickly verifying electric energy error according to claim 9 is characterized in that: the full sized pules number of described reality is based on the data after the segmentation of timing microprocessor device, is equivalent to full sized pules is amplified to the timer clock multiple.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103027024A CN101556325B (en) | 2009-05-27 | 2009-05-27 | Method for quickly verifying electric energy error |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009103027024A CN101556325B (en) | 2009-05-27 | 2009-05-27 | Method for quickly verifying electric energy error |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101556325A true CN101556325A (en) | 2009-10-14 |
CN101556325B CN101556325B (en) | 2011-09-14 |
Family
ID=41174515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009103027024A Expired - Fee Related CN101556325B (en) | 2009-05-27 | 2009-05-27 | Method for quickly verifying electric energy error |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101556325B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104198979A (en) * | 2014-08-29 | 2014-12-10 | 国家电网公司 | Real-time comparison method for measuring running errors of broadband electric energy meters |
CN104569579A (en) * | 2014-12-30 | 2015-04-29 | 深圳市科陆电子科技股份有限公司 | Electric energy error detection method based on wireless network and error detection systems |
CN105223534A (en) * | 2015-09-08 | 2016-01-06 | 国家电网公司 | A kind of digitalized electrical energy meter error-tested method based on frequency error of measurement method |
CN105718257A (en) * | 2016-01-13 | 2016-06-29 | 上海理工大学 | Embedded system-based timer device and timing method |
CN113189534A (en) * | 2021-04-29 | 2021-07-30 | 宁波三星医疗电气股份有限公司 | Electric energy meter error detection method, readable storage medium and electronic device |
CN114236455A (en) * | 2021-11-10 | 2022-03-25 | 云南电网有限责任公司 | Error calculation device and method for electric energy meter verification for processing missing pulse |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2577049B1 (en) * | 1985-02-05 | 1987-02-27 | Peugeot | DEVICE FOR COMPARING THE DURATIONS OF TWO SLOTS |
CN2431572Y (en) * | 2000-06-20 | 2001-05-23 | 海盐凯恩特电器有限公司 | Pulse arbiter for testing pulse electric energy meter |
CN101140320B (en) * | 2006-09-07 | 2010-05-26 | 深圳市科陆电子科技股份有限公司 | Electrical energy meter calibration stand and checking method thereof |
-
2009
- 2009-05-27 CN CN2009103027024A patent/CN101556325B/en not_active Expired - Fee Related
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104198979A (en) * | 2014-08-29 | 2014-12-10 | 国家电网公司 | Real-time comparison method for measuring running errors of broadband electric energy meters |
CN104198979B (en) * | 2014-08-29 | 2017-08-08 | 国家电网公司 | A kind of real-time comparison method that kinematic error is measured for wideband electric energy meter |
CN104569579A (en) * | 2014-12-30 | 2015-04-29 | 深圳市科陆电子科技股份有限公司 | Electric energy error detection method based on wireless network and error detection systems |
CN104569579B (en) * | 2014-12-30 | 2017-11-28 | 深圳市科陆电子科技股份有限公司 | Electric energy error detection method and error detecting system based on wireless network |
CN105223534A (en) * | 2015-09-08 | 2016-01-06 | 国家电网公司 | A kind of digitalized electrical energy meter error-tested method based on frequency error of measurement method |
CN105718257A (en) * | 2016-01-13 | 2016-06-29 | 上海理工大学 | Embedded system-based timer device and timing method |
CN105718257B (en) * | 2016-01-13 | 2018-12-25 | 上海理工大学 | Timer arrangement and timing method based on embedded system |
CN113189534A (en) * | 2021-04-29 | 2021-07-30 | 宁波三星医疗电气股份有限公司 | Electric energy meter error detection method, readable storage medium and electronic device |
CN113189534B (en) * | 2021-04-29 | 2022-04-26 | 宁波三星医疗电气股份有限公司 | Electric energy meter error detection method, readable storage medium and electronic device |
CN114236455A (en) * | 2021-11-10 | 2022-03-25 | 云南电网有限责任公司 | Error calculation device and method for electric energy meter verification for processing missing pulse |
CN114236455B (en) * | 2021-11-10 | 2023-09-15 | 云南电网有限责任公司 | Error calculation device and method for electric energy meter verification for processing missing pulse |
Also Published As
Publication number | Publication date |
---|---|
CN101556325B (en) | 2011-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101556325B (en) | Method for quickly verifying electric energy error | |
CN100468060C (en) | Equal observations method and measuring device of rotary table rate | |
CN102565673B (en) | Highly-reliable pulse counting test system based on FPGA (Field Programmable Gate Array) | |
CN106681126B (en) | A kind of time-to-digit converter and its apparatus and method that calibrate for error | |
CN113092858B (en) | High-precision frequency scale comparison system and comparison method based on time-frequency information measurement | |
CN216748451U (en) | High-precision time service precision measurement system | |
CN102998970B (en) | High-precision time hack synchronizing method based on CRIO platform | |
CN103837741A (en) | Equal-precision frequency testing system based on FPGA and design method thereof | |
CN102928677A (en) | Nano pulse signal acquiring method | |
CN103941622A (en) | Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA | |
CN102879641A (en) | Frequency measurement method and system | |
CN106645780B (en) | DSP-based rotating speed detection method and system | |
CN103119453A (en) | Digital frequency estimation based on quadratic forms | |
CN103155476B (en) | Fixed frequency analog digital conversion is used to quantify the input sampled by interpolation | |
CN106527099B (en) | A kind of time-to-digit converter and its time measuring circuit and method | |
CN203858351U (en) | High-precision detection device of magnetic resonance signal of cesium optical pump | |
CN102928805B (en) | Multi-epitope digitalized electrical energy meter tester | |
CN103135650A (en) | Current/frequency conversion circuit linearity and symmetry digital compensation method | |
TW201303532A (en) | Method and system for measuring time | |
CN203950131U (en) | A kind of high precision time interval measurement device based on FPGA | |
CN113533848A (en) | Method and device for measuring digital signal | |
CN203929885U (en) | Based on FPGA etc. precision frequency testing system | |
CN100353172C (en) | Group delay test method and device thereof | |
CN201107355Y (en) | Time synchronization error measuring circuit based on CPLD technology | |
EP3479176B1 (en) | Signal processing apparatus and method, and electronic device comprising the apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110914 Termination date: 20210527 |