CN104569581B - Multi-level set and single-cycle estimation method of power grid frequency measuring - Google Patents
Multi-level set and single-cycle estimation method of power grid frequency measuring Download PDFInfo
- Publication number
- CN104569581B CN104569581B CN201510047851.6A CN201510047851A CN104569581B CN 104569581 B CN104569581 B CN 104569581B CN 201510047851 A CN201510047851 A CN 201510047851A CN 104569581 B CN104569581 B CN 104569581B
- Authority
- CN
- China
- Prior art keywords
- signal
- threshold value
- threshold
- fundamental frequency
- sinusoidal
- 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
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000005070 sampling Methods 0.000 claims abstract description 40
- 238000005259 measurement Methods 0.000 claims abstract description 8
- 238000001914 filtration Methods 0.000 claims description 2
- 230000000737 periodic effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000000691 measurement method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
Landscapes
- Measuring Frequencies, Analyzing Spectra (AREA)
Abstract
本发明提供了一种电网频率测量的多水平集单周期估计方法:首先对输入的信号进行低通滤波处理,再进行采样;然后设置2个及以上的阈值与正弦周期信号水平相交,并确定每个阈值与正弦曲线2个切线斜率相同的相邻交点和临近这2个交点的信号采样点,若某个阈值的2个交点均与信号采样点重合,则直接计算其基波频率,否则将上述交点附近的信号采样点分别代入Lagrange插值公式,计算该阈值相应的基波频率估计值;最后根据每个阈值与正弦信号交点切线斜率绝对值的大小确定由各阈值获得的多水平集基波频率估计值的权值,利用加权平均法得到最终基波频率估计值。本发明运用多个阈值实现多水平集单周期估计频率,具有实时性好、精度高的优点。
The present invention provides a multi-level-set single-period estimation method for power grid frequency measurement: first, perform low-pass filter processing on the input signal, and then perform sampling; then set two or more thresholds to intersect with the sinusoidal period signal level, and determine Each threshold has the same adjacent intersection points with the same slope as the 2 tangent lines of the sinusoidal curve and the signal sampling points adjacent to these two intersection points. If the two intersection points of a certain threshold coincide with the signal sampling points, then directly calculate its fundamental frequency, otherwise Substitute the signal sampling points near the intersection above into the Lagrange interpolation formula to calculate the estimated value of the fundamental frequency corresponding to the threshold; finally, determine the multi-level set basis obtained by each threshold according to the absolute value of the slope of the tangent line at the intersection of each threshold and the sinusoidal signal. The weight of the estimated value of the fundamental frequency is obtained by using the weighted average method to obtain the final estimated value of the fundamental frequency. The invention uses multiple thresholds to realize multi-level set single-cycle frequency estimation, and has the advantages of good real-time performance and high precision.
Description
技术领域technical field
本发明属于电力领域,具体涉及一种电网频率测量方法。The invention belongs to the field of electric power, and in particular relates to a method for measuring the frequency of a grid.
背景技术Background technique
现有的基波频率测量方法中,常采用整周期采样点计数法,该方法首先确定基波的周期,在确定基波周期后,再根据基波周期内采样点之间的时间间隔确定基波的频率。该方法在采样周期较少时,所测量的频率精度很差,而在采样周期较长时,又不能满足实时性的要求,此外,该方法在测量频率时没有滤除高频谐波信号,当谐波干扰严重时,会影响整个基波周期的确定,最终导致所测量的频率不准确。In the existing fundamental wave frequency measurement method, the whole cycle sampling point counting method is often used. In this method, the cycle of the fundamental wave is determined first. the frequency of the wave. When the sampling period is small, the accuracy of the measured frequency is very poor, and when the sampling period is long, it cannot meet the real-time requirements. In addition, this method does not filter out high-frequency harmonic signals when measuring frequency. When the harmonic interference is severe, it will affect the determination of the entire fundamental wave cycle, which will eventually lead to inaccurate measured frequencies.
发明内容Contents of the invention
本发明的目的是为了克服上述电网频率测量方法的不足,提出一种电网频率测量的多水平集单周期估计方法,此方法可以有效解决现有的频率测量方法在测量电网频率时精度较差及实时性较差的问题。The purpose of the present invention is to overcome the shortcomings of the above grid frequency measurement method, and propose a multi-level set single-cycle estimation method for grid frequency measurement. The problem of poor real-time performance.
本发明提出了一种电网频率测量的多水平集单周期估计方法,所述方法包括下述步骤:The present invention proposes a multi-level-set single-period estimation method for grid frequency measurement, said method comprising the following steps:
步骤一:对输入信号用低通滤波器进行低通滤波处理;消除高频谐波的干扰;Step 1: Perform low-pass filtering processing on the input signal with a low-pass filter; eliminate the interference of high-frequency harmonics;
步骤二:选择合适的采样频率fs和采样长度N,对信号进行等间隔采样,采样频率fs应不低于信号所含最高谐波成分的频率的2倍,得到信号离散采样序列x(tn),n=0,1,2,…,N-1;Step 2: Select the appropriate sampling frequency f s and sampling length N, and sample the signal at equal intervals. The sampling frequency f s should not be lower than twice the frequency of the highest harmonic component contained in the signal, and obtain the signal discrete sampling sequence x( t n ), n=0,1,2,...,N-1;
步骤三:找出离散采样序列x(tn)中最大值MAX和最小值MIN,然后设置m个阈值Yi,m为大于等于2的整数,i=1,2,…,m;Step 3: Find the maximum value MAX and the minimum value MIN in the discrete sampling sequence x(t n ), and then set m thresholds Y i , where m is an integer greater than or equal to 2, i=1, 2,..., m;
步骤四:确定每个阈值与正弦曲线的2个切线斜率相同的相邻交点和临近这2个交点的信号采样点,2个切线斜率相同的相邻交点的时间间隔即为信号的1个基波周期;如果某个阈值的2个交点均与信号采样点重合,则直接计算基波频率估计值fi;如果某个阈值的2个交点不与信号采样点重合,则将该阈值与正弦信号上述交点附近的信号采样点代入Lagrange插值公式,计算该阈值Yi相应的基波频率估计值;所有阈值计算完毕后,获得的m个基波频率估计值即为多水平集基波频率估计值fi;Step 4: Determine each threshold and the adjacent intersection points with the same tangent slope of the sinusoidal curve and the signal sampling points adjacent to these two intersection points. The time interval between the two adjacent intersection points with the same tangent slope is a basis of the signal wave period; if the two intersection points of a certain threshold coincide with the signal sampling point, then directly calculate the estimated fundamental frequency f i ; if the two intersection points of a certain threshold do not coincide with the signal sampling point, then the threshold and the sine The signal sampling points near the above intersection point of the signal are substituted into the Lagrange interpolation formula to calculate the estimated value of the fundamental frequency corresponding to the threshold Y i ; after all the thresholds are calculated, the obtained m fundamental frequency estimates are multi-level set fundamental frequency estimates value f i ;
步骤五:对在步骤四中得到多水平集基波频率估计值fi进行加权平均,计算最终基波频率估计值f,其中权值qi根据每个阈值与正弦曲线的交点的正弦曲线切线的斜率绝对值|Ki|确定,斜率绝对值越大,权值越小,最终基波频率估计值f=q1f1+q2f2+…+qmfm。Step 5: Perform weighted average on the multi-level set fundamental frequency estimate f i obtained in step 4, and calculate the final fundamental frequency estimate f, where the weight q i is based on the tangent of the sinusoidal curve at the intersection point of each threshold and the sinusoidal curve The absolute value of the slope |K i | is determined, the greater the absolute value of the slope, the smaller the weight, and the final estimated fundamental frequency f=q 1 f 1 +q 2 f 2 +...+q m f m .
所述的方法,步骤三中,所述的阈值Yi应当小于离散采样序列x(tn)中的最大值且大于离散采样序列x(tn)中的最小值,且为保证所设阈值在合理的范围内,消除其它不确定因素引起的干扰,使其满足:0.9MIN+0.1MAX<Yi<0.9MAX+0.1MIN;In the method, in step 3, the threshold Y i should be less than the maximum value in the discrete sampling sequence x(t n ) and greater than the minimum value in the discrete sampling sequence x(t n ), and to ensure that the set threshold Within a reasonable range, eliminate the interference caused by other uncertain factors to meet: 0.9MIN+0.1MAX<Y i <0.9MAX+0.1MIN;
所述的方法,步骤四中,如果某个阈值的2个交点不与信号采样点重合,则将该阈值与正弦信号上述交点附近的信号采样点代入Lagrange插值公式,计算该阈值Yi相应的基波频率估计值,为简化运算,将该阈值与正弦信号交点附近的采样信号离散数据(t,x(t))代入4次Lagrange插值公式,经过计算得到阈值Yi所对应的基波频率估计值fi。In the described method, in step 4, if 2 intersection points of a certain threshold do not coincide with the signal sampling points, then the signal sampling points near the above-mentioned intersection points of the threshold and the sinusoidal signal are substituted into the Lagrange interpolation formula to calculate the corresponding threshold Y i The estimated value of the fundamental frequency, in order to simplify the calculation, the discrete data (t, x(t)) of the sampled signal near the intersection of the threshold and the sinusoidal signal is substituted into the quadratic Lagrange interpolation formula, and the fundamental frequency corresponding to the threshold Y i is obtained through calculation Estimated value f i .
所述的方法,步骤五中,权值qi根据每个阈值与正弦曲线的交点的正弦曲线切线的斜率绝对值|Ki|确定,fi所对应的权值为: In the described method, in step five , the weight q i is determined according to the slope absolute value |K i |
有益效果:本发明采用多水平集实现电网频率测量,克服了以往单阈值方法易被噪声干扰的缺陷,且本发明可在单周期内实现频率测量,具有精度高、实时性好的特点。Beneficial effects: the invention adopts multi-level sets to realize power grid frequency measurement, which overcomes the defect that the previous single-threshold method is easily disturbed by noise, and the invention can realize frequency measurement in a single cycle, and has the characteristics of high precision and good real-time performance.
附图说明Description of drawings
图1是本发明处理流程的原理框图;Fig. 1 is a functional block diagram of the process flow of the present invention;
图2是本发明单阈值频率估计原理图;Fig. 2 is a schematic diagram of single threshold frequency estimation in the present invention;
图3是本发明交点与采样点重合的频率估计原理图;Fig. 3 is the schematic diagram of the frequency estimation in which the intersection point and the sampling point coincide in the present invention;
图4是本发明交点与采样点不重合的频率估计原理图;Fig. 4 is the schematic diagram of the frequency estimation where the intersection point and the sampling point do not coincide in the present invention;
图5是本发明多阈值频率估计原理图。Fig. 5 is a principle diagram of multi-threshold frequency estimation in the present invention.
具体实施方式detailed description
本发明提出了一种电网频率测量的多水平集单周期估计方法。对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。The invention proposes a multi-level set single-period estimation method for grid frequency measurement. The present invention will be described in further detail. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
1.本发明实施例对输入的信号先用低通滤波器进行低通滤波处理,再以采样频率fs=1000Hz对信号进行等间隔取样,找出最大值MAX和最小值MIN;1. In the embodiment of the present invention, the input signal is first low-pass filtered with a low-pass filter, and then the signal is sampled at equal intervals with a sampling frequency f s =1000 Hz to find the maximum value MAX and the minimum value MIN;
基波正弦周期信号的模型为:The model of the fundamental sinusoidal periodic signal is:
x(t)=A sin(2πft+θ)+B (1)x(t)=A sin(2πft+θ)+B (1)
式中A表示正弦周期信号的幅值,f表示正弦周期信号的频率,θ表示正弦周期信号的初相位,B表示正弦周期信号的直流分量。如图2所示,该正弦周期信号x(t)与某阈值b相交且正弦曲线切线斜率相同的相邻的2个交点的时间间隔即为信号的1个基波周期。因此,通过这2个交点,就能得到信号的一个基波频率估计值。In the formula, A represents the amplitude of the sinusoidal periodic signal, f represents the frequency of the sinusoidal periodic signal, θ represents the initial phase of the sinusoidal periodic signal, and B represents the DC component of the sinusoidal periodic signal. As shown in Figure 2, the time interval between two adjacent intersection points where the sinusoidal periodic signal x(t) intersects with a certain threshold b and the slope of the tangent line of the sinusoidal curve is the same is one fundamental period of the signal. Therefore, through these two intersection points, an estimated value of the fundamental frequency of the signal can be obtained.
2.以采样频率fs对公式(1)所示的周期模拟信号进行等间距离散采样,一般情况下,实际过程中阈值b与正弦信号的交点一般很难与信号采样点重合,因此分两种情况:2. The periodical analog signal shown in formula (1) is sampled at equal intervals with the sampling frequency f s . In general, in the actual process, the intersection point of the threshold b and the sinusoidal signal is generally difficult to coincide with the signal sampling point, so it is divided into two Cases:
①如图3所示,阈值b的上述交点与信号采样点重合,应该直接计算这个阈值相应的基波频率估计值:① As shown in Figure 3, the above intersection point of the threshold b coincides with the signal sampling point, and the estimated value of the fundamental frequency corresponding to this threshold should be directly calculated:
式中fg是与阈值b相应的基波频率估计值;where f g is the estimated value of the fundamental frequency corresponding to the threshold b;
②如图4所示,阈值b的交点与信号采样点不重合,通过采样获得交点(tb,b)附近的采样点[tk-2,x(tk-2)]、[tk-1,x(tk-1)]、[tk,x(tk)]、[tk+1,x(tk+1)]及[tk+2,x(tk+2)]。采用Lagrange插值法,可得4次插值多项式L4(t)为:②As shown in Figure 4, the intersection point of the threshold b does not coincide with the signal sampling point, and the sampling points [t k-2 , x(t k-2 )], [t k -1 , x(t k-1 )], [t k , x(t k )], [t k+1 , x(t k+1 )] and [t k+2 , x(t k+2 )]. Using the Lagrange interpolation method, the 4th degree interpolation polynomial L 4 (t) can be obtained as:
将(tb,b)代入(3)得:Substitute (t b ,b) into (3) to get:
L4(tb)=b (4)L 4 (t b )=b (4)
由式(4)解得tb,同理可得tb′,有:Solving formula (4) to get t b , similarly, we can get t b ′, as follows:
式中fg是与阈值b相应的基波频率估计值;至此,完成了对与阈值b相应基波频率值的估计。where f g is the estimated value of the fundamental frequency corresponding to the threshold b; so far, the estimation of the fundamental frequency corresponding to the threshold b has been completed.
3.为叙述方便,下面仅对5个阈值与正弦周期信号相交的情况做出说明:3. For the convenience of description, the following only explains the intersection of the five thresholds and the sinusoidal periodic signal:
设置5个与正弦周期采样信号相交的阈值Yi,且使其在合理范围内,有0.9MIN+0.1MAX<Yi<0.9MAX+0.1MIN,其中i=1,2,3,4,5。由上述原理可得与每个阈值相对应的基波频率估计值,可得与阈值Y1对应的基波频率估计值为f1;与阈值Y2对应的基波频率估计值为f2;与阈值Y3对应的基波频率估计值为f3;与阈值Y4对应的基波频率估计值为f4;与阈值Y5对应的基波频率估计值为f5。根据各阈值Yi与正弦周期采样信号交点所在正弦曲线处切线的斜率绝对值|Ki|的大小,其中Ki的值由Yi与正弦曲线上述交点的4次插值多项式L4(t)的导数求出,即:Set 5 thresholds Y i that intersect with the sinusoidal periodic sampling signal, and make them within a reasonable range, 0.9MIN+0.1MAX<Y i <0.9MAX+0.1MIN, where i=1,2,3,4,5 . The estimated value of the fundamental frequency corresponding to each threshold can be obtained from the above principles, and the estimated value of the fundamental frequency corresponding to the threshold Y 1 is f 1 ; the estimated value of the fundamental frequency corresponding to the threshold Y 2 is f 2 ; The estimated fundamental frequency corresponding to the threshold Y 3 is f 3 ; the estimated fundamental frequency corresponding to the threshold Y 4 is f 4 ; the estimated fundamental frequency corresponding to the threshold Y 5 is f 5 . According to the magnitude of the slope absolute value |K i | of the tangent line at the sinusoidal curve at the intersection point of each threshold Y i and the sinusoidal period sampling signal, the value of K i is determined by the 4th degree interpolation polynomial L 4 (t) of the above intersection point of Y i and the sinusoidal curve The derivative of is found, that is:
给各阈值所对应的基波频率估计值fi加权,绝对值越大,权值越小,fi所对应的权值为i=1,2,3,4,5;再利用加权平均法计算得到最终的频率估计值:Weight the estimated fundamental frequency f i corresponding to each threshold, the larger the absolute value, the smaller the weight, and the weight corresponding to f i is i = 1, 2, 3, 4, 5; then use the weighted average method to calculate the final frequency estimate:
式中f是最终的基波频率估计值。where f is the final fundamental frequency estimate.
至此,完成了电网频率测量的多水平集单周期估计。此方法计算简单,通过阈值与采样信号正弦曲线的切线斜率相同的相邻交点便能测得电网基波频率,并且采用了4次Lagrange插值法和加权的方法,拥有非常好的实时性和准确性。So far, the multi-level set single-period estimation of grid frequency measurement has been completed. This method is simple to calculate, and the fundamental frequency of the power grid can be measured through the adjacent intersection point whose threshold value is the same as the slope of the tangent line of the sampled signal sinusoidal curve, and uses the 4th Lagrange interpolation method and weighting method, which has very good real-time performance and accuracy sex.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510047851.6A CN104569581B (en) | 2015-01-30 | 2015-01-30 | Multi-level set and single-cycle estimation method of power grid frequency measuring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510047851.6A CN104569581B (en) | 2015-01-30 | 2015-01-30 | Multi-level set and single-cycle estimation method of power grid frequency measuring |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104569581A CN104569581A (en) | 2015-04-29 |
CN104569581B true CN104569581B (en) | 2017-05-03 |
Family
ID=53086118
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510047851.6A Expired - Fee Related CN104569581B (en) | 2015-01-30 | 2015-01-30 | Multi-level set and single-cycle estimation method of power grid frequency measuring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104569581B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105183998B (en) * | 2015-09-15 | 2019-07-26 | 浪潮(北京)电子信息产业有限公司 | The emulation mode and system of periodic signal in a kind of chip circuit |
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 |
CN109633266B (en) * | 2019-02-26 | 2020-12-01 | 重庆新世杰电气股份有限公司 | Frequency measurement method, system, device and computer readable storage medium |
CN112151065B (en) * | 2019-06-28 | 2024-03-15 | 力同科技股份有限公司 | Single tone signal frequency detection method, device, equipment and computer storage medium |
CN113075452B (en) * | 2021-03-11 | 2022-09-09 | 国网浙江余姚市供电有限公司 | High-precision rapid frequency detection system and method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH06300793A (en) * | 1993-04-14 | 1994-10-28 | Pioneer Electron Corp | Fundamental frequency detecting method for ac signal |
CN101539596A (en) * | 2008-03-21 | 2009-09-23 | 上海威能电力科技有限公司 | Method for monitoring electric network frequency |
CN102116798A (en) * | 2011-03-07 | 2011-07-06 | 深圳市锐能微科技有限公司 | Power grid frequency measurement method and device |
CN102608415B (en) * | 2012-02-10 | 2015-06-17 | 南京弘毅电气自动化有限公司 | Software frequency tracking algorithm on basis of weighted double fitting |
CN102879639A (en) * | 2012-09-13 | 2013-01-16 | 华中科技大学 | Real-time frequency measuring method in power system |
-
2015
- 2015-01-30 CN CN201510047851.6A patent/CN104569581B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN104569581A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104569581B (en) | Multi-level set and single-cycle estimation method of power grid frequency measuring | |
CN101833036B (en) | Method for measuring instantaneous phase of alternating current | |
CN103344825B (en) | Based on the electric energy metered system of AC sampling | |
CN101806832B (en) | Measuring method for frequencies of low-frequency signals | |
CN101813725B (en) | Method for measuring phase difference of low-frequency signals | |
CN103941088A (en) | Method for quickly measuring frequency of electric power system based on three-phase signals | |
CN102035554B (en) | System and method for metering and analyzing electric energy as well as analog-to-digital conversion circuit | |
CN103983849B (en) | A kind of Electric Power Harmonic Analysis method of real-time high-precision | |
CN102095934B (en) | Measuring method for phase difference of alternating current signals | |
CN102033161A (en) | Frequency measuring method of alternating current signal | |
CN108333426A (en) | Power system frequency measurement method based on fourier algorithm | |
CN103185837A (en) | Method for measuring frequency of power system | |
CN106501602B (en) | A kind of fundamental wave measurement method of parameters based on the separation of sliding window frequency spectrum | |
CN103149415A (en) | High precision high frequency sin wave virtual value real-time detection method | |
CN105606900A (en) | Single-phase harmonic impedance measuring method based on square wave signals | |
CN102809687B (en) | Digital measurement method for alternating-current frequency | |
CN102253281A (en) | Method for measuring power grid frequency by resisting harmonic interference and automatically changing phase based on software | |
CN103995180B (en) | Power system frequency estimation method taking inequality constraints into consideration | |
CN102495250A (en) | Quasi-synchronous wideband reactive energy meter based on Hilbert algorithm and sampling method thereof | |
CN104181391A (en) | Harmonic detection method of digital power meter | |
CN104236646B (en) | Ultrasonic flowmeter and ultrasonic flow measuring method | |
CN103575979A (en) | Method for digital measuring of alternating current frequency | |
CN104407213B (en) | Power network signal fundamental frequency measurement method | |
CN102778606B (en) | A Digital Measuring Method of Instantaneous Phase of Alternating Current | |
CN204945273U (en) | A kind of power quality data harvester of self-adaptation mains frequency |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170503 |