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

Digital measuring method of frequency and phase Download PDF

Info

Publication number
CN1159592C
CN1159592C CNB021168857A CN02116885A CN1159592C CN 1159592 C CN1159592 C CN 1159592C CN B021168857 A CNB021168857 A CN B021168857A CN 02116885 A CN02116885 A CN 02116885A CN 1159592 C CN1159592 C CN 1159592C
Authority
CN
China
Prior art keywords
phase
frequency
signal
data
mentioned
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
Application number
CNB021168857A
Other languages
Chinese (zh)
Other versions
CN1382995A (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

The present invention relates to a digital measuring method of frequency and phase, which belongs to the technical field of circuit parameter measurement. The present invention has the technical scheme that an alternating input signal is sampled; two signals with phase and phase difference of 90 DEG are obtained by two groups of pretreatment; then, based on the size of the two signals, locked phase data are calculated; further, the measurement of frequency and phase is realized based on a phase locking structure; thus, phase information contained in a signal waveform can be fully utilized and the locked phase data are updated according to sampling speed; analysis accuracy of phase discrimination is enhanced, the speed of phase locking tracking can be enhanced simultaneously, and measuring time is reduced. In addition, a phase discrimination section of the present invention is obtained in a method that a locking phase and the locked phase are subtracted; as a result, when the locking phase is basically stable, the phase locking can approach the locked phase by a zero mean value deviation, which fundamentally overcomes the defect that calculating phase simply according to a zero crossing point is seriously disturbed by noise; the accuracy of phase measurement is greatly enhanced.

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=GN.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:
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
Figure C0211688500054
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: H LP ( s ) = H 0 ( s ) s , Make the transport function of measuring process simultaneously H ( s ) = s · H 0 ( s ) s 2 + 2 π · H 0 ( s ) Stable, and make H ′ ( s ) = H ( s ) s = H 0 ( s ) s 2 + 2 π · H 0 ( s ) 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 2 &pi; &CenterDot; f max F s < J TH < 2 &pi; &CenterDot; ( 1 - f max F s ) Constraint, so transition detection data J (n) with by phase-locked position α 0(n) relation can be according to following formulate:
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&omega; ) = B 1 ( 1 ) + B 1 ( 2 ) e - j&omega; + B 1 ( 3 ) e - j 2 &omega; + B 1 ( 4 ) e - j 3 &omega; A 1 ( 1 ) + A 1 ( 2 ) e - j&omega; + A 1 ( 3 ) e - j 2 &omega; + B 1 ( 4 ) e - j 3 &omega;
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&omega; ) = B 2 ( 1 ) + B 2 ( 2 ) e - j&omega; + B 2 ( 3 ) e - j 2 &omega; A 2 ( 1 ) + A 2 ( 2 ) e - j&omega; + A 2 ( 3 ) e - j 2 &omega;
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 C0211688500082
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:
Figure C0211688500083
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.804868·y 2(n-1)+0.708540·Δα(n)
The complex frequency domain transport function of proportional delay link is approximately:
H 2 ( s ) = 880.3179 s + 242.4401
The computing formula of inertial element is:
f(n)=0.932642f(n-1)+0.067358y(n)
The complex frequency domain transport function formal approximation of 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 ) ) &CenterDot; H 3 ( s ) = 66198.5 &CenterDot; s + 635019 s ( s 2 + 314.668 &CenterDot; s + 17509.8 )
So, have:
H 0 ( s ) = H LP ( s ) &CenterDot; s = 66198.5 &CenterDot; s + 635019 s 2 + 314.668 &CenterDot; s + 17509.8
The transport property of the phase-locked system that calculates thus, is:
H ( s ) = s &CenterDot; H 0 ( s ) s 2 + 2 &pi; H 0 ( s ) = 66198.5 &CenterDot; s 2 + 635019 &CenterDot; s s 4 + 314.668 &CenterDot; s 3 + 17509.8 &CenterDot; s 2 + 415937 &CenterDot; 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 &prime; ( s ) = H 0 ( s ) s 2 + 2 &pi; &CenterDot; H 0 ( s ) = 66198.5 &CenterDot; s + 635019 s 4 + 314.668 &CenterDot; s 3 + 17509.8 &CenterDot; s 2 + 415937 &CenterDot; 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 f max F s J TH < 2 &pi; &CenterDot; ( 1 - f max F s ) The computing formula of transition detection data J (n) is:
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))+K·2π
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 )
Figure C0211688500112
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:
Figure C0211688500113
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:
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, the digital measuring method of a kind of frequency and phase place is characterized in that this method comprises the steps:
(1) establishing the ac input signal that needs survey frequency and phase place is u (t)=U mSin (2 π ft+ θ) carries out first group of sampling pre-service and second group of sampling pre-service simultaneously to this signal, and in the sampling preprocessing process, the sample frequency of two groups of discrete signals is identical, and should be greater than 3f Max, obtain discrete signal respectively
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 ) ) ;
F wherein sBe sample frequency, f is the frequency of this AC signal, and satisfies f Min<f<f Max, f MinBe the lower-frequency limit of tested AC signal, f MaxBe the upper frequency limit of tested AC signal, θ is the initial phase of this AC signal, gain function k 1(f), gain function k 2(f), phase shift function # 1(f), phase shift function # 2(f) be the arbitrary function that satisfy following relational expression relevant with frequency input signal f:
Figure C0211688500022
(2) the discrete digital signal u that above-mentioned (1) step is obtained 1(n) and u 2(n) be combined into the coordinate (u that initial point is the Cartesian coordinates mid point A of O 2(n), u 1(n)), thus obtained vector With the angle of transverse axis positive dirction as by phase-locked bit data α 0(n);
(3) with above-mentioned (2) step obtain by phase-locked bit data α 0(n) with feed back from output frequency f (n) and pll phase data α ' after integration and the phase hit adjustment in following (7) step are handled (n) gets poorly, obtain phase error Δ α (n);
(4) the phase error Δ α (n) that above-mentioned (3) 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: H LP ( s ) = H 0 ( s ) s , Make the transport function of measuring process simultaneously H ( s ) = s &CenterDot; H 0 ( s ) s 2 + 2 &pi; &CenterDot; H 0 ( s ) Stable, and make H &prime; ( s ) = H ( s ) s = H 0 ( s ) s 2 + 2 &pi; &CenterDot; H 0 ( s ) 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 (4) measured signal that obtains of step and following (7) step are obtained (n) carries out integration according to following formula and adds up, and obtains intermediate phase data α 1(n):
&alpha; 1 ( n ) = &alpha; &prime; ( n - 1 ) + 2 &pi; &CenterDot; f ( n ) F s
(6) to above-mentioned (2) 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, constant J THSatisfy 2 &pi; &CenterDot; f max F s < J TH < 2 &pi; &CenterDot; ( 1 - f max F s ) , So transition detection data J (n) with by phase-locked position α 0(n) relation table is shown:
(7) the intermediate phase data α that above-mentioned (5) step is obtained 1(n) with above-mentioned (6) transition detection data J (n) addition that obtains of step, promptly α ' (n)=α 1(n)+and J (n), be entered into above-mentioned (3) step to handle (n) with the pll phase data α ' that constitutes phase-locked loop;
(8) the intermediate phase data α that above-mentioned (6) step is obtained 1(n) carry out phase compensation and data adjustment and handle, obtain signal phase α (the n)=α of required measurement 1(n)-θ 1(f (n))+K2 π, wherein, function # 1(f) in above-mentioned (1) step input signal being carried out the phase shift function that first group of sampling produces after the pre-service, K is for adjusting coefficient, and its value satisfies the integer of 0≤α (n)<2 π for making α (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 CN1382995A (en) 2002-12-04
CN1159592C true 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 (2)

