CN105652082B - High precision electro signal frequency measurement method and its device - Google Patents

High precision electro signal frequency measurement method and its device Download PDF

Info

Publication number
CN105652082B
CN105652082B CN201511027256.2A CN201511027256A CN105652082B CN 105652082 B CN105652082 B CN 105652082B CN 201511027256 A CN201511027256 A CN 201511027256A CN 105652082 B CN105652082 B CN 105652082B
Authority
CN
China
Prior art keywords
interpolation
sampling number
signal
obtains
point
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
CN201511027256.2A
Other languages
Chinese (zh)
Other versions
CN105652082A (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 present invention discloses a kind of high precision electro signal frequency measurement method, comprising: S1 obtains electric signal to be measured;S2 obtains the sampling number of its integer part to electric signal with zero passage point mode;S3 carries out the complete telecommunications number after linear interpolation obtains the interpolation at zero crossing, and the decimal point part of the interpolation post-sampling points is obtained using linear interpolation formula;S4, fractional part sampling number are overlapped with integer part sampled point, to obtain total sampling number, sample frequency is shown to the frequency values of required electric signal divided by total sampling number.The present invention also provides a kind of high precision electro signal frequency measuring devices.

Description

High precision electro signal frequency measurement method and its device
[technical field]
The present invention relates to electric-power metering field, in particular to a kind of high precision electro signal frequency measurement method and its device.
[background technique]
Electric-power metering and calibrating installation are the measuring equipments of current smart grid, and measurement error is metering device assessment of performance Important parameter, and key parameter of the frequency as its measurement, therefore improve the precision of frequency measurement play the control of error Vital effect.With the development of science and technology the required precision to equipment is higher and higher, frequency measurement is as electronic surveying Most basic one of measurement in technology improves the premise that frequency measurement accuracy is amplitude, the raising of phase calculation equally accurate.
At present in frequency measurement method, mainly counting method, cycle test method, least absolute value approximate algorithm and Newton's algorithm etc. Method.Counting method and the method for cycle test method be simple, Yi Shixian, but the error of the data measured is larger, high for required precision Occasion is simultaneously not suitable for, and the algorithm of least absolute value approximation and Newton's algorithm is not complicated, readily understood, computationally intensive.
[summary of the invention]
The present invention provides a kind of high precision electro signal frequency measurement method and device, can effectively solve the above problems.
A kind of high precision electro signal frequency measurement method, comprising the following steps:
S1 obtains electric signal to be measured;
S2 obtains the sampling number of its integer part to electric signal with zero passage point mode;
S3 carries out the complete telecommunications number after linear interpolation obtains the interpolation, using linear interpolation formula at zero crossing Obtain the decimal point part of the interpolation post-sampling points;
S4, fractional part sampling number are overlapped with integer part sampled point, to obtain total sampling number, will be sampled Frequency obtains the frequency values of required electric signal divided by total sampling number.
Further, the integer part of the interpolation post-sampling points is obtained by the method for zero crossing.
Further, the step of obtaining the decimal point part of interpolation post-sampling points using frequency compensation include:
S31 chooses a cycle f1In the same direction two zero crossings, and define the front and back at previous zero crossing One moment sampled point is respectively f0(n) and f1(0), cycle f1The sampled point at the front and back moment at the latter zero crossing is respectively f2 (0) and f1(n), f1(0) and f0It the distance between (n) is temp1, f1It (0) is temp2, f between time shaft2(0) and f1 It the distance between (n) is temp3, f2It (0) is temp4 between time shaft;And
S32, obtaining the correct decimal correction value in starting point is redundance at temp2/temp1 and terminating point Fractional part is temp4/temp3, and obtains the decimal point part according to formula temp2/temp1-temp4/temp3.
A kind of high precision electro signal frequency measuring device, comprising:
Signal acquisition unit, for obtaining multiple pulse signals in the T of unit interval;
Data processing unit obtains multiple insert for carrying out linear interpolation arithmetic at the zero crossing to each pulse signal Complete telecommunications number after value;
Computing unit obtains the integer portion of sampling number in the interpolation afterpulse signal for the method by zero crossing Point;
Compensating unit, for obtaining the decimal point portion of sampling number in the interpolation afterpulse signal using frequency compensation Point, and the integer part that is added to, to obtain frequency values.
High precision electro signal frequency measurement method provided by the invention and device, by linearly interpolation processing, with Complete signal is established, recycles counting method or cycle test method to calculate rough hits and frequency, meter finally is compensated to frequency It calculates to improve its precision, so as to finally obtain high-precision frequency values.In addition, this programme is keeping the simple base of implementation method On plinth, using being compensated to simple Measuring Frequency Method to obtain high-precision frequency values, the difficulty of exploitation and maintenance in entire scheme It spends small, it is not necessary to which, to the complicated calculations that big data quantity carries out, the calculating of very good solution complicated algorithm is complicated, amount is big and simple calculates The problems such as precision of method is not high.
[Detailed description of the invention]
Fig. 1 is the functional block diagram of high precision electro signal frequency measurement method provided in an embodiment of the present invention.
Fig. 2 is the schematic diagram of linear interpolation method.
Fig. 3 is described to be obtained in high precision electro signal frequency measurement method provided in an embodiment of the present invention using frequency compensation The schematic diagram of the decimal point part of sampling number in interpolation afterpulse signal.
[specific embodiment]
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is please referred to, the embodiment of the present invention provides a kind of high precision electro signal frequency measurement method, comprising:
S1 obtains electric signal to be measured;
S2 obtains the sampling number of its integer part to electric signal with zero passage point mode;
S3 carries out the complete telecommunications number after linear interpolation obtains the interpolation, using linear interpolation formula at zero crossing Obtain the decimal point part of the interpolation post-sampling points;
S4, fractional part sampling number are overlapped with integer part sampled point, to obtain total sampling number, will be sampled Frequency obtains the frequency values of required electric signal divided by total sampling number.
In step s3, for the pulse signal fed, the integer part accuracy of front can be with so mainly exist Fractional part carries out interpolation, to obtain higher precision.Often take Interpolate estimation method obtain complete signal or we needed for just In the signal of calculating, linear interpolation method is simple, meaning is clear, convenient for grasp and use.Referring to figure 2., Fig. 2 is linear interpolation The schematic diagram of method.Assuming that known coordinate (x0, y0) and (x1, y1), to obtain section [x0, x1] in a certain position x on straight line Y value, available formula (y-y0)(x1-x0)=(y1-y0)(x-x0), it is assumed that two boundary values of equation is α, then this value is exactly Difference coefficient is from x0To x distance with from x1To x0Ratio.Due to x value it is known that so obtaining value α=(x- of α from formula x0)/(x1-x0), equally, α=(y-y0)/(y1-y0), in this way, can be expressed as on algebra: y=(1- α) y0+αy1Or y= y0+α(y1-y0)
Referring to figure 3., the decimal point part of sampling number in the interpolation afterpulse signal is obtained using frequency compensation Step includes:
S31 chooses a cycle f1In the same direction two zero crossings, and define previous wave week be f0, the latter Wave week is f2, wave week f0Point at zero crossing is f0(n), wave week f1Point at zero crossing is respectively f1(0) and f1(n), wave week f2 Point at zero crossing is f2(0), f1(0) and f0It the distance between (n) is temp1, f1It (0) is temp2, f between time shaft2 (0) and f1It the distance between (n) is temp3, f2It (0) is temp4 between time shaft;And
S32, obtaining the correct decimal correction value in starting point is redundance at temp2/temp1 and terminating point Fractional part is temp4/temp3, and obtains the decimal point part according to formula temp2/temp1-temp4/temp3.
The embodiment of the present invention also provides a kind of high precision electro signal frequency measuring device, comprising:
Signal acquisition unit, for obtaining multiple pulse signals in the T of unit interval;
Data processing unit obtains multiple insert for carrying out linear interpolation arithmetic at the zero crossing to each pulse signal Complete telecommunications number after value;
Computing unit obtains the integer portion of sampling number in the interpolation afterpulse signal for the method by zero crossing Point;And
Compensating unit, for obtaining the decimal point portion of sampling number in the interpolation afterpulse signal using frequency compensation Point, and the integer part that is added to, to obtain frequency values.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (4)

1. a kind of high precision electro signal frequency measurement method, which comprises the following steps:
S1 obtains electric signal to be measured;
S2 obtains the sampling number of its integer part to electric signal with zero passage point mode;
S3 is carried out the complete telecommunications number after linear interpolation obtains the interpolation at zero crossing, is obtained using linear interpolation formula The decimal point part of the interpolation post-sampling points;
The decimal point part of the interpolation post-sampling points is obtained using frequency compensation, comprising:
S31 chooses a cycle f1In the same direction two zero crossings, and define the front and back at previous zero crossing for the moment Carving sampled point is respectively f0(n) and f1(0), cycle f1The sampled point at the front and back moment at the latter zero crossing is respectively f1(n) and f2(0), f1(0) and f0It the distance between (n) is temp1, f1It (0) is temp2, f between time shaft2(0) and f1(n) between Distance be temp3, f2It (0) is temp4 between time shaft;And
S32 obtains the decimal that the correct decimal correction value in starting point is redundance at temp2/temp1 and terminating point Part is temp4/temp3, and obtains the decimal point part according to formula temp2/temp1-temp4/temp3;
S4, fractional part sampling number are overlapped with integer part sampled point, so that total sampling number is obtained, by sample frequency The frequency values of required electric signal are obtained divided by total sampling number.
2. high precision electro signal frequency measurement method according to claim 1, which is characterized in that pass through the method for zero crossing Obtain the integer part of the interpolation post-sampling points.
3. a kind of high precision electro signal frequency measuring device characterized by comprising
Signal acquisition unit, for obtaining electric signal;
Data processing unit obtains complete electricity after multiple interpolation for carrying out linear interpolation arithmetic at the zero crossing to electric signal Signal;
Computing unit obtains the integer part of sampling number in the interpolation afterpulse signal for the method by zero crossing;
Compensating unit, for obtaining the decimal point part of sampling number in the interpolation afterpulse signal using frequency compensation, and Be added to the integer part, to obtain total sampling number, sample frequency is obtained electric signal divided by total sampling number Frequency values;
The decimal point part of sampling number in the interpolation afterpulse signal is obtained using frequency compensation, comprising:
Choose a cycle f1In the same direction two zero crossings, and define the preceding later moment in time at previous zero crossing and adopt Sampling point is respectively f0(n) and f1(0), cycle f1The sampled point at the front and back moment at the latter zero crossing is respectively f1(n) and f2 (0), f1(0) and f0It the distance between (n) is temp1, f1It (0) is temp2, f between time shaft2(0) and f1(n) between Distance is temp3, f2It (0) is temp4 between time shaft;
Obtain the fractional part that the correct decimal correction value in starting point is redundance at temp2/temp1 and terminating point For temp4/temp3, and the decimal point part is obtained according to formula temp2/temp1-temp4/temp3.
4. high precision electro signal frequency measuring device according to claim 3, which is characterized in that described by zero crossing Method obtains the integer part of middle sampling number after the interpolation.
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 CN105652082A (en) 2016-06-08
CN105652082B true 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)

