CN105652082A - High-precision electric signal frequency measurement method and device - Google Patents

High-precision electric signal frequency measurement method and device Download PDF

Info

Publication number
CN105652082A
CN105652082A CN201511027256.2A CN201511027256A CN105652082A CN 105652082 A CN105652082 A CN 105652082A CN 201511027256 A CN201511027256 A CN 201511027256A CN 105652082 A CN105652082 A CN 105652082A
Authority
CN
China
Prior art keywords
point
sampling
electrical signal
interpolation
draw
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
Application number
CN201511027256.2A
Other languages
Chinese (zh)
Other versions
CN105652082B (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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou Electronics 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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CN201511027256.2A priority Critical patent/CN105652082B/en
Publication of CN105652082A publication Critical patent/CN105652082A/en
Application granted granted Critical
Publication of CN105652082B publication Critical patent/CN105652082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R23/00Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
    • G01R23/02Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

The invention discloses a high-precision electric signal frequency measurement method. The high-precision electric signal frequency measurement method comprises the following steps: S1, acquiring an electric signal to be measured; S2, obtaining a sampling point number of an integer part of the electric signal in a zero crossing point manner; S3, carrying out linear interpolation on a zero crossing point part to obtain a complete electric signal after interpolation, and obtaining a decimal point part of the sampling point number after the interpolation by adopting a linear interpolation formula; and S4, overlapping the sampling point number of the decimal point part and a sampling point of the integer part so as to obtain a total sampling point number, and dividing a sampling frequency by the total sampling point number to obtain a needed frequency value of the electric signal. The invention further provides a high-precision electric signal frequency measurement device.

Description

High precision electrical signal frequency measurement method and device thereof
[technical field]
The present invention relates to electric-power metering field, in particular to a kind of high precision electrical signal frequency measurement method and device thereof.
[background technology]
Electric-power metering and calibrating installation are the metering outfits of current intelligent grid, error in dipping is the important parameter of measuring apparatus assessment of performance, and the key parameter that frequency is measured as it, therefore improve the precision of frequency measurement, the control of error is played a part most important. Along with the progress of science and technology, the accuracy requirement of equipment is more and more higher, frequency measurement is as one of measurement the most basic in electronic measurement technology, it is to increase frequency measurement accuracy is the prerequisite of amplitude, the raising of phase calculation equally accurate.
In current frequency measurement method, mainly counting process, cycle test method, least absolute value are similar to the method such as algorithm and newton's algorithm. Simply, easily realize, but the error of the data recorded is relatively big for the method for counting process and cycle test method, and the occasion high for accuracy requirement is not suitable for, and least absolute value algorithm that is approximate and newton's algorithm is complicated, not easily understand, calculated amount is big.
[summary of the invention]
The present invention provides a kind of high precision electrical signal frequency measurement method and device, it is possible to effectively solve the problem.
A kind of high precision electrical signal frequency measurement method, comprises the following steps:
S1, obtains electrical signal to be measured;
S2, draws the sampling number of its integral part to electrical signal with zero passage point mode;
S3, cross zero point place carry out linear interpolation draw described interpolation after complete telecommunications number, adopt linear interpolation formula draw the radix point part that described interpolation post-sampling is counted;
S4, mantissa sampling number superposes with integral part sampling point, thus draws total sampling number, and sample frequency draws the frequency values of required electrical signal divided by total sampling number.
Further, draw, by crossing the method for zero point, the integral part that described interpolation post-sampling is counted.
Further, adopt frequency compensation to show that the step of the radix point part that described interpolation post-sampling is counted comprises:
S31, chooses a cycle f1In two of same direction cross zero points, and define a front front and back one moment sampling point crossing zero point place and be respectively f0(n) and f1(0), cycle f1The sampling point in a rear front and back moment crossing zero point place is respectively f2And f (0)1(n), f1And f (0)0N the distance between () is temp1, f1(0) and between time axle is temp2, f2And f (0)1N the distance between () is temp3, f2(0) and between time axle is temp4;And
S32, the decimal modified value obtaining starting point correct is temp2/temp1, and the mantissa of the unnecessary part in terminating point place is temp4/temp3, and obtains described radix point part according to formula temp2/temp1-temp4/temp3.
A kind of high precision electrical signal frequency measuring equipment, comprising:
Signal gathering unit, for the multiple pulse signals obtained in unit time interval T;
Data processing unit, for the mistake zero point place of each pulse signal is carried out linear interpolation arithmetic, obtains complete telecommunications number after multiple interpolation;
Calculate unit, for drawing the integral part of sampling number in described interpolation afterpulse signal by crossing the method for zero point;
Compensating unit, for adopting frequency compensation to draw the radix point part of sampling number in described interpolation afterpulse signal, and the described integral part that is added to, thus draw frequency values.
High precision electrical signal frequency measurement method provided by the invention and device, by to linearly interpolation processing, to set up complete signal, recycling counting process or cycle test method calculate sampling number roughly and frequency, finally frequency is compensated calculating to improve its precision, obtain high precision frequency values such that it is able to final. In addition, this scheme is in maintenance implementation method simply basis, whole scheme uses simple Measuring Frequency Method is compensated the frequency values obtaining high precision, exploitation and the difficulty safeguarded are little, the complicated calculations that need not be carried out by big data quantity, well solves the calculation of complex of complicated algorithm, measures the problems such as precision that is big and simple algorithm is not high.
[accompanying drawing explanation]
The functional block diagram of the high precision electrical signal frequency measurement method that Fig. 1 provides for the embodiment of the present invention.
Fig. 2 is the schematic diagram of linear interpolation method.
The high precision electrical signal frequency measurement method that Fig. 3 provides for the embodiment of the present invention adopt frequency compensation to draw the schematic diagram of the radix point part of sampling number in described interpolation afterpulse signal.
[embodiment]
Below in conjunction with drawings and Examples, the present invention is described in further detail. It should be appreciated that specific embodiment described herein is only for explaining the present invention, but not limitation of the invention. It also should be noted that, for convenience of description, accompanying drawing illustrate only part related to the present invention and not all structure.
Please refer to Fig. 1, the embodiment of the present invention provides a kind of high precision electrical signal frequency measurement method, comprising:
S1, obtains electrical signal to be measured;
S2, draws the sampling number of its integral part to electrical signal with zero passage point mode;
S3, cross zero point place carry out linear interpolation draw described interpolation after complete telecommunications number, adopt linear interpolation formula draw the radix point part that described interpolation post-sampling is counted;
S4, mantissa sampling number superposes with integral part sampling point, thus draws total sampling number, and sample frequency draws the frequency values of required electrical signal divided by total sampling number.
In step s3, for the pulse signal fed, integral part tolerance range above is passable, so mainly carrying out interpolation in mantissa, to obtain higher precision. Often taking Interpolate estimation method to draw complete signal or be convenient to the signal of calculating needed for us, linear interpolation method is simple, meaning is clear and definite, be convenient to grasp and use. Please refer to Fig. 2, Fig. 2 is the schematic diagram of linear interpolation method. It is assumed that coordinate (x0, y0) and (x1, y1), interval [x will be obtained0, x1] in the y value of a certain position x on straight line, it is possible to obtain formula (y-y0)(x1-x0)=(y1-y0)(x-x0), it is assumed that equation two boundary values is ��, and so this value is exactly that difference coefficient is from x0To the distance of x and from x1To x0Ratio.Owing to x value is known, so obtain the value ��=(x-x of �� from formula0)/(x1-x0), equally, ��=(y-y0)/(y1-y0), like this, algebraically just can be expressed as: y=(1-��) y0+��y1Or y=y0+��(y1-y0)
Please refer to Fig. 3, adopt frequency compensation to show that the step of the radix point part of sampling number in described interpolation afterpulse signal comprises:
S31, chooses a cycle f1In two of same direction cross zero points, and to define front ripple week be f0, rear ripple week is f2, ripple week f0The point crossing zero point place is f0(n), ripple week f1The point crossing zero point place is respectively f1And f (0)1(n), ripple week f2The point crossing zero point place is f2(0), f1And f (0)0N the distance between () is temp1, f1(0) and between time axle is temp2, f2And f (0)1N the distance between () is temp3, f2(0) and between time axle is temp4; And
S32, the decimal modified value obtaining starting point correct is temp2/temp1, and the mantissa of the unnecessary part in terminating point place is temp4/temp3, and obtains described radix point part according to formula temp2/temp1-temp4/temp3.
The embodiment of the present invention also provides a kind of high precision electrical signal frequency measuring equipment, comprising:
Signal gathering unit, for the multiple pulse signals obtained in unit time interval T;
Data processing unit, for the mistake zero point place of each pulse signal is carried out linear interpolation arithmetic, obtains complete telecommunications number after multiple interpolation;
Calculate unit, for drawing the integral part of sampling number in described interpolation afterpulse signal by crossing the method for zero point; And
Compensating unit, for adopting frequency compensation to draw the radix point part of sampling number in described interpolation afterpulse signal, and the described integral part that is added to, thus draw frequency values.
Note, above are only the better embodiment of the present invention and institute's application technology principle. It is understood by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and protection scope of the present invention can not be departed from. Therefore, although being described in further detail invention has been by above embodiment, but the present invention is not limited only to above embodiment, when not departing from present inventive concept, other equivalence embodiments more can also be comprised, and the scope of the present invention is determined by appended right.

Claims (6)

1. a high precision electrical signal frequency measurement method, it is characterised in that, comprise the following steps:
S1, obtains electrical signal to be measured;
S2, draws the sampling number of its integral part to electrical signal with zero passage point mode;
S3, cross zero point place carry out linear interpolation draw described interpolation after complete telecommunications number, adopt linear interpolation formula draw the radix point part that described interpolation post-sampling is counted;
S4, mantissa sampling number superposes with integral part sampling point, thus draws total sampling number, and sample frequency draws the frequency values of required electrical signal divided by total sampling number.
2. high precision electrical signal frequency measurement method according to claim 1, it is characterised in that, draw, by crossing the method for zero point, the integral part that described interpolation post-sampling is counted.
3. high precision electrical signal frequency measurement method according to claim 1, it is characterised in that, adopt frequency compensation to draw and comprise the radix point part that described interpolation post-sampling is counted:
S31, chooses a cycle f1In two of same direction cross zero points, and define a front front and back one moment sampling point crossing zero point place and be respectively f0(n) and f1(0), cycle f1The sampling point in a rear front and back moment crossing zero point place is respectively f2And f (0)1(n), f1And f (0)0N the distance between () is temp1, f1(0) and between time axle is temp2, f2And f (0)1N the distance between () is temp3, f2(0) and between time axle is temp4;And
S32, the decimal modified value obtaining starting point correct is temp2/temp1, and the mantissa of the unnecessary part in terminating point place is temp4/temp3, and obtains described radix point part according to formula temp2/temp1-temp4/temp3.
4. a high precision electrical signal frequency measuring equipment, it is characterised in that, comprising:
Signal gathering unit, for obtaining electrical signal;
Data processing unit, for the mistake zero point place of electrical signal is carried out linear interpolation arithmetic, obtains complete telecommunications number after multiple interpolation;
Calculate unit, for drawing the integral part of sampling number in described interpolation afterpulse signal by crossing the method for zero point;
Compensating unit, for adopting frequency compensation to draw the radix point part of sampling number in described interpolation afterpulse signal, and the described integral part that is added to, thus draw frequency values.
5. high precision electrical signal frequency measuring equipment according to claim 5, it is characterised in that, the described method by crossing zero point draws the integral part of sampling number in after described interpolation.
6. high precision electrical signal frequency measuring equipment according to claim 5, it is characterised in that, adopt frequency compensation to draw the radix point part of sampling number in described interpolation afterpulse signal, comprising:
Choose a cycle f1In two of same direction cross zero points, and define a front front and back one moment sampling point crossing zero point place and be respectively f0(n) and f1(0), cycle f1The sampling point in a rear front and back moment crossing zero point place is respectively f2And f (0)1(n), f1And f (0)0N the distance between () is temp1, f1(0) and between time axle is temp2, f2And f (0)1N the distance between () is temp3, f2(0) and between time axle is temp4;
The decimal modified value obtaining starting point correct is temp2/temp1, and the mantissa of the unnecessary part in terminating point place is temp4/temp3, and obtains described radix point part according to formula temp2/temp1-temp4/temp3.
CN201511027256.2A 2015-12-30 2015-12-30 High precision electro signal frequency measurement method and its device Active CN105652082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511027256.2A CN105652082B (en) 2015-12-30 2015-12-30 High precision electro signal frequency measurement method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511027256.2A CN105652082B (en) 2015-12-30 2015-12-30 High precision electro signal frequency measurement method and its device

Publications (2)

Publication Number Publication Date
CN105652082A true CN105652082A (en) 2016-06-08
CN105652082B CN105652082B (en) 2019-06-11

Family

ID=56490129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511027256.2A Active CN105652082B (en) 2015-12-30 2015-12-30 High precision electro signal frequency measurement method and its device

Country Status (1)

Country Link
CN (1) CN105652082B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719043A (en) * 2019-11-21 2020-01-21 深圳国能电气有限公司 Inverter harmonic compensation method and control device thereof
CN116908537A (en) * 2023-09-13 2023-10-20 西安西电高压开关有限责任公司 Current voltage frequency calculation circuit and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10203683C1 (en) * 2002-01-24 2003-08-21 Siemens Ag Electrical signal measuring parameter extraction method with sampling rate for providing sampled signal values matched to momentary signal frequency
CN101871965B (en) * 2010-06-11 2012-01-04 威胜集团有限公司 Method for detecting zero crossing time, frequency and phase difference of power sinusoidal signals
CN102608415B (en) * 2012-02-10 2015-06-17 南京弘毅电气自动化有限公司 Software frequency tracking algorithm on basis of weighted double fitting
CN102809687B (en) * 2012-07-26 2015-01-28 南京邮电大学 Digital measurement method for alternating-current frequency
CN102879639A (en) * 2012-09-13 2013-01-16 华中科技大学 Real-time frequency measuring method in power system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719043A (en) * 2019-11-21 2020-01-21 深圳国能电气有限公司 Inverter harmonic compensation method and control device thereof
CN110719043B (en) * 2019-11-21 2021-02-05 深圳国能电气有限公司 Inverter harmonic compensation method and control device thereof
CN116908537A (en) * 2023-09-13 2023-10-20 西安西电高压开关有限责任公司 Current voltage frequency calculation circuit and method
CN116908537B (en) * 2023-09-13 2023-12-19 西安西电高压开关有限责任公司 Current voltage frequency calculation circuit and method

Also Published As

Publication number Publication date
CN105652082B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
KR101610473B1 (en) Apparatus and method for compensating for position error of resolver
CN103235189B (en) A kind of micro-resistance high-precision measuring method based on double-current voltage ratio method and realize the measuring system of the method
CN102879639A (en) Real-time frequency measuring method in power system
CN108089141B (en) Error correction method and device of current measuring device based on current divider
CN105527501B (en) A kind of micro capacitance method
CN103743427B (en) A kind of linear gauging method
CN104833937B (en) A kind of harmonic measure channel calibration method based on the high-precision Cosine Window interpolated FFT algorithms of MIR RSD
CN102096057B (en) Calibration method and device of capacitance measurement circuit
CN204101635U (en) A kind of microresistivity survey instrument and electronic product process units
CN104330623B (en) Sine wave parameter measuring method and system in electric power system
CN108196217B (en) Direct current metering method and system for off-board charger current calibration instrument
CN103604523B (en) A kind of thermocouple temperature display
CN110865238B (en) Alternating current resistance measurement method and device based on quasi-harmonic model sampling algorithm
CN106063132A (en) On-chip analog-to-digital converter (adc) linearity test for embedded devices
CN105652082A (en) High-precision electric signal frequency measurement method and device
CN104330096B (en) A kind of rectification building-out of measurement signal and the method and device of automatic Calibration
CN101738593A (en) Standard energy meter and correcting method of sampled signals thereof
CN106291034B (en) It can self-calibrating resistance divider
KR101335162B1 (en) Position aberration correction device and method for resolver
CN109597016A (en) Metering device and its calibration method and ammeter
CN105571666A (en) Flow compensation method, compensation device and flow sensor
CN104932340A (en) Multi-machine parallel connection system and current totaling method
CN104330644A (en) Method and system for detecting amplitude value of sine wave signal in power system
CN105571590B (en) A kind of fusion compensation method
CN107862113B (en) Timeliness error compensating method of the grating dynamic measurement in variable motion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant