CN1382995A - Digital measuring method of frequency and phase - Google Patents

Digital measuring method of frequency and phase Download PDF

Info

Publication number
CN1382995A
CN1382995A CN 02116885 CN02116885A CN1382995A CN 1382995 A CN1382995 A CN 1382995A CN 02116885 CN02116885 CN 02116885 CN 02116885 A CN02116885 A CN 02116885A CN 1382995 A CN1382995 A CN 1382995A
Authority
CN
China
Prior art keywords
phase
frequency
locked
signal
data
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
CN 02116885
Other languages
Chinese (zh)
Other versions
CN1159592C (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB021168857A priority Critical patent/CN1159592C/en
Publication of CN1382995A publication Critical patent/CN1382995A/en
Application granted granted Critical
Publication of CN1159592C publication Critical patent/CN1159592C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Stabilization Of Oscillater, Synchronisation, Frequency Synthesizers (AREA)
  • Measuring Phase Differences (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

本发明涉及一种频率和相位的数字测量方法,属电路参数测量技术领域。本发明方法对交流输入信号进行采样,借助两组预处理获得相位相差90°的两个信号,然后基于这两个信号大小计算出被锁相位数据,并进一步基于锁相结构实现频率和相位的测量。这样,能够充分利用信号波形本身包含的相位信息,并按照采样速度更新被锁相位数据,提高了相位鉴别的分析精度,同时也能够提高锁相跟踪的速度,减少测量时间。此外,本发明方法的相位鉴别环节是通过对被锁相位和锁相相位取差的方式获得的。所以当锁相基本稳定时,锁相相位能够以零均值偏差逼近被锁相位,这就从根本上克服了单纯依据过零点计算相位,严重受到噪声干扰的不足,使得相位测量精度大大提高。

The invention relates to a digital measurement method for frequency and phase, belonging to the technical field of circuit parameter measurement. The method of the present invention samples the AC input signal, obtains two signals with a phase difference of 90° by means of two sets of preprocessing, and then calculates the phase-locked data based on the magnitude of the two signals, and further realizes the frequency and phase based on the phase-locked structure. Measurement. In this way, the phase information contained in the signal waveform itself can be fully utilized, and the phase-locked data can be updated according to the sampling speed, which improves the analysis accuracy of phase discrimination, improves the speed of phase-locked tracking, and reduces the measurement time. In addition, the phase identification link of the method of the present invention is obtained by taking the difference between the locked phase and the locked phase. Therefore, when the phase-locking is basically stable, the phase-locking phase can approach the locked phase with zero mean deviation, which fundamentally overcomes the problem that the phase is only calculated based on the zero-crossing point and is seriously disturbed by noise, and the phase measurement accuracy is greatly improved.

Description

The digital measuring method of a kind of frequency and phase place
Technical field
The present invention relates to the digital measuring method of a kind of frequency and phase place, this method is measured the frequency and the phase data of the ac input signal of a certain frequency based on phase-locked principle, belongs to the circuit parameter measurement technical field.
Background technology
In fields such as communication, household electrical appliances, instrument and meter and automatic control, usually need to measure the frequency of a certain AC signal and phase place at a time thereof.The method of a kind of traditional survey frequency and phase place is based on the phaselocked loop design.With reference to the international standard number be 0070050503 " phaselocked loop: principle, design and use " the digital lock-in technique introduced in a book to AC signal, can obtain as shown in Figure 1 the measuring-signal frequency and the method for phase place.The AC signal u of input handles by the shaping based on the zero passage comparison principle earlier, obtains the square-wave signal u ' of digit pulse form; Digital phase demodulation of signal u ' process and loop filtering are handled and are obtained divider ratio N; The controllable oscillatory signal generation branch that divider ratio N control realizes in the frequency division mode produces counting pulse signal; This count pulse passes through M times of frequency division again, obtains lockin signal; Lockin signal feeds back to digital phase demodulation part, has so just constituted the feedback control loop of phase-locked system.When stable, the divider ratio N that the frequency f of locked signal and loop filtering obtain is inversely proportional to when phase-locked.If this inverse ratio coefficient is G, so can obtain the frequency f of institute's test cross stream signal according to formula f=G/N.On the other hand, if oscillator signal is taken place the counting pulse signal of part generation counts, and the rising edge of basis signal u ' or negative edge, this counting process is carried out zero clearing then can obtain a count value, this count value is changed the phase data that just can obtain AC signal with phase compensation.
Above-mentioned comes with some shortcomings based on the frequency of phaselocked loop realization and the measuring method of phase place.At first, signal is merely able to carry out frequency and phase measurement according to the zero crossing of AC signal through phase-locked again method after the shaping, and the amplitude of not utilizing AC signal itself changes the phase angle information that is comprised, so phaselocked loop reaches locked signal cycle of several times often stable time, the measuring speed of frequency and phase place is slow.Second, asking for the preceding step-by-step counting of phase data needs the rising edge of signal u ' or negative edge to come zero clearing, the measurement of phase place just will rely on the detection to the zero crossing of input exchange signal u, but owing to the bias effect of noise to zero crossing, the precision that zero crossing detects will badly influence the measuring accuracy of phase data.The 3rd, phase-locked stable back oscillator signal take place counting pulse frequency that part produces be the locked signal frequency M doubly, and the change frequency of phase data also depends on the size of M in the one-period, M is big more, the span of phase change is more little, phase measurement is also meticulous more.But M is too big, also will make the bad stability of phase-locked system.The 4th, the number of significant digit of the controlled frequency division data N of input oscillator signal generation part will influence the measuring accuracy of the measured frequency data f of institute, and to increase N, certainly will to increase the frequency that the oscillator signal generating unit is divided required fixed frequency signal source, perhaps need to adopt complicated frequency splitting technology with decimal control bit.At last, the measuring method of said frequencies and phase place is difficult to realize in microprocessor, is unfavorable for designing and applying.
Summary of the invention
The objective of the invention is to propose the digital measuring method of a kind of frequency and phase place, this method also will be based on phase-locked principle design, but wish to overcome the deficiency of the phase-lock technique of above-mentioned traditional survey frequency and phase place, make measuring system can make full use of the information that AC signal wave form varies itself is comprised, the quick lock in measured signal, and rely on signal zero crossing no longer merely and calculate phase place, from improving phase measurement accuracy in essence.In addition, this method will design based on digital signal processing method, control thereby be improved on measuring accuracy and measuring speed and be easy to.At last, this method will help adopting easily the software based on little process chip to be realized.
The frequency that the present invention proposes and the digital measuring method of phase place may further comprise the steps:
1, the ac input signal u (t) that needs survey frequency and phase place is carried out first group of sampling pre-service and second group of sampling pre-service simultaneously, obtain discrete signal u respectively 1(n) and u 2(n).If the upper frequency limit of the tested AC signal u (t) of input is f Max, lower-frequency limit is f Min, aforesaid two groups of sampling preprocessing process should be selected identical sample frequency, if sample frequency is made as F s, F then sShould be greater than 3f MaxIn addition, these two groups sampling preprocessing process also should satisfy following condition:
The tested AC signal of supposing input is u (t)=U mSin (2 π ft+ θ), wherein f is the frequency of this AC signal, and satisfies f Min<f<f Max, θ is the initial phase of this AC signal, then u (t) through first group the sampling pre-service after, gained signal u 1(n) should have following form: u 1 ( n ) = k 1 ( f ) U m sin ( 2 π f F s n + θ + θ 1 ( f ) ) And signal u (t) through second group the sampling pre-service after, gained signal u 2(n) should have following form: u 2 ( n ) = k 2 ( f ) U m sin ( 2 π f F s n + θ + θ 2 ( f ) ) Gain function k wherein 1(f), gain function k 2(f), phase shift function # 1(f), phase shift function # 2(f) all be a function relevant, and satisfy following constraint with frequency input signal f:
Figure A0211688500053
Following formula is to f Min<f<f MaxSet up, and under the situation that satisfies the measuring accuracy requirement, can there be certain error in above-mentioned equation.
2, the discrete digital signal u that above-mentioned the 1st step is obtained 1(n) and u 2(n) be combined into the coordinate (u of the some A in the Cartesian coordinates that initial point is O 2(n), u 1(n)), then thus obtained vector With the angle of transverse axis positive dirction will be in order to as by phase-locked bit data α 0(n).
3, with above-mentioned the 2nd the step obtain by phase-locked bit data α 0(n) with feed back from output frequency f (n) and handle through integration and following the 7th step phase hit adjustment after pll phase data α ' (n) get poorly, obtain phase error Δ α (n).
4, the phase error Δ α (n) that above-mentioned the 3rd step is obtained handles through loop filtering, thereby obtains the frequency f (n) of measured signal; In the above-mentioned loop filtering processing procedure, its complex frequency domain transfer function H LP(s) form is:
Figure A0211688500061
Make the transport function of measuring process simultaneously Stable, and make Has the low-pass filtering performance, H ' cut-off frequecy of passband f (s) LFLower limit f less than the locked signal frequency Min
5, the pll phase data α ' that the frequency f (n) of above-mentioned the 4th measured signal that obtains of step and following the 7th step are obtained (n) carries out integration according to following formula and adds up: α 1 ( n ) = α ′ ( n - 1 ) + 2 π · f ( n ) F s Obtain intermediate phase data α 1(n).
6, to above-mentioned the 2nd the step obtain by phase-locked bit data α 0(n) carry out the quadrant transition detection, obtain transition detection data J (n).The judgment threshold constant of this transition detection is made as J TH, data J THShould satisfy Constraint, so transition detection data J (n) with by phase-locked position α 0(n) relation can be according to following formulate:
Figure A0211688500066
7, the intermediate phase data α that above-mentioned the 5th step is obtained 1(n) and above-mentioned the 6th transition detection data J (n) addition that obtains of step, promptly α ' (n)=α 1(n)+and J (n), thus obtain in order to be input to pll phase data α ' that above-mentioned the 3rd step handle to constitute phase-locked loop (n).
8, the intermediate phase data α that above-mentioned the 6th step is obtained 1(n) carry out phase compensation and data adjustment and handle, be i.e. α (n)=α 1(n)-θ 1(f (n))+K2 π, wherein, function # 1(f) be first group of phase shift function that the sampling pre-service produces input signal in above-mentioned the 1st step, K is an adjustment coefficient, and its value satisfies the integer of 0≤α (n)<2 π for making α (n), and the data α that obtains at last (n) is exactly the signal phase of required measurement.
The frequency that the present invention proposes and the digital measuring method of phase place, on basic structure, still utilized principle of PLL, Phase Tracking characteristic by feedback control loop, the 4th pacing in the foregoing invention step measures the frequency of signal, measures the current phase place of signal in last the 8th step of foregoing invention step.But the inventive method no longer adopts the preprocess method of zero passage shaping to input signal, but directly AC signal is sampled, and obtains two signal u of 90 ° of phase phasic differences by two groups of pre-service 1(n) and u 2(n), calculate by phase-locked bit data α based on these two signal magnitude then 0(n).Like this, can make full use of the phase information that signal waveform itself comprises, and can upgrade by phase-locked bit data, thereby improve the analysis precision that phase place is differentiated, also can improve the speed of phase locked track simultaneously, reduce Measuring Time according to sample rate.In addition, the phase place of the inventive method differentiates that link is by to by phase-locked position α 0(n) and pll phase α ' (n) get that poor mode obtains.So when basicly stable, pll phase can approach by phase-locked position with the zero-mean deviation when phase-locked, this has just fundamentally overcome and has calculated phase place according to zero crossing merely, seriously is subjected to the deficiency of noise, makes phase measurement accuracy improve greatly.Should also be noted that the inventive method at last in the 1st step the treatment step to signal sampling, other processing links can adopt the software mode design to realize.Speed, precision and the stability of controlling whole measuring process by adjustment design parameter and data precision are to be relatively easy to, and can realize this measuring process based on various little process chip easily.
Description of drawings
Fig. 1 is the theory diagram of existing method based on phaselocked loop measuring-signal frequency and phase place.
Fig. 2 is the theory diagram of the digital measuring method of frequency of the present invention and phase place.
Fig. 3 is the input signal squiggle through obtaining after first group of sampling pre-service and second group sampling pre-service respectively in the first embodiment of the invention.
Fig. 4 is the realization block diagram of first embodiment of the invention intermediate ring road Filtering Processing.
Fig. 5 is the amplitude-versus-frequency curve of transfer function H in the first embodiment of the invention ' (s).
Fig. 6 is the phase locked track frequency curve of first embodiment of the invention measuring process.
Fig. 7 is that first embodiment of the invention was at 0~0.4 second interval Phase Tracking curve.
Fig. 8 is that first embodiment of the invention was at 1~1.4 second interval Phase Tracking curve.
Specific implementation method
First embodiment of the digital measuring method of frequency of the present invention and phase place is used for the ac voltage signal about 50Hz is carried out the measurement of frequency and phase place, and the theory diagram of its realization as shown in Figure 2.Concrete treatment step is as follows:
1, to need survey frequency and phase place, the AC signal u (t) of frequency in 45~65Hz scope, at first with sample frequency F s=1000Hz carries out analog to digital conversion to signal u (t), and further discrete data is carried out first group of phase-shift filtering F1 and handle, and obtains signal u 1(n), thus finish first group the sampling pre-service; With same sample frequency F s=1000Hz carries out analog to digital conversion to signal u (t), and further discrete data is carried out second group of phase-shift filtering F2 and handle, and obtains signal u 2(n), thus finish second group the sampling pre-service.
Above-mentioned first group of low-pass digital filter that phase-shift filtering F1 is an infinite-duration impulse response IIR type, its frequency domain transport property H F1(e J ω) have a following form: H F 1 ( e jω ) = B 1 ( 1 ) + B 1 ( 2 ) e - jω + B 1 ( 3 ) e - j 2 ω + B 1 ( 4 ) e - j 3 ω A 1 ( 1 ) + A 1 ( 2 ) e - jω + A 1 ( 3 ) e - j 2 ω + B 1 ( 4 ) e - j 3 ω Concrete coefficient is as follows:
B1=[-0.081603248,-0.6662151,2.0287446,-1.3020016]
A1=[1.3020016,-2.0287446,0.6662151,0.081603248]
According to the digital filtering design theory as can be known, digital filtering F1 is a cause and effect, promptly is attainable.And further analyze as can be known that this Filtering Processing is stable.
Above-mentioned second group of low-pass digital filter that phase-shift filtering F2 also is an infinite-duration impulse response IIR type, its frequency domain transport property H F2(e J ω) have a following form: H F 2 ( e jω ) = B 2 ( 1 ) + B 2 ( 2 ) e - jω + B 2 ( 3 ) e - , 2 ω A 2 ( 1 ) + A 2 ( 2 ) e - jω + A 2 ( 3 ) e - j 2 ω Concrete coefficient is as follows:
B2=[-0.37078953,1.2327431,-0.94007795]
A2=[0.94007795,-1.2327431,0.37078953]
According to the digital filtering design theory as can be known, digital filtering F2 also is a cause and effect, promptly is attainable.And further analyze as can be known that this Filtering Processing is stable.
These two groups of digital filterings amplitude gain in 45~65Hz scope all is 1, and its phase-shift characterisitc differs 90 °.If have sinusoidal ac signal u (t)=sin that an amplitude is 1, frequency is 50Hz (2 π * 50 * t) (volt), to u (t) according to sampling rate F sThe signal that=1000Hz carries out after the analog to digital conversion is u (n), through obtaining output signal u after aforementioned first group of sampling pre-service 1(n), simultaneously through obtaining output signal u after aforementioned second group of sampling pre-service 2(n), u (n), the u in the 100th to 150 sampled point scope then 1(n) and u 2(n) actual waveform curve as shown in Figure 3, wherein u (n), u 1(n) and u 2(n) u, u1 and u2 in the curve difference corresponding diagram 3.As can be seen from the figure, u on phase relation 2(n) the just in time leading u of signal 1(n) signal is 90 °.
2, the discrete digital signal u that above-mentioned the 1st step is obtained 1(n) and u 2(n) be combined as the coordinate (u of the some A in the Cartesian coordinates that initial point is O 2(n), u 1(n)), then thus obtained vector
Figure A0211688500082
With the angle of transverse axis positive dirction will be in order to as by phase-locked bit data α 0(n).Get among the embodiment-π≤α 0(n)<and π, then this processing procedure also can be calculated according to following formula:
3, with above-mentioned the 2nd the step obtain by phase-locked bit data α 0(n) with feed back from output frequency f (n) and handle through integration and the phase hit adjustment in following the 7th step after the pll phase data α ' that obtains (n) get poorly, obtain phase error Δ α (n), computing formula is:
Δα(n)=α 0(n)-α′(n)
4, the Δ α (n) that above-mentioned the 3rd step is obtained handles through loop filtering, obtains the frequency f (n) of locked signal.Can realize this loop filtering processing with reference to the theory structure of Fig. 4.Detailed process is: phase error Δ α (n) obtains y through after the integral element 1(n); Simultaneously, phase error Δ α (n) also obtains y through the proportional delay link 2(n); To y 1(n) and y 2(n) sue for peace and obtain y (n), be i.e. y (n)=y 1(n)+y 2(n); Y (n) needing to obtain the signal frequency f (n) of measurement again through first order inertial loop.
Wherein, the computing formula of integral element is:
y 1(n)=y 1(n-1)+0.0362666 Δ α (n) thus, the complex frequency domain transport function form of integral element can approximate expression be: H 1 ( s ) = 36.2666 s The computing formula of proportional delay link is:
y 2(n)=0.804868y 2(n-1)+0.708540 the complex frequency domain transport function of Δ α (n) proportional delay link is approximately: H 2 ( s ) = 880.3179 s + 242.4401 The computing formula of inertial element is:
The complex frequency domain transport function formal approximation of f (n)=0.932642f (n-1)+0.067358y (n) inertial element is: H 3 ( s ) = f ( s ) y ( s ) = 1 0.013846 s + 1
So, the complex frequency domain transfer function H of whole loop filtering processing section LP(s) form is: H LP ( s ) = ( H 1 ( s ) + H 2 ( s ) ) · H 3 ( s ) = 66198.5 · s + 635019 s ( s 2 + 314.668 · s + 17509.8 ) So, have: H 0 ( s ) = H LP ( s ) · s = 66198.5 · s + 635019 s 2 + 314.668 · s + 17509.8
The transport property of the phase-locked system that calculates thus, is: H ( s ) = s · H 0 ( s ) s 2 + 2 π H 0 ( s ) = 66198.5 · s 2 + 635019 · s s 4 + 314.668 · s 3 + 17509.8 · s 2 + 415937 · s + 3989940 Four limits of H (s) are successively :-251.334 ,-25.1324 and-19.1008 ± j16.3345.According to control theory as can be known, this phase-locked system H (s) is stable.So, transfer function H ' (s) be: H ′ ( s ) = H 0 ( s ) s 2 + 2 π · H 0 ( s ) = 66198.5 · s + 635019 s 4 + 314.668 · s 3 + 17509.8 · s 2 + 415937 · s + 3989940 H ' amplitude-versus-frequency curve (s) as shown in Figure 5, its horizontal ordinate is a logarithmic coordinate system.By H ' amplitude versus frequency characte (s) as seen, H ' (s) has a low-frequency filter characteristics, greater than H ' amplitude versus frequency characte (s) after the 20Hz just drop to-below the 35dB.
5, the pll phase data α ' that the frequency f (n) of above-mentioned the 4th measured signal that obtains of step and following the 7th step are obtained (n) carries out integration according to following formula and adds up:
α 1(n)=α ' (n-1)+0.002 π f (n) obtain intermediate phase data α 1(n).
6, to above-mentioned the 2nd the step obtain by phase-locked bit data α 0(n) carry out the quadrant transition detection, obtain transition detection data J (n).The judgment threshold constant of setting transition detection is J TH=4, because f MaxSo=65Hz is data J THSatisfy
Figure A0211688500101
The computing formula of transition detection data J (n) is:
Figure A0211688500102
7, the intermediate phase data α that above-mentioned the 5th step is obtained 1(n) and above-mentioned the 6th transition detection data J (n) addition that obtains of step, promptly α ' (n)=α 1(n)+and J (n), thus obtain in order to be input to pll phase data α ' that above-mentioned the 3rd step constitutes phase-locked loop (n).
8, the intermediate phase data α that above-mentioned the 6th step is obtained 1(n) carrying out phase compensation and data adjustment handles.In above-mentioned the 1st step, first group of sampling pre-service can be calculated (unit: radian) with following approximate formula to the phase shift function that input signal produces
θ 1(f)=0.822384-0.0574974·f+0.000256414·f 2
(45≤f≤65) so, the tested phase place of output (unit: radian) be:
α (n)=α 1(n)-θ 1(f (n))+K2 π wherein, K is one and adjusts coefficient that its value satisfies the integer of 0≤α (n)<2 π for making α (n).
Adopt first embodiment of the invention one input signal to be carried out the measurement of frequency and phase place.Input signal was that a frequency is that 50Hz, fundamental voltage amplitude are 1 volt sinusoidal ac signal u (t) in 0~1 second, and after one second, the frequency hopping of this input signal is to 55Hz, and its fundamental voltage amplitude still is 1 volt.In addition, this signal includes 2~20 times harmonic wave and noise all the time in 0~2 second, and the amplitude of second harmonic reaches 0.2 volt.The embodiment of the invention to the frequency-tracking curve of input signal as shown in Figure 6, locked through 0.4 second temporal frequency in 0~2 second substantially.After the locking, the frequency data f (n) of output still has certain fluctuation, and this is because harmonic wave and caused by noise.But by the amplitude that fluctuates as seen: this measuring system has had stronger inhibiting effect to harmonic wave and noise.In addition, Fig. 7 has provided the Phase Tracking curve of embodiment in 0~0.4 second time period; Fig. 8 has provided the Phase Tracking curve of embodiment in 1~1.4 second time period.
Second embodiment of the digital measuring method of frequency of the present invention and phase place is used for measuring the frequency and the phase place of A phase voltage signal at three phase network.
The A phase voltage of supposing three phase network is:
u A(t)=U mSin (2 π ft+ ) wherein is the initial phase of A phase voltage.Then the voltage of B phase, C phase is respectively:
u B(t)=U msin(2πft-120°+)
u C(t)=U mSin (2 π ft+120 °+) CB line voltage is:
u CB(t)=u C(t)-u B(t) As seen, CB line voltage signal u CB(t) leading A phase voltage signal u A(t) phase place is 90 °.
Go on foot in the processing in the 1st of second embodiment of the invention, at first A phase voltage u importing A(t) with frequency F s=1000Hz samples, and directly obtains first group of sampling pre-service output: Second group of sampling pre-service then utilized the phase-shift characterisitc of electrical network to three-phase voltage itself.Concrete steps are: at first to C phase, the B line voltage between mutually according to frequency F s=1000Hz samples, and obtains signal u CB(n), calculate according to following formula then:
Figure A0211688500113
The 2nd~7 step subsequently is identical with first embodiment, repeats no more.In the 8th step of second embodiment, the phase shift function of being got is θ 1(f)=0, then according to formula α (n)=α 1(n)-θ 1(f (n))+K2 π calculates the phase place of the A phase voltage signal of being surveyed.By frequency and the phase place of measuring the A phase voltage, also just can further obtain mains frequency and B, C phase place mutually.

Claims (1)

1、一种频率和相位的数字测量方法,其特征在于该方法包括如下步骤:1, a kind of digital measurement method of frequency and phase, it is characterized in that the method comprises the steps: (1)设需要测量频率和相位的交流输入信号为u(t)=Umsin(2πft+θ),对该信号同时进行第一组采样预处理和第二组采样预处理,分别得到离散信号 u 1 ( n ) = k 1 ( f ) U m sin ( 2 &pi; f F s n + &theta; + &theta; 1 ( f ) ) u 2 ( n ) = k 2 ( f ) U m sin ( 2 &pi; f F s n + &theta; + &theta; 2 ( f ) ) ; (1) Assuming that the AC input signal that needs to measure the frequency and phase is u(t)=U m sin(2πft+θ), the first group of sampling preprocessing and the second group of sampling preprocessing are performed on the signal at the same time, and the discrete Signal u 1 ( no ) = k 1 ( f ) u m sin ( 2 &pi; f f the s no + &theta; + &theta; 1 ( f ) ) u 2 ( no ) = k 2 ( f ) u m sin ( 2 &pi; f f the s no + &theta; + &theta; 2 ( f ) ) ; 其中f是该交流信号的频率,且满足fmin<f<fmax,θ是该交流信号的初相位,增益函数k1(f)、增益函数k2(f)、相移函数θ1(f)、相移函数θ2(f)为与输入信号频率f有关的满足如下关系式的任意函数: Where f is the frequency of the AC signal and satisfies f min <f<f max , θ is the initial phase of the AC signal, gain function k 1 (f), gain function k 2 (f), phase shift function θ 1 ( f), the phase shift function θ 2 (f) is any function related to the input signal frequency f that satisfies the following relationship: (2)将上述第(1)步得到的离散数字信号u1(n)和u2(n)组合成原点为O的笛卡儿坐标系中点A的坐标(u2(n),u1(n)),由此获得的矢量 与横轴正方向的夹角作为被锁相位数据α0(n);(2) Combine the discrete digital signals u 1 (n) and u 2 (n) obtained in the above step (1) into the coordinates of point A in the Cartesian coordinate system whose origin is O (u 2 (n), u 1 (n)), the resulting vector The included angle with the positive direction of the horizontal axis is taken as the locked phase data α 0 (n); (3)将上述第(2)步得到的被锁相位数据α0(n)与从输出频率f(n)反馈回来、并经积分和下述第(7)步的相位跳变调整处理后的锁相相位数据α′(n)取差,得到相位误差Δα(n);(3) Feedback the phase-locked data α 0 (n) obtained in step (2) above from the output frequency f(n), and after integration and phase jump adjustment in step (7) below Take the difference of phase-locked phase data α'(n) to obtain phase error Δα(n); (4)将上述第(3)步求出的相位误差Δα(n)经过环路滤波处理,从而获得被测信号的频率f(n);上述环路滤波处理过程中,其复频域传递函数HLP(s)的形式为:
Figure A0211688500024
同时使测量过程的传递函数
Figure A0211688500025
稳定,并且使具有低通滤波性能,H′(s)的通带截止频率fLF小于被锁信号频率的下限fmin
(4) Process the phase error Δα(n) obtained in step (3) above through loop filtering to obtain the frequency f(n) of the signal under test; during the above loop filtering process, its complex frequency domain transfer The function H LP (s) has the form:
Figure A0211688500024
While making the transfer function of the measurement process
Figure A0211688500025
stable and make With low-pass filtering performance, the passband cut-off frequency f LF of H'(s) is less than the lower limit f min of the frequency of the locked signal;
(5)将上述第(4)步得到的被测信号的频率f(n)与下述第(7)步得到的锁相相位数据α′(n)按照如下公式进行积分累加,得到中间相位数据α1(n): &alpha; 1 ( n ) = &alpha; &prime; ( n - 1 ) + 2 &pi; &CenterDot; f ( n ) F s (5) The frequency f(n) of the measured signal obtained in the above step (4) and the phase-locked phase data α'(n) obtained in the following step (7) are integrated and accumulated according to the following formula to obtain the intermediate phase Data α 1 (n): &alpha; 1 ( no ) = &alpha; &prime; ( no - 1 ) + 2 &pi; &Center Dot; f ( no ) f the s (6)对上述第(2)步得到的被锁相位数据α0(n)进行象限跳变检测,获得跳变检测数据J(n),该跳变检测的判断阈值常数设为JTH,常数JTH满足
Figure A0211688500028
于是跳变检测数据J(n)与被锁相位α0(n)的关系表示为:
(6) Carry out quadrant jump detection on the phase-locked data α 0 (n) obtained in the above step (2), to obtain jump detection data J(n), the judgment threshold constant of the jump detection is set as J TH , The constant J TH satisfies
Figure A0211688500028
So the relationship between the jump detection data J(n) and the locked phase α 0 (n) is expressed as:
(7)对上述第(5)步得到的中间相位数据α1(n)与上述第(6)步得到的跳变检测数据J(n)相加,即α′(n)=α1(n)+J(n),将其输入到上述第(3)步处理以构成锁相环路的锁相相位数据α′(n);(7) Add the intermediate phase data α 1 (n) obtained in the above-mentioned step (5) to the jump detection data J(n) obtained in the above-mentioned step (6), that is, α'(n)=α 1 ( n)+J(n), which is input to the above-mentioned (3) step process to form the phase-locked phase data α'(n) of the phase-locked loop; (8)对上述第(6)步得到的中间相位数据α1(n)进行相位补偿和数据调整处理,得到所需测量的信号相位α(n)=α1(n)-θ1(f(n))+K·2π,其中,函数θ1(f)为上述第(1)步中对输入信号进行第一组采样预处理后产生的相移函数,K为调整系数,其取值为使α(n)满足0≤α(n)<2π的整数。(8) Perform phase compensation and data adjustment processing on the intermediate phase data α 1 (n) obtained in the above step (6), and obtain the required measured signal phase α(n)=α 1 (n)-θ 1 (f (n))+K·2π, where the function θ 1 (f) is the phase shift function generated after the first set of sampling preprocessing of the input signal in the above step (1), K is the adjustment coefficient, and its value An integer satisfying 0≤α(n)<2π for α(n).
CNB021168857A 2002-04-24 2002-04-24 Digital measuring method of frequency and phase Expired - Fee Related CN1159592C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021168857A CN1159592C (en) 2002-04-24 2002-04-24 Digital measuring method of frequency and phase

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021168857A CN1159592C (en) 2002-04-24 2002-04-24 Digital measuring method of frequency and phase

Publications (2)

Publication Number Publication Date
CN1382995A true CN1382995A (en) 2002-12-04
CN1159592C CN1159592C (en) 2004-07-28

Family

ID=4744277

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021168857A Expired - Fee Related CN1159592C (en) 2002-04-24 2002-04-24 Digital measuring method of frequency and phase

Country Status (1)

Country Link
CN (1) CN1159592C (en)

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789601A (en) * 2010-03-16 2010-07-28 许昌开普电器检测研究院 Real time digital system (RTDS) phase-locking synchronous element
CN101806832A (en) * 2010-04-15 2010-08-18 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN101813725A (en) * 2010-04-15 2010-08-25 南京邮电大学 Method for measuring phase difference of low-frequency signals
CN101576586B (en) * 2008-05-09 2010-12-22 中国科学院半导体研究所 Phase detection method based on adaptive filtering
CN101446620B (en) * 2007-11-28 2011-04-06 中国科学院半导体研究所 Battery-based semiconductor AC differential conductive scanning measurement system
CN101603984B (en) * 2009-07-01 2011-04-06 湖南大学 Real-time detection method for the digitalization of electrical signal frequency
CN102385003A (en) * 2011-11-07 2012-03-21 清华大学 Method for detecting frequency and phase of voltage signals or current signals in electric power system
CN102466765A (en) * 2010-11-19 2012-05-23 北京中纺锐力机电有限公司 Power supply inverter and power supply phase detection circuit thereof
CN102497203A (en) * 2011-12-02 2012-06-13 武汉纺织大学 Phase-locked subdivision method for displacement detection
CN102928662A (en) * 2012-10-31 2013-02-13 江汉大学 Method and device for measuring signal frequency stability
CN103134985A (en) * 2011-11-24 2013-06-05 上海华建电力设备股份有限公司 Engineering implementation method of power synchronous trap
CN103188190A (en) * 2011-12-28 2013-07-03 中国电信股份有限公司 Method and system for measuring carrier signal interference
CN103575990A (en) * 2012-07-26 2014-02-12 南京邮电大学 Method for digital measuring of instantaneous phase of alternating current
CN103575991A (en) * 2012-07-26 2014-02-12 南京邮电大学 Method for accurately measuring instantaneous phase of alternating current
CN104280610A (en) * 2014-10-10 2015-01-14 深圳晶福源科技股份有限公司 Phase-lock loop and grid frequency detecting method of phase-lock loop
CN104330623A (en) * 2014-10-29 2015-02-04 广东电网有限责任公司电力科学研究院 Sine wave parameter measuring method and system in electric power system
CN104502702A (en) * 2014-12-10 2015-04-08 广东电网有限责任公司电力科学研究院 Method and system for detecting frequency of power signal
CN104990616A (en) * 2015-06-26 2015-10-21 广州能源检测研究院 Multi-path desynchronous pulse counting compensation method based on cascading adaptive trap wave device
CN105044455A (en) * 2015-07-09 2015-11-11 宁波大学 Method for measuring frequency and phase of alternating current signal
CN105093010A (en) * 2015-07-21 2015-11-25 胜利油田胜利电器有限责任公司 Digital filtering method for extracting waves with specific frequency from frequency-mixing periodic signals
CN105092966A (en) * 2014-04-21 2015-11-25 西门子公司 Electrical signal frequency detection method and device, equipment protection device and protection equipment
CN105203842A (en) * 2015-09-18 2015-12-30 广东电网有限责任公司电力科学研究院 Method and system for extracting sine function reference signal out of electric power signal
CN105223419A (en) * 2015-09-18 2016-01-06 广东电网有限责任公司电力科学研究院 The all phase difference detection method of electric power signal and system
CN105262480A (en) * 2015-10-22 2016-01-20 江苏绿扬电子仪器集团有限公司 System for recovering clock signal from high-speed serial signals
CN105656484A (en) * 2015-12-29 2016-06-08 中国电子科技集团公司第二十六研究所 Differential phase radio frequency phase shifting method and system
CN107782966A (en) * 2016-08-24 2018-03-09 施耐德电器工业公司 Determine the frequency of AC signal
CN108037358A (en) * 2017-12-12 2018-05-15 深圳市绘王动漫科技有限公司 Microcontroller frequency testing system and method
CN109001661A (en) * 2018-05-31 2018-12-14 上海思源弘瑞自动化有限公司 The consistency of double sampled value determines method, apparatus, terminal device and storage medium
CN109149632A (en) * 2018-08-23 2019-01-04 广西大学 A kind of single-phase photovoltaic inverter digital phase-locked loop control method
CN110501728A (en) * 2018-05-16 2019-11-26 清华大学 Frequency Discrimination Method and Frequency Discrimination Device for Positioning Base Station Time Hopping Signal
CN110927452A (en) * 2019-11-26 2020-03-27 华北水利水电大学 A method and device for measuring phase difference based on instantaneous reactive power
CN112671023A (en) * 2020-11-20 2021-04-16 国网湖南省电力有限公司 HVDC system commutation failure occurrence analysis method considering phase angle jump influence
CN114608627A (en) * 2022-03-14 2022-06-10 浙江大学 A high-precision large-range phase measurement system based on cross-quadrant detection

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408568B (en) * 2007-10-12 2010-12-01 深圳科士达科技股份有限公司 Method and device for measuring electrical signal phase of alternating current

Cited By (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446620B (en) * 2007-11-28 2011-04-06 中国科学院半导体研究所 Battery-based semiconductor AC differential conductive scanning measurement system
CN101576586B (en) * 2008-05-09 2010-12-22 中国科学院半导体研究所 Phase detection method based on adaptive filtering
CN101603984B (en) * 2009-07-01 2011-04-06 湖南大学 Real-time detection method for the digitalization of electrical signal frequency
CN101789601A (en) * 2010-03-16 2010-07-28 许昌开普电器检测研究院 Real time digital system (RTDS) phase-locking synchronous element
CN101789601B (en) * 2010-03-16 2012-07-18 许昌开普电器检测研究院 Real time digital system (RTDS) phase-locking synchronous element
CN101813725B (en) * 2010-04-15 2012-07-04 南京邮电大学 Method for measuring phase difference of low-frequency signals
CN101806832B (en) * 2010-04-15 2012-07-04 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN101813725A (en) * 2010-04-15 2010-08-25 南京邮电大学 Method for measuring phase difference of low-frequency signals
CN101806832A (en) * 2010-04-15 2010-08-18 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN102466765A (en) * 2010-11-19 2012-05-23 北京中纺锐力机电有限公司 Power supply inverter and power supply phase detection circuit thereof
CN102385003A (en) * 2011-11-07 2012-03-21 清华大学 Method for detecting frequency and phase of voltage signals or current signals in electric power system
CN102385003B (en) * 2011-11-07 2013-07-24 清华大学 Method for detecting frequency and phase of voltage signals or current signals in electric power system
CN103134985A (en) * 2011-11-24 2013-06-05 上海华建电力设备股份有限公司 Engineering implementation method of power synchronous trap
CN102497203A (en) * 2011-12-02 2012-06-13 武汉纺织大学 Phase-locked subdivision method for displacement detection
CN103188190A (en) * 2011-12-28 2013-07-03 中国电信股份有限公司 Method and system for measuring carrier signal interference
CN103188190B (en) * 2011-12-28 2016-03-02 中国电信股份有限公司 A kind of method and system measuring carrier signal interference
CN103575990A (en) * 2012-07-26 2014-02-12 南京邮电大学 Method for digital measuring of instantaneous phase of alternating current
CN103575991A (en) * 2012-07-26 2014-02-12 南京邮电大学 Method for accurately measuring instantaneous phase of alternating current
CN103575990B (en) * 2012-07-26 2016-02-03 南京邮电大学 A kind of method of instantaneous phase of digitized measurement alternating current
CN103575991B (en) * 2012-07-26 2016-02-10 南京邮电大学 A kind of accurate measurement method of instantaneous phase of alternating current
CN102928662B (en) * 2012-10-31 2015-02-04 江汉大学 Method and device for measuring signal frequency stability
CN102928662A (en) * 2012-10-31 2013-02-13 江汉大学 Method and device for measuring signal frequency stability
CN105092966A (en) * 2014-04-21 2015-11-25 西门子公司 Electrical signal frequency detection method and device, equipment protection device and protection equipment
CN104280610A (en) * 2014-10-10 2015-01-14 深圳晶福源科技股份有限公司 Phase-lock loop and grid frequency detecting method of phase-lock loop
CN104330623A (en) * 2014-10-29 2015-02-04 广东电网有限责任公司电力科学研究院 Sine wave parameter measuring method and system in electric power system
CN104330623B (en) * 2014-10-29 2017-05-24 广东电网有限责任公司电力科学研究院 Sine wave parameter measuring method and system in electric power system
CN104502702A (en) * 2014-12-10 2015-04-08 广东电网有限责任公司电力科学研究院 Method and system for detecting frequency of power signal
CN104502702B (en) * 2014-12-10 2017-04-12 广东电网有限责任公司电力科学研究院 Method and system for detecting frequency of power signal
CN104990616B (en) * 2015-06-26 2018-01-19 广州能源检测研究院 The asynchronous step-by-step counting compensation method of multichannel based on cascade adaptive trapper
CN104990616A (en) * 2015-06-26 2015-10-21 广州能源检测研究院 Multi-path desynchronous pulse counting compensation method based on cascading adaptive trap wave device
CN105044455A (en) * 2015-07-09 2015-11-11 宁波大学 Method for measuring frequency and phase of alternating current signal
CN105093010A (en) * 2015-07-21 2015-11-25 胜利油田胜利电器有限责任公司 Digital filtering method for extracting waves with specific frequency from frequency-mixing periodic signals
CN105223419A (en) * 2015-09-18 2016-01-06 广东电网有限责任公司电力科学研究院 The all phase difference detection method of electric power signal and system
CN105203842A (en) * 2015-09-18 2015-12-30 广东电网有限责任公司电力科学研究院 Method and system for extracting sine function reference signal out of electric power signal
CN105223419B (en) * 2015-09-18 2017-11-14 广东电网有限责任公司电力科学研究院 The all phase difference detection method and system of electric power signal
CN105203842B (en) * 2015-09-18 2018-03-20 广东电网有限责任公司电力科学研究院 The method and system of SIN function reference signal is extracted from electric power signal
CN105262480A (en) * 2015-10-22 2016-01-20 江苏绿扬电子仪器集团有限公司 System for recovering clock signal from high-speed serial signals
CN105656484A (en) * 2015-12-29 2016-06-08 中国电子科技集团公司第二十六研究所 Differential phase radio frequency phase shifting method and system
CN107782966A (en) * 2016-08-24 2018-03-09 施耐德电器工业公司 Determine the frequency of AC signal
CN108037358A (en) * 2017-12-12 2018-05-15 深圳市绘王动漫科技有限公司 Microcontroller frequency testing system and method
CN110501728A (en) * 2018-05-16 2019-11-26 清华大学 Frequency Discrimination Method and Frequency Discrimination Device for Positioning Base Station Time Hopping Signal
CN110501728B (en) * 2018-05-16 2022-03-29 清华大学 Frequency discrimination method and device for time hopping signal of positioning base station
CN109001661A (en) * 2018-05-31 2018-12-14 上海思源弘瑞自动化有限公司 The consistency of double sampled value determines method, apparatus, terminal device and storage medium
CN109001661B (en) * 2018-05-31 2021-02-09 上海思源弘瑞自动化有限公司 Method and device for determining consistency of double sampling values, terminal equipment and storage medium
CN109149632A (en) * 2018-08-23 2019-01-04 广西大学 A kind of single-phase photovoltaic inverter digital phase-locked loop control method
CN110927452A (en) * 2019-11-26 2020-03-27 华北水利水电大学 A method and device for measuring phase difference based on instantaneous reactive power
CN110927452B (en) * 2019-11-26 2021-11-09 华北水利水电大学 Phase difference measuring method and device based on instantaneous reactive power
CN112671023A (en) * 2020-11-20 2021-04-16 国网湖南省电力有限公司 HVDC system commutation failure occurrence analysis method considering phase angle jump influence
CN114608627A (en) * 2022-03-14 2022-06-10 浙江大学 A high-precision large-range phase measurement system based on cross-quadrant detection

Also Published As

Publication number Publication date
CN1159592C (en) 2004-07-28

Similar Documents

Publication Publication Date Title
CN1382995A (en) Digital measuring method of frequency and phase
DE102009006581B4 (en) Prediction phase-locked loop system
CN108519498A (en) A kind of self-adapting closed loop measuring system of Micromachined Accelerometer Based on Resonant Principle
CN101055299A (en) Impact load electric energy metering method
CN102937668A (en) Electric system low-frequency oscillation detection method
CN102236048B (en) Method for measuring phasor frequency of electric system
CN103490772B (en) A kind of slip based on reactive-load compensation weights single-phase soft-lock phase method
CN1946071A (en) Method for single path detecting input signal phase difference and relative amplitude
CN1677844A (en) High performance signal generation
CN103472302B (en) The method detecting electric network voltage phase with single-phase photovoltaic grid-connected inverter
CN102904568A (en) An adaptive grid-connected converter single-phase soft phase-locked loop
CN103543333A (en) High-frequency signal phase difference measurement method and device
CN109039125A (en) T-type three-level inverter dead zone error voltage compensating method based on MSOGI-FLL
CN108333426A (en) Power system frequency measurement method based on fourier algorithm
CN105629060A (en) Grid frequency measurement method and device based on optimal baseband filtering
CN1968019A (en) All-digital phase-lock loop used for precision testing of city electricity
CN101060311A (en) A digital phase-lock amplifier
CN108918965A (en) Multi channel signals phase, amplitude high-precision measuring method
CN2703260Y (en) Wattless power measuring circuit for realizing 90 degree phase shifting
CN111865304A (en) A Dynamic Phase Locked Loop Based on Digital Direct Linear Phase Comparison
CN102095932B (en) Detection method of voltage phase at access point of photovoltaic inverter
US9608650B1 (en) Method and device for controlling single-phase phase-locked loop
CN108054776A (en) A kind of single-phase converter grid-connected control method based on dq active reactive cross decouplings
CN1142440C (en) 90-deg phose-lock phase shifter for measuring true reactive power
CN116558548A (en) Stable amplitude control system of high-Q MEMS resonator

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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: 20040728