Families Citing this family (2)

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

Citations (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
CN101871965A (en) * 2010-06-11 2010-10-27 威胜集团有限公司 Method for detecting zero crossing time, frequency and phase difference of power sinusoidal signals
CN102608415A (en) * 2012-02-10 2012-07-25 南京弘毅电气自动化有限公司 Software frequency tracking algorithm on basis of weighted double fitting
CN102809687A (en) * 2012-07-26 2012-12-05 南京邮电大学 Digital measurement method for alternating-current frequency
CN102879639A (en) * 2012-09-13 2013-01-16 华中科技大学 Real-time frequency measuring method in power system

Patent Citations (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
CN101871965A (en) * 2010-06-11 2010-10-27 威胜集团有限公司 Method for detecting zero crossing time, frequency and phase difference of power sinusoidal signals
CN102608415A (en) * 2012-02-10 2012-07-25 南京弘毅电气自动化有限公司 Software frequency tracking algorithm on basis of weighted double fitting
CN102809687A (en) * 2012-07-26 2012-12-05 南京邮电大学 Digital measurement method for alternating-current frequency
CN102879639A (en) * 2012-09-13 2013-01-16 华中科技大学 Real-time frequency measuring method in power system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种实用的高精度频率测量方法;杨永标 等;《继电器》;20071201;第35卷;第272-275页

Also Published As

Publication number Publication date
CN105652082A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN109425844B (en) Calibration method and system for data sampling
CN109428598B (en) Calibration method and system for data sampling
CN102879639A (en) Real-time frequency measuring method in power system
CN102116798A (en) Power grid frequency measurement method and device
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
CN108132448B (en) Device and method for calibrating phase zero of phase generator
CN102253358A (en) Method for correcting electric energy meter by using correction system, and correction system
CN110244116B (en) DC instantaneous power metering circuit and quasi-synchronous calculation method thereof
CN104330623B (en) Sine wave parameter measuring method and system in electric power system
US10261112B2 (en) Non-contact type voltage sensor for dual-wire power cable and method for compensating installation position variation thereof
CN110967658B (en) Analog input merging unit calibrator tracing method based on digital differential method
CN105652082B (en) High precision electro signal frequency measurement method and its device
CN108196217B (en) Direct current metering method and system for off-board charger current calibration instrument
CN103808349A (en) Error correction method and device for vector sensors
CN109870649A (en) A kind of calibration system and method for alternating-current charging pile calibrating installation
CN103178779A (en) Signal generator with amplitude compensation function and method thereof
CN101738593A (en) Standard energy meter and correcting method of sampled signals thereof
CN109407501A (en) A kind of time interval measurement method based on coherent signal processing
CA2509473A1 (en) Meter apparatus and method for phase angle compensation employing linear interpolation of digital signals
CN109298362A (en) A kind of distribution line failure indicator three-phase synchronous method for testing precision, device and system
KR101335162B1 (en) Position aberration correction device and method for resolver
CN101937017A (en) Dynamic direct-current removing method for intelligent electric meter during alternating-current sampling
CN209342802U (en) The metering circuit of direct current instantaneous power
CN103605904B (en) Self compensation power system amplitude arithmetic based on error estimation
CN104330644A (en) Method and system for detecting amplitude value of sine wave signal in power system

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