* 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
CN105656484A (en) * 2015-12-29 2016-06-08 中国电子科技集团公司第二十六研究所 Differential phase radio frequency phase shifting method and system

Families Citing this family (32)

* 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
CN101789601B (en) * 2010-03-16 2012-07-18 许昌开普电器检测研究院 Real time digital system (RTDS) phase-locking synchronous element
CN101806832B (en) * 2010-04-15 2012-07-04 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN101813725B (en) * 2010-04-15 2012-07-04 南京邮电大学 Method for measuring phase difference of low-frequency signals
CN102466765B (en) * 2010-11-19 2014-01-08 北京中纺锐力机电有限公司 Power supply inverter and power supply phase detection circuit thereof
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
CN103188190B (en) * 2011-12-28 2016-03-02 中国电信股份有限公司 A kind of method and system measuring carrier signal interference
CN103575991B (en) * 2012-07-26 2016-02-10 南京邮电大学 A kind of accurate measurement method of 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
CN102928662B (en) * 2012-10-31 2015-02-04 江汉大学 Method and device for measuring signal frequency stability
CN105092966B (en) * 2014-04-21 2018-03-27 西门子公司 Signal frequency detection method, device and equipment protection method and protection equipment
CN104280610B (en) * 2014-10-10 2017-03-29 深圳晶福源科技股份有限公司 A kind of method of phaselocked loop machine and its detection mains frequency
CN104330623B (en) * 2014-10-29 2017-05-24 广东电网有限责任公司电力科学研究院 Sine wave parameter measuring method and system in electric power system
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
CN105044455B (en) * 2015-07-09 2017-11-24 宁波大学 The frequency of AC signal and the measuring method of phase
CN105093010A (en) * 2015-07-21 2015-11-25 胜利油田胜利电器有限责任公司 Digital filtering method for extracting waves with specific frequency from frequency-mixing periodic signals
CN105203842B (en) * 2015-09-18 2018-03-20 广东电网有限责任公司电力科学研究院 The method and system of SIN function reference signal is extracted from electric power signal
CN105223419B (en) * 2015-09-18 2017-11-14 广东电网有限责任公司电力科学研究院 The all phase difference detection method and system of electric power signal
CN105262480A (en) * 2015-10-22 2016-01-20 江苏绿扬电子仪器集团有限公司 System for recovering clock signal from high-speed serial signals
FR3055417B1 (en) * 2016-08-24 2020-10-02 Schneider Electric Ind Sas DETERMINATION OF THE FREQUENCY OF AN ALTERNATIVE SIGNAL
CN108037358B (en) * 2017-12-12 2021-08-06 深圳市绘王动漫科技有限公司 Single-chip microcomputer frequency testing system and method
CN110501728B (en) * 2018-05-16 2022-03-29 清华大学 Frequency discrimination method and device for time hopping signal of positioning base station
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
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
CN114608627B (en) * 2022-03-14 2022-12-20 浙江大学 High-precision wide-range phase measurement system based on over-quadrant detection

Cited By (2)

* 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
CN105656484A (en) * 2015-12-29 2016-06-08 中国电子科技集团公司第二十六研究所 Differential phase radio frequency phase shifting method and system

Also Published As

Publication number Publication date
CN1382995A (en) 2002-12-04

Similar Documents

Publication Publication Date Title
CN1159592C (en) Digital measuring method of frequency and phase
CN1293365C (en) Electronic field device with a sensor unit for capacitive level measurement in a container
CN105629060B (en) Power grid frequency measurement method and device based on optimal baseband filtering
CN101055299A (en) Impact load electric energy metering method
CN109633262A (en) Three phase harmonic electric energy gauging method, device based on composite window multiline FFT
CN1821794A (en) Integrator for Rogowski coil and its realizing method
CN104052323B (en) Neutral-point voltage balance system and method based on power-factor angle
CN1946071A (en) Method for single path detecting input signal phase difference and relative amplitude
CN1800864A (en) Reactive power measurement method based on digital filtering and measurement system thereof
CN1784591A (en) Operating method for a coriolis gyroscope and evaluation/adjustment electronic system and pulse modulator suitable therefor
CN1692284A (en) Instantaneous voltage lowering detection device
CN102664588A (en) Digital demodulation method and device for frequency modulation and amplitude modulation signals
CN108333426A (en) Power system frequency measurement method based on fourier algorithm
CN1976225A (en) Frequency tracking power frequency digital filtering method
CN103018555A (en) High-precision electric power parameter software synchronous sampling method
CN113595453A (en) High-response rotary transformer decoding method and system
CN104569581B (en) Multi-level set and single-cycle estimation method of power grid frequency measuring
CN109358228B (en) Power grid voltage positive and negative sequence component real-time estimation method based on double enhanced phase-locked loops
CN101063695A (en) Reactive power calculating circuit and method
CN114421838A (en) High-precision rotary transformer soft decoding implementation method
CN105337612A (en) Software phase locked ring capable of filtering out power frequency interference
CN102095932B (en) Detection method of voltage phase at access point of photovoltaic inverter
CN1658507A (en) Double correction software phase-lock loop implementation method
CN109521269A (en) A kind of am signals digitlization frequency measuring method
CN1142440C (en) 90-deg phose-lock phase shifter for measuring true reactive power

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