CN101603985B - Method for measuring sine signal with high accuracy - Google Patents
Method for measuring sine signal with high accuracy Download PDFInfo
- Publication number
- CN101603985B CN101603985B CN2009100893157A CN200910089315A CN101603985B CN 101603985 B CN101603985 B CN 101603985B CN 2009100893157 A CN2009100893157 A CN 2009100893157A CN 200910089315 A CN200910089315 A CN 200910089315A CN 101603985 B CN101603985 B CN 101603985B
- Authority
- CN
- China
- Prior art keywords
- sin
- cos
- amplitude
- sinusoidal signal
- sample
- 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.)
- Expired - Fee Related
Links
Landscapes
- Measurement Of Resistance Or Impedance (AREA)
Abstract
The invention provides a method for measuring a sine signal with high accuracy, which is realized by steps of data acquisition system sampling, discrete Fourier transform, peak searching, frequency measurement, and amplitude and phase measurement. The invention provides an interpolating method capable of correcting leakage effect in a long-range and a short-range simultaneously to realize high accuracy measurement on parameters of the sine signal by the Fourier transform algorithm. The method can improve the accuracy for measuring the sine signal to over 10<-8>.
Description
Technical field
The invention belongs to the signal measurement technique field, relate to a kind of method for measuring sine signal with high accuracy.
Background technology
The measurement of sinusoidal ac signal has important use in electrical engineering, electrician's metering and other fields.For example, the metering of electric energy, the fluctuation of mains frequency, the reflection high voltage electric equipment makes moist, deterioration is rotten or insulation in the assessment of dielectric loss angle of defective such as gas discharge, the calibrating of AC signal generator and calibration, or the like, all need offset of sinusoidal signal frequency, amplitude, initial phase etc. accurately to measure.
Sinusoidal signal has frequency, amplitude, three parameters of initial phase, and existing method for measuring sine signal is varied.In order to record frequency, can adopt zero passage detection method based on hardware circuit; Under the known condition of frequency, can adopt the correlation analysis software algorithm to measure amplitude and initial phase; In order to record frequency, amplitude and initial phase simultaneously, can adopt Fourier Transform Algorithm.Comparatively speaking, Fourier Transform Algorithm is fast with its measuring speed, antijamming capability is strong, can record advantage such as a plurality of parameters simultaneously, is used widely on engineering.
Utilize Fourier Transform Algorithm to measure sinusoidal signal, at first need data acquisition system (DAS) that continuous sinusoidal signal is sampled, and then utilize microprocessor that the discrete digital signal that collects is carried out discrete Fourier transformation (Discrete FourierTransform is called for short DFT).If it is integer-period sampled that data acquisition system (DAS) can be accomplished in sampling process, promptly time of covering of sample is the integral multiple in sinusoidal signal cycle, utilizes DFT to measure sinusoidal signal so and will not have error on the algorithm principle.But because of the restriction of hardware device performance and the influence of other random disturbance factors, desirable integer-period sampled being difficult to accomplished in actual measurement.At this moment, utilize DFT to measure sinusoidal signal and error on the algorithm principle will occur, comprising: short scope leakage effect, i.e. the observed deviation that causes by the fence effect of discrete spectrum signal frequency; Long scope leakage effect is promptly because the phase mutual interference between the signal spectrum secondary lobe that the signal brachymemma causes.
In order to improve accuracy of measurement, must revise or compensate these errors.Proposed multiple modification method at present, be mainly used in and revise the measuring error that short scope leakage effect causes, revised accuracy can reach 10
-5~10
-4About, but this accuracy grade can not satisfy the requirement of some precision measurement occasion.For long scope leakage effect, the measuring error that particularly negative frequency leakage effect causes has not yet to see effective modification method.But this part error can reach 10 sometimes
-4About, it has reduced the accuracy based on the surveying instrument of DFT to a great extent.
As fully visible, under non-integer-period sampled condition, carry out pin-point accuracy for the parameter of utilizing DFT offset of sinusoidal signal and measure, need all revise long and short scope leakage effect.
Summary of the invention
Measure for the pin-point accuracy that realizes the sinusoidal signal parameter, the invention provides a kind of method for measuring sine signal with high accuracy, can all revise long and short scope leakage effect.
Technical scheme of the present invention is as follows:
Method for measuring sine signal with high accuracy comprises the step of obtaining N sample from sinusoidal signal, and N is a natural number, f
sSample frequency for data acquisition system (DAS);
And the step of the sample that obtains being carried out the DFT processing.
Also comprise the steps:
A, search spectrum peak: from the discrete spectrum that utilizes sample to obtain, choose the p root spectral line and the amplitude time maximum q root spectral line of amplitude maximum, write down the real part R of p root spectral line
PWith imaginary part I
P, write down the real part R of q root spectral line
qWith imaginary part X
q
B, survey frequency.
Set up formula
Wherein
Calculate τ:
The frequency f that obtains sinusoidal signal is:
C, measurement amplitude and phase place:
Calculate
Then the amplitude A of sinusoidal signal is:
Wherein j is an imaginary unit.
Described sampling can be integer-period sampled, also can be non-integer-period sampled, and promptly sampling period and sinusoidal signal can be the integral multiple relation between the cycle, also can be non-integral multiple relations.
The above-mentioned method for measuring sine signal based on DFT can further specify by following theoretical derivation:
Tested sinusoidal signal can be expressed as form usually
Wherein, f is a frequency, and A is an amplitude,
Be initial phase, t is the time.Ignore the quantization error in the analog-digital conversion process, and the various stochastic errors in the measuring process, utilize sample frequency to be f
sData acquisition system (DAS) adopt N sample
x
nDFT be
Wherein, m=0,1 ..., N-1, τ=Nf/f
s, j is an imaginary unit.For integer-period sampled, when promptly τ=p and p are integer,
X
-=0.So the frequency of this sinusoidal signal, amplitude, initial phase can be utilized x
nDiscrete spectrum in p root spectral line try to achieve
A=2NX
P (5)
Under non-integer-period sampled condition, promptly τ=p+ ε and | ε |<1 o'clock,
Be x
nDiscrete spectrum in have short scope spectrum leakage,
Be x
nDiscrete spectrum in have long scope spectrum leakage (being also referred to as the negative frequency spectrum leakage).At this moment, the spectral line corresponding to this sinusoidal signal will be positioned at x
nDiscrete spectrum between two spectral lines of the maximum and inferior maximum of amplitude, suppose that these two spectral lines are respectively p root spectral line and q root spectral line.
In order to improve accuracy of measurement, existing interpolation correcting method is to ignore X
-, think X
m=X
+So,, p root spectral line is
Q root spectral line is
Utilize this principle formula structure interpolation algorithm.Owing to ignored X
-, thereby the accuracy of this interpolation correcting method can not surpass X
-Size.
In order to obtain the higher interpolation correcting method of accuracy, do not ignore X
-, promptly think X
m=X
++ X
-, according to formula (3), have so
X
pImaginary part be
X
pReal part be
In like manner, X
qImaginary part be
Order
Then
In following formula, N is a sample number, and is known in advance; Discrete signal is carried out after DFT analyzes, and the size of p, q can be obtained from amplitude-versus-frequency curve, i.e. the position of the spectral line of amplitude maximum; I
pBe p root spectral line X
pImaginary part; I
qBe q root spectral line X
qImaginary part; λ is I
pWith I
qThe ratio.Therefore, F (N, p, q) big or small known.So can get according to formula (14)
Again according to τ=Nf/f
s, the frequency of sinusoidal signal is as can be known
After τ obtained, α, β all can obtain.According to
Can get
According to
The amplitude of tested sinusoidal signal and initial phase are respectively as can be known
Beneficial effect of the present invention:
No matter be under sampling of complete cycle device or the non-integer-period sampled condition, can both utilize DFT and long and short scope leakage effect is revised.Under the condition of not considering the data acquisition system (DAS) hardware error, the accuracy of this method can reach 10
-8More than.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method.
Embodiment
Below in conjunction with Fig. 1 technical scheme of the present invention is elaborated.
Process step as shown in Figure 1, method for measuring sine signal with high accuracy provided by the invention comprises the steps:
Step 1, data acquisition system sampling: the sinusoidal signal that the needs of input are measured is sampled, obtain N sample, N is a natural number, and the sample frequency of data acquisition system (DAS) is f
s
Step 2, discrete Fourier transformation: N the sample that collects carried out discrete Fourier transformation;
Step 3, search spectrum peak: from the discrete spectrum that sample constitutes, choose the p root spectral line and the amplitude time maximum q root spectral line of amplitude maximum, write down X
pReal part R
PWith imaginary part I
P, and X
qReal part R
qWith imaginary part I
q
Step 4, survey frequency: calculate
Set up following formula:
Calculate
The frequency that then obtains sinusoidal signal is
Step 5, measurement amplitude and phase place: calculate
And
And
The amplitude that obtains sinusoidal signal is:
The initial phase of sinusoidal signal is:
Embodiment: below provide an emulation testing example that utilizes the inventive method to carry out.
Utilize MATLAB software that the measuring method that the present invention proposes is carried out emulation testing.For frequency is that f=50.5Hz, amplitude A are 5, initial phase
Be the sinusoidal signal of 0.1 radian, utilize sample frequency to be f
sThe data acquisition system (DAS) of=500Hz is adopted to such an extent that N=16 sample analyzed.Ignore the influence of quantization error and other stochastic errors of analog-digital conversion process, 16 samples are respectively:
Sequence number | Sample size |
0 | 0.499167083234141 |
1 | 3.351458215784571 |
2 | 4.898744376371143 |
3 | 4.538536736964815 |
4 | 2.411094471363638 |
5 | -0.655189954997563 |
6 | -3.466353746160143 |
7 | -4.927774057896540 |
8 | -4.470396869493416 |
9 | -2.272317644626180 |
10 | 0.810566233377442 |
11 | 3.577828403886208 |
12 | 4.951940621364167 |
13 | 4.397845260029381 |
14 | 2.131298314713716 |
15 | -0.965142580745820 |
After handling through DFT, 16 samples obtain 16 discrete spectrum values and amplitude is respectively:
Sequence number | The discrete spectrum real part | The discrete spectrum imaginary part | Amplitude |
0 | 0.925706553948097 | 0 | 0.925706553948097 |
1 | 1.436032857696581 | -0.422083125355980 | 1.496778050712423 |
2 | -1.445232022183261 | 0.941689678557234 | 1.724956535291584 |
3 | -0.235422973732956 | 0.285890618776699 | 0.370347704820473 |
4 | -0.061403116989602 | 0.162396710873847 | 0.173617494736799 |
5 | 0.000503940501871 | 0.101704755446294 | 0.101706003934968 |
6 | 0.028448912309876 | 0.061143923407858 | 0.067438267929426 |
7 | 0.041277163716393 | 0.028942548813747 | 0.050413047679207 |
8 | 0.045051006648239 | 0 | 0.045051006648239 |
9 | 0.041277163716393 | -0.028942548813747 | 0.050413047679207 |
10 | 0.028448912309876 | -0.061143923407858 | 0.067438267929426 |
11 | 0.000503940501871 | -0.101704755446294 | 0.101706003934968 |
12 | -0.061403116989602 | -0.162396710873847 | 0.173617494736799 |
13 | -0.235422973732956 | -0.285890618776699 | 0.370347704820473 |
14 | -1.445232022183261 | -0.941689678557234 | 1.724956535291584 |
15 | 1.436032857696581 | 0.422083125355980 | 1.496778050712423 |
The maximum spectral line of amplitude is the 2nd spectral line in 16 discrete spectrum values, and amplitude time maximum spectral line is the 1st spectral line, thereby p=2, q=1,
X
2=R
2+jI
2=-1.445232022183261+j0.941689678557234
X
1=R
1+jI
1=1.436032857696581-j0.422083125355980
So
The frequency of sinusoidal signal is
τ, α, β are respectively
τ=16f/500=1.615999999999999
Thereby
A, b are respectively
The amplitude and the phase place of sinusoidal signal are respectively
Claims (2)
1. method for measuring sine signal with high accuracy comprises the steps:
Step 1, data acquisition system sampling: the sinusoidal signal that the needs of input are measured is sampled, obtain N sample, N is a natural number, and the sample frequency of data acquisition system (DAS) is f
s
Step 2, discrete Fourier transformation: N the sample that collects carried out discrete Fourier transformation;
It is characterized in that, also comprise the steps:
Step 3, search spectrum peak: the p root spectral line X that from the discrete spectrum that sample constitutes, chooses the amplitude maximum
pWith amplitude time maximum q root spectral line X
q, write down X
pReal part R
PWith imaginary part I
P, and X
qReal part R
qWith imaginary part I
q
Calculate
And
Wherein j is an imaginary unit.
2. method for measuring sine signal with high accuracy according to claim 1 is characterized in that describedly being sampled as non-integer-period sampledly, and promptly sampling period and sinusoidal signal are not integral multiple relation between the cycle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100893157A CN101603985B (en) | 2009-07-15 | 2009-07-15 | Method for measuring sine signal with high accuracy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100893157A CN101603985B (en) | 2009-07-15 | 2009-07-15 | Method for measuring sine signal with high accuracy |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101603985A CN101603985A (en) | 2009-12-16 |
CN101603985B true CN101603985B (en) | 2011-11-16 |
Family
ID=41469799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100893157A Expired - Fee Related CN101603985B (en) | 2009-07-15 | 2009-07-15 | Method for measuring sine signal with high accuracy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101603985B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102095932B (en) * | 2010-12-02 | 2014-06-11 | 国家电网公司 | Detection method of voltage phase at access point of photovoltaic inverter |
CN102095552B (en) * | 2010-12-03 | 2012-11-28 | 西安交通大学 | Method for eliminating random error of signal phase |
CN102435844B (en) * | 2011-11-01 | 2013-11-27 | 南京磐能电力科技股份有限公司 | Sinusoidal signal phasor calculating method being independent of frequency |
CN102636689B (en) * | 2012-05-09 | 2014-07-02 | 中国人民解放军重庆通信学院 | Non-contact power voltage measuring method |
CN102788965B (en) * | 2012-07-20 | 2014-06-11 | 北京航空航天大学 | Voltage modulation ratio verifying and measuring method |
CN103472296B (en) * | 2013-09-29 | 2015-09-09 | 湖南大学 | A kind of voltage envelope extraction method based on time-frequency conversion and implement device |
CN104198825A (en) * | 2014-08-05 | 2014-12-10 | 广东电网公司电力科学研究院 | Method and system for detecting amplitude of signal in power system |
CN104691575B (en) * | 2015-01-06 | 2018-02-09 | 上海电机学院 | A kind of rail on-line fault diagnosis system and method |
CN105403767A (en) * | 2015-10-21 | 2016-03-16 | 广东美的制冷设备有限公司 | Voltage frequency detection method of alternating current power supply input into air conditioner, system and the air conditioner |
CN106053937A (en) * | 2016-06-21 | 2016-10-26 | 电子科技大学 | Fundamental wave frequency measurement method based on FFT (Fast Fourier Transform) + FT (Fourier Transform) |
CN107064628B (en) * | 2017-04-13 | 2019-08-16 | 中国电子科技集团公司第二十四研究所 | High Precise Frequency Measurement System and method |
CN107328987B (en) * | 2017-06-27 | 2020-12-29 | 国网福建省电力有限公司 | Method and device for processing waveform distortion of photoelectric current sensor |
CN108572277B (en) * | 2017-06-28 | 2020-06-09 | 北京航空航天大学 | Multi-frequency signal measuring method and system |
CN108020715A (en) * | 2017-12-07 | 2018-05-11 | 中国船舶重工集团公司第七〇九研究所 | A kind of single-phase sinusoidal signal amplitude and phase quick determination method |
TWI685669B (en) | 2018-10-29 | 2020-02-21 | 立積電子股份有限公司 | Radar apparatus and leakage correction method |
CN109581052A (en) * | 2018-11-10 | 2019-04-05 | 中国人民解放军陆军勤务学院 | A kind of reality of iterated interpolation answers conversion frequency estimation method |
CN109856455B (en) * | 2018-12-15 | 2021-08-20 | 中国人民解放军陆军勤务学院 | Real-time repeated conversion type attenuation signal parameter estimation method |
CN109884388B (en) * | 2019-04-02 | 2021-05-18 | 华中科技大学 | Half-cycle phase-shifting method-based power grid frequency metering and measuring device and method |
CN111289797B (en) * | 2020-02-17 | 2021-02-02 | 华北电力大学 | Alternating current signal single interference data identification method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE4134472A1 (en) * | 1991-10-18 | 1993-04-22 | Rohde & Schwarz | Measuring harmonic distortion in AC signal by spectral analysis - digitising and calculating sine and cosine tables from sampled values before correlating with stored signal to determine fundamental and harmonic amplitudes |
GB2261560A (en) * | 1991-11-13 | 1993-05-19 | Kokusai Denshin Denwa Co Ltd | Apparatus for detection of non-modulated signal and for frequency acquisition |
CN1123415A (en) * | 1994-11-17 | 1996-05-29 | 郝玉山 | Method for measuring phase angle of sinusoidal quantity of electric power system and measuring system |
US5706202A (en) * | 1995-03-08 | 1998-01-06 | Anritsu Corporation | Frequency spectrum analyzing apparatus and transmitter characteristics measuring apparatus using the same |
CN101216512A (en) * | 2007-12-29 | 2008-07-09 | 湖南大学 | Non-sine periodic signal real time high precision detection method |
CN101251556A (en) * | 2008-03-04 | 2008-08-27 | 北京航空航天大学 | Sinusoidal signal four parameters testing method and virtual apparatus signal detection device |
-
2009
- 2009-07-15 CN CN2009100893157A patent/CN101603985B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE4134472A1 (en) * | 1991-10-18 | 1993-04-22 | Rohde & Schwarz | Measuring harmonic distortion in AC signal by spectral analysis - digitising and calculating sine and cosine tables from sampled values before correlating with stored signal to determine fundamental and harmonic amplitudes |
GB2261560A (en) * | 1991-11-13 | 1993-05-19 | Kokusai Denshin Denwa Co Ltd | Apparatus for detection of non-modulated signal and for frequency acquisition |
CN1123415A (en) * | 1994-11-17 | 1996-05-29 | 郝玉山 | Method for measuring phase angle of sinusoidal quantity of electric power system and measuring system |
US5706202A (en) * | 1995-03-08 | 1998-01-06 | Anritsu Corporation | Frequency spectrum analyzing apparatus and transmitter characteristics measuring apparatus using the same |
CN101216512A (en) * | 2007-12-29 | 2008-07-09 | 湖南大学 | Non-sine periodic signal real time high precision detection method |
CN101251556A (en) * | 2008-03-04 | 2008-08-27 | 北京航空航天大学 | Sinusoidal signal four parameters testing method and virtual apparatus signal detection device |
Non-Patent Citations (4)
Title |
---|
JP特开2005-214777A 2005.08.11 |
江亚群,等.周期信号相位差的高精度数字测量.《电工技术学报》.2006,第21卷(第11期),全文. * |
牛鹏辉,等.一种实正弦信号的短时频率估计新方法.《电子测量与仪器学报》.2007,第21卷(第6期),全文. * |
齐国清,等.基于DFT相位的正弦波频率和初相的高精度估计方法.《电子学报》.2001,第29卷(第9期),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN101603985A (en) | 2009-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101603985B (en) | Method for measuring sine signal with high accuracy | |
CN101701984B (en) | Fundamental wave and harmonic wave detecting method based on three-coefficient Nuttall windowed interpolation FFT | |
CN103454497B (en) | Based on the method for measuring phase difference improving windowed DFT | |
CN101701982B (en) | Method for detecting harmonic waves of electric system based on window and interpolated FFT | |
CN106483374B (en) | A kind of harmonic wave harmonic detection method based on Nuttall double window whole phase FFT | |
CN103308766A (en) | Harmonic analysis method based on Kaiser self-convolution window dual-spectrum line interpolation FFT (Fast Fourier Transform) and device thereof | |
CN101900761B (en) | High-accuracy non-integer-period sampled harmonic analysis and measurement method | |
CN109116289B (en) | Real-time acquisition system for running state of high-voltage transformer group | |
CN104270208B (en) | Method and device for detecting standing-wave ratio of RRU | |
CN102435844A (en) | Sinusoidal signal phasor calculating method being independent of frequency | |
CN109633262A (en) | Three phase harmonic electric energy gauging method, device based on composite window multiline FFT | |
CN101388001A (en) | High precision instant phase estimation method based on full-phase FFT | |
CN101261292A (en) | Base wave and harmonic detection method based on fiver item Rife-Vincent(1)window double spectral line interpolation FFT | |
CN103941090B (en) | Harmonic measuring method based on line energy interpolation | |
CN102288807A (en) | Method for measuring electric network voltage flicker | |
CN101806832A (en) | Measuring method for frequencies of low-frequency signals | |
CN103616652B (en) | Error measurement method, system and application for capacitive voltage divider | |
CN110133564B (en) | Synchronous testing method and device for phase characteristics of current sensor | |
CN102508026B (en) | Harmonic wave analysis method for electric energy quality harmonic wave analyzer | |
CN104535959A (en) | Signal frequency and DOA joint measurement method and device under spatial-temporal sub-nyquist sampling | |
CN102508031A (en) | Fourier series based measurement method of phase angle of partial discharge pulse | |
CN101609136A (en) | The method of voltage transformer secondary voltage drop tester and measurement phase angle difference thereof | |
CN103983849A (en) | Real-time high-accuracy power harmonic analysis method | |
CN109541312A (en) | A kind of new energy collects the subsynchronous harmonic detecting method in area | |
CN101718816B (en) | Fundamental wave and harmonic wave detection method based on four-item coefficient Nuttall window interpolation FFT |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111116 Termination date: 20120715 |