[go: up one dir, main page]

CN102809687B - Digital measurement method for alternating-current frequency - Google Patents

Digital measurement method for alternating-current frequency Download PDF

Info

Publication number
CN102809687B
CN102809687B CN201210262782.7A CN201210262782A CN102809687B CN 102809687 B CN102809687 B CN 102809687B CN 201210262782 A CN201210262782 A CN 201210262782A CN 102809687 B CN102809687 B CN 102809687B
Authority
CN
China
Prior art keywords
sampling
point
value
frequency
zero
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
CN201210262782.7A
Other languages
Chinese (zh)
Other versions
CN102809687A (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.)
Nanjing Post and Telecommunication University
Original Assignee
Nanjing Post and Telecommunication 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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201210262782.7A priority Critical patent/CN102809687B/en
Publication of CN102809687A publication Critical patent/CN102809687A/en
Application granted granted Critical
Publication of CN102809687B publication Critical patent/CN102809687B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)

Abstract

本发明公开了一种交流电频率的数字化测量方法,针对连续的数字采样信号,在信号过正负峰值之后选取一个采样点P1,在后续的采样点中选取连续的两个点P2和P3,P2和P3的选取条件是P1采样值的负值在区间[P2采样值,P3采样值]内。则可以通过插值的方法在P2和P3所组成的线段上求取一点P4,使得P4的数值等于P1采样值的负值,同时可获取P4点的虚拟发生时间。由P1的采样发生时间和P4的虚拟发生时间计算电信号的零点,由一系列电信号的过零点计算电信号的频率或周期。本发明不需要将低频信号转换成方波,尤其适合于低频正弦信号的频率测量,系统检测方便,硬件开销小;系统的抗干扰能力较强;实现起来简单合理,数据准确、可靠。

The invention discloses a digital measurement method for alternating current frequency. For continuous digital sampling signals, a sampling point P1 is selected after the signal passes the positive and negative peak values, and two consecutive points P2 and P3, P2 are selected in subsequent sampling points. The selection condition of P3 and P3 is that the negative value of P1 sampling value is in the interval [P2 sampling value, P3 sampling value]. Then, a point P4 can be calculated on the line segment composed of P2 and P3 by interpolation method, so that the value of P4 is equal to the negative value of the sampling value of P1, and the virtual occurrence time of point P4 can be obtained at the same time. The zero point of the electrical signal is calculated from the sampling occurrence time of P1 and the virtual occurrence time of P4, and the frequency or period of the electrical signal is calculated from a series of zero-crossing points of the electrical signal. The invention does not need to convert the low-frequency signal into a square wave, and is especially suitable for the frequency measurement of the low-frequency sinusoidal signal. The system is convenient for detection, and the hardware cost is small; the system has strong anti-interference ability; the implementation is simple and reasonable, and the data is accurate and reliable.

Description

一种交流电频率的数字化测量方法A Digital Measuring Method of Alternating Current Frequency

技术领域 technical field

本发明涉及一种交流电频率的数字化测量方法,也可以用于固定频率或频率变化不大的低频正弦信号、三角波信号等的频率测量。The invention relates to a digital measurement method for alternating current frequency, which can also be used for frequency measurement of low-frequency sinusoidal signals, triangular wave signals, etc. with fixed frequency or little frequency change.

背景技术 Background technique

在日常生活、生产过程中常常需要监测信号的频率,测量的频率越准确,应用的效果往往更好。在现有的低频信号的频率测量方法中,多是将低频信号先通过整形电路形成方波,检测方波相邻两个上升沿或者下降沿的时间间隔T,求倒数得出频率。除此之外还有一些软件测量频率的方法,比如:零交法、解析法、误差最小化原理类算法、DFT类算法、正交去调制法等等。但是这些算法有些易于实现但精度较低,有些算法的运算量过大。In daily life and production process, it is often necessary to monitor the frequency of the signal. The more accurate the measured frequency, the better the application effect. In the existing frequency measurement methods for low-frequency signals, the low-frequency signal is first formed into a square wave by a shaping circuit, and the time interval T between two adjacent rising or falling edges of the square wave is detected, and the frequency is obtained by calculating the reciprocal. In addition, there are some methods for measuring frequency by software, such as: zero-crossing method, analytical method, error minimization principle algorithm, DFT algorithm, quadrature demodulation method, etc. However, some of these algorithms are easy to implement but have low precision, and some algorithms require too much computation.

现有技术一:申请号为02107167的中国专利公开了一种三相交流电频率的测量方法和装置,通过采样电压或电流信号,求取电压或电流旋转矢量的角速度,然后再利用旋转矢量角速度折算频率。该测量装置虽然抗干扰能力强,但是缺点是利用旋转矢量角速度折算频率时需要大量复杂的运算,并且该测量装置专用于三相交流电频率测量,不能用于民用单相交流电的频率测量,更不能用于普通非三相低频信号的频率测量。Existing technology 1: Chinese patent application No. 02107167 discloses a method and device for measuring the frequency of three-phase alternating current. By sampling voltage or current signals, the angular velocity of the voltage or current rotation vector is obtained, and then converted by the angular velocity of the rotation vector. frequency. Although the measuring device has strong anti-interference ability, its disadvantage is that it needs a lot of complicated calculations when using the rotational vector angular velocity to convert the frequency, and the measuring device is dedicated to the frequency measurement of three-phase AC power, and cannot be used for the frequency measurement of civil single-phase AC power, let alone It is used for frequency measurement of ordinary non-three-phase low-frequency signals.

现有技术二:申请号201010150157的中国专利公开了一种低频率信号的频率测量方法,其实质也是一种过零点检测方法,但这种方法可能存在运算量较大的情形。Prior Art 2: Chinese Patent Application No. 201010150157 discloses a frequency measurement method for low-frequency signals, which is essentially a zero-crossing detection method, but this method may have a large amount of computation.

发明内容 Contents of the invention

本发明所要解决的技术问题是针对现有技术中交流信号的频率测量精度不够准确或者是测量过程中运算量过大的缺点,提出一种交流电频率的数字化测量方法,该方法也可以用于固定频率或频率变化不大的低频正弦信号的频率测量。The technical problem to be solved by the present invention is to propose a digital measurement method for AC frequency, which can also be used for fixed Frequency measurement of low frequency sinusoidal signals whose frequency or frequency does not vary much.

本发明为解决上述技术问题采用以下技术方案:The present invention adopts the following technical solutions for solving the problems of the technologies described above:

一种交流电频率的数字化测量方法,包括以下步骤:A digital measurement method for alternating current frequency, comprising the following steps:

步骤1),对被测电信号进行采样,得到被测电信号的采样值,然后生成采样信号;Step 1), sampling the electrical signal under test, obtaining the sampling value of the electrical signal under test, and then generating a sampling signal;

步骤2),在被测电信号的采样信号中,当被测电信号的周波过任意一个峰值后未到达零点时选择一个采样点作为第一采样点P1i,设该第一采样点P1i的采样时间为T1i,采样值为S1iStep 2), in the sampling signal of the electrical signal under test, when the cycle of the electrical signal under test does not reach the zero point after passing through any peak value, select a sampling point as the first sampling point P1 i , and set the first sampling point P1 i The sampling time of is T1 i , and the sampling value is S1 i ;

步骤3),当采样信号越过零点后未到达下一个峰值时,在该段采样信号中选取连续的两个采样点,即第二采样点P2i和第三采样点P3i,设这两个点的采样时间分别是T2i和T3i,采样值分别为S2i和S3i,其中采样值S2i和S3i需满足|S2i|≤|S1i|≤|S3i|;Step 3), when the sampling signal does not reach the next peak value after crossing the zero point, select two consecutive sampling points in the sampling signal, that is, the second sampling point P2 i and the third sampling point P3 i , set these two The sampling times of the points are T2 i and T3 i respectively, and the sampling values are S2 i and S3 i respectively, where the sampling values S2 i and S3 i need to satisfy |S2 i |≤|S1 i |≤|S3 i |;

步骤4),将第一采样点P1i采样值的相反值所对应的点作为虚拟采样点P4i,计算虚拟采样点P4i的虚拟发生时间 T 4 i = T 2 i + ( T 3 i - T 2 i ) × ( S 1 i + S 2 i ) S 2 i - S 3 i ; Step 4), take the point corresponding to the opposite value of the sampling value of the first sampling point P1 i as the virtual sampling point P4 i , and calculate the virtual occurrence time of the virtual sampling point P4 i T 4 i = T 2 i + ( T 3 i - T 2 i ) × ( S 1 i + S 2 i ) S 2 i - S 3 i ;

步骤5),计算过零点时间: Step 5), calculate the zero-crossing time:

步骤6),重复步骤2)至步骤5)得到若干个过零点时间,Tz1,Tz2,Tz3...Tzi,Tzi+1,Tzi+2...Tzn,其中,i=1、2、…n,n为正整数;则被测电信号的周期:Tpi=Tzi+2-Tzi或者Tpi=2×(Tzi+1-Tzi),被测电信号的频率: F i = 1 T pi = 1 T zi + 2 - T zi 或者: F i = 1 T pi = 1 2 × ( T zi + 1 - T zi ) . Step 6), repeat step 2) to step 5) to obtain several zero-crossing times, T z1 , T z2 , T z3 ... T zi , T zi+1 , T zi+2 ... T zn , where, i=1, 2,...n, n is a positive integer; then the period of the measured electrical signal: T pi =T zi+2 -T zi or T pi =2×(T zi+1 -T zi ), the measured The frequency of the electrical signal: f i = 1 T p = 1 T the zi + 2 - T the zi or: f i = 1 T p = 1 2 × ( T the zi + 1 - T the zi ) .

进一步的,本发明的一种交流电频率的数字化测量方法,步骤1)所述对被测电信号进行采样是等时间间隔采样或者是不等时间间隔采样。Furthermore, in the digital measurement method of AC frequency of the present invention, the sampling of the electrical signal under test in step 1) is sampling at equal time intervals or sampling at unequal time intervals.

进一步的,本发明的一种交流电频率的数字化测量方法,步骤1)所述的采样为对被测电信号的整周波进行采样。Furthermore, in the digital measurement method of AC frequency of the present invention, the sampling in step 1) is to sample the entire cycle of the electrical signal under test.

进一步的,本发明的一种交流电频率的数字化测量方法,还包括依步骤2)的原则分别选取采样值不同的采样点作为第一采样点P1i,然后重复步骤3)至步骤5)进行若干次过零点计算后取平均值,得到过零点时间。Further, a digital measurement method of AC frequency in the present invention also includes selecting sampling points with different sampling values as the first sampling point P1 i according to the principle of step 2), and then repeating steps 3) to 5) for several Take the average value after zero-crossing calculations to get the zero-crossing time.

进一步的,本发明的一种交流电频率的数字化测量方法,还包括以下步骤:重复步骤1)到步骤6),测量出被测电信号的若干个周期或频率值,然后对得到的若干个周期或频率值采用平均法计算出最终频率。Further, a digital measurement method of AC frequency in the present invention also includes the following steps: repeating step 1) to step 6), measuring several periods or frequency values of the electrical signal under test, and then analyzing the obtained several periods Or the frequency values are averaged to calculate the final frequency.

进一步的,本发明的一种交流电频率的数字化测量方法,在所述步骤3)中,当选取的第一至第三采样点的采样值符合|S2i|=|S1i|=|S3i|条件时,采取以下两种处理方案中的任意一种:Furthermore, in the digital measurement method of AC frequency of the present invention, in the step 3), when the sampling values of the selected first to third sampling points meet |S2 i |=|S1 i |=|S3 i |Condition, take any one of the following two processing schemes:

a),重新选取第二采样点P2i和第三采样点P3i,使得第二采样点的采样值S2i和第三采样点的采样值S3i须满足|S2i|<|S3i|,然后继续步骤4)至步骤6);a), reselect the second sampling point P2 i and the third sampling point P3 i , so that the sampling value S2 i of the second sampling point and the sampling value S3 i of the third sampling point must satisfy |S2 i |<|S3 i | , then proceed to step 4) to step 6);

b),在第二采样点P2i与第三采样点P3i的采样时间区间[T2i,T3i]上任取一点作为虚拟采样点P4i所对应的虚拟采样时间T4i,然后继续步骤5)至步骤6)。b) Select any point on the sampling time interval [T2 i , T3 i ] between the second sampling point P2 i and the third sampling point P3 i as the virtual sampling time T4 i corresponding to the virtual sampling point P4 i , and then proceed to step 5 ) to step 6).

进一步的,本发明的一种交流电频率的数字化测量方法,在所述方案b)中,取第二采样点P2i与第三采样点P3i的采样时间区间[T2i,T3i]上的中点,计算虚拟采样点P4i的虚拟发生时间 T 4 i = T 3 i + T 2 i 2 . Further, in the method for digitally measuring AC frequency of the present invention, in the scheme b), take the sampling time interval [T2 i , T3 i ] between the second sampling point P2 i and the third sampling point P3 i Midpoint, calculate the virtual occurrence time of the virtual sampling point P4 i T 4 i = T 3 i + T 2 i 2 .

本发明采用以上技术方案与现有技术相比,具有以下技术效果:Compared with the prior art, the present invention adopts the above technical scheme and has the following technical effects:

1)传统的零交法采用符号相反的两个连续点来确定过零点,虽然算法物理概念清晰,但是容易受谐波、测量误差等的干扰,测量精度低。由选取的3个采样点可经过计算得出过零点。确定了信号的过零点之后,可以计算出交流信号的频率和周期。相比较传统的零交法而言,运算量大致相同,但系统的抗干扰能力有所提高。1) The traditional zero-crossing method uses two consecutive points with opposite signs to determine the zero-crossing point. Although the physical concept of the algorithm is clear, it is easily disturbed by harmonics, measurement errors, etc., and the measurement accuracy is low. From the selected 3 sampling points, the zero-crossing point can be obtained through calculation. After determining the zero crossing point of the signal, the frequency and period of the AC signal can be calculated. Compared with the traditional zero-crossing method, the calculation amount is roughly the same, but the anti-interference ability of the system is improved.

2)本发明的计算量较小,适合嵌入式系统下使用。2) The calculation amount of the present invention is small, and it is suitable for use in an embedded system.

附图说明 Description of drawings

图1是在交流电信号的某一个零点附近进行计算并获得过零点的详细示意图;Figure 1 is a detailed schematic diagram of calculating and obtaining a zero-crossing point near a certain zero point of an AC signal;

图2是对交流电信号进行采样后在每一个零点附近进行过零点计算并进一步计算频率的示意图。Fig. 2 is a schematic diagram of performing zero-crossing calculation near each zero point after sampling the alternating current signal and further calculating the frequency.

具体实施方式 Detailed ways

下面结合附图对本发明的技术方案做进一步的详细说明:Below in conjunction with accompanying drawing, technical scheme of the present invention is described in further detail:

本发明的实质是针对连续的数字采样信号,在信号过正负峰值之后选取一个采样点P1,在后续的采样点中选取连续的两个点P2和P3,P2和P3的选取条件是:P1采样值的负值在区间[P2采样值,P3采样值]内。则可以通过插值的方法在P2和P3所组成的线段上求取一点P4,使得P4的数值等于P1采样值的负值,同时可获取P4点的虚拟发生时间。由P1的采样发生时间和P4点的虚拟发生时间计算电信号的零点,由一系列电信号的零点计算电信号的频率或周期。选取的P1不宜过于接近零点,如果过于接近零点,则可能因为噪声的原因使得测量的准确度不够高。本发明的权力要求书中步骤2)和步骤3)在选取P1,P2,P3上采用了一种较上述方法更为严格的方式,该方法具有更强的抗干扰特性。The essence of the present invention is to select a sampling point P1 after the signal crosses the positive and negative peak values for continuous digital sampling signals, and select two consecutive points P2 and P3 in the subsequent sampling points. The selection conditions of P2 and P3 are: P1 The negative value of the sampled value is in the interval [P2 sampled value, P3 sampled value]. Then, a point P4 can be calculated on the line segment composed of P2 and P3 by interpolation method, so that the value of P4 is equal to the negative value of the sampling value of P1, and the virtual occurrence time of point P4 can be obtained at the same time. The zero point of the electrical signal is calculated from the sampling occurrence time of P1 and the virtual occurrence time of point P4, and the frequency or period of the electrical signal is calculated from a series of zero points of the electrical signal. The selected P1 should not be too close to the zero point, if it is too close to the zero point, the measurement accuracy may not be high enough due to noise. Step 2) and step 3) in the claims of the present invention adopt a stricter method than the above method in selecting P1, P2 and P3, and this method has stronger anti-interference characteristics.

本发明的原理通过测量交流信号的两个周波的频率来进行说明。The principles of the invention are illustrated by measuring the frequency of two cycles of an AC signal.

本发明的具体实施过程如下:Concrete implementation process of the present invention is as follows:

1、对被测电信号进行采样,这里所述的采样为对整周波进行的采样。可以是等时间间隔采样,也可以是不等时间间隔采样。1. Sampling the electrical signal under test, the sampling mentioned here is the sampling of the whole cycle. It can be sampling at equal time intervals or sampling at unequal time intervals.

2、在被测电信号过正负峰值后选择一个采样点P1i,设该采样点的采样时间为T1i,采样值为S1i2. Select a sampling point P1 i after the electrical signal under test passes the positive and negative peak values, set the sampling time of this sampling point as T1 i , and the sampling value is S1 i ;

3、当采样信号越过零点后,在后续的采样值中选取连续的两个点P2i和P3i,设这两个点的采样时间分别是T2i和T3i,两个点的采样值分别为S2i和S3i,这两个点具有以下特点:如果S1i为正数,则S2i和S3i同为负数;如果S1i为负数,则S2i和S3i同为正数,且满足|S2i|≤|S1i|≤|S3i|且|S2i|<|S3i|。3. When the sampling signal crosses the zero point, select two consecutive points P2 i and P3 i in the subsequent sampling values, and set the sampling time of these two points as T2 i and T3 i respectively, and the sampling values of the two points are respectively are S2 i and S3 i , and these two points have the following characteristics: if S1 i is a positive number, then S2 i and S3 i are both negative numbers; if S1 i is a negative number, then S2 i and S3 i are both positive numbers, and It satisfies |S2 i |≤|S1 i |≤|S3 i | and |S2 i |<|S3 i |.

4、计算P4i点的虚拟发生时间T4i,由于P4i的数值等于P1i采样值的负值,则:T4i可表示为 T 4 i = T 2 i + ( T 3 i - T 2 i ) &times; ( S 1 i + S 2 i ) S 2 i - S 3 i ; 4. Calculate the virtual occurrence time T4 i of point P4 i , since the value of P4 i is equal to the negative value of the sampling value of P1 i , then: T4 i can be expressed as T 4 i = T 2 i + ( T 3 i - T 2 i ) &times; ( S 1 i + S 2 i ) S 2 i - S 3 i ;

5、当选取的采样点的采样值符合|S2i|=|S1i|=|S3i|条件时,可以采取两种处理方法:一种方法是重新选取P2i和P3i并重新计算;另一种方法是T4i在区间[T2i,T3i]上任取一点,为方便计算,取该区间的中点,则 5. When the sampling value of the selected sampling point meets the condition of |S2 i |=|S1 i |=|S3 i |, two processing methods can be adopted: one method is to reselect P2 i and P3 i and recalculate; Another method is that T4 i takes any point on the interval [T2 i , T3 i ], for the convenience of calculation, take the midpoint of this interval, then

考虑到交流电信号的上下对称性,过零点时间表示为: Considering the up-and-down symmetry of the AC signal, the zero-crossing time is expressed as:

具体操作可以参见图1。图1上空心园点P1i,P2i,P3i是根据要求选择出的三个点,空心三角形点P4i是经过插值后得到的虚拟点,T1i是P1i的采样时间,T4i是P4i的虚拟发生时间,水平轴上的空心园点Tzi是计算后获得的过零点。Refer to Figure 1 for specific operations. The hollow circle points P1 i , P2 i , and P3 i in Figure 1 are three points selected according to the requirements, the hollow triangle point P4 i is a virtual point obtained after interpolation, T1 i is the sampling time of P1 i , and T4 i is The virtual occurrence time of P4 i , the hollow circle point T zi on the horizontal axis is the zero-crossing point obtained after calculation.

6、重复上述步骤,可以得到若干个过零点时间,Tz1,Tz2,Tz3...Tzi,Tzi+1,Tzi+2...Tzn,则被测交流电信号的周期:Tpi=Tzi+2-Tzi或者Tpi=2×(Tzi+1-Tzi),被测交流电信号的频率: F i = 1 T pi = 1 T zi + 2 - T zi 或者: F i = 1 T pi = 1 2 &times; ( T zi + 1 - T zi ) . 6. Repeat the above steps to get several zero-crossing times, T z1 , T z2 , T z3 ... T zi , T zi+1 , T zi+2 ... T zn , then the measured AC signal Period: T pi =T zi+2 -T zi or T pi =2×(T zi+1 -T zi ), the frequency of the measured AC signal: f i = 1 T p = 1 T the zi + 2 - T the zi or: f i = 1 T p = 1 2 &times; ( T the zi + 1 - T the zi ) .

在一个信号周期内可通过在某一个过零点附近选取不同的P1i进行多次过零点测量,多次过零点时间经过平均后可获取最终的过零点时间。In one signal period, different P1 i can be selected near a certain zero-crossing point for multiple zero-crossing point measurements, and the final zero-crossing point time can be obtained after multiple zero-crossing point times are averaged.

对电信号进行采样后在每一个零点附近进行计算并测量频率的图形如图2。图2中的交流电信号存在4个过零点,因此在信号过峰值后进行了四次计算。图中水平轴上的空心圆点是计算得到的过零点,过零点依次是:Tzi-1,Tzi,Tzi+1,Tzi+2。则该信号的周期可以表示为Tp=Tzi+1-Tzi-1或者Tp=Tzi+2-Tzi或者Tp=2×(Tzi-Tzi-1)或者Tp=2×(Tzi+1-Tzi)或者Tp=2×(Tzi+2-Tzi+1)。频率Fp则是Tp的倒数。After sampling the electrical signal, calculate and measure the frequency near each zero point as shown in Figure 2. The AC signal in Figure 2 has four zero-crossing points, so four calculations were performed after the signal peaked. The hollow circles on the horizontal axis in the figure are calculated zero-crossing points, and the zero-crossing points are: T zi-1 , T zi , T zi+1 , T zi+2 in sequence. Then the period of the signal can be expressed as T p =T zi+1 -T zi-1 or T p =T zi+2 -T zi or T p =2×(T zi -T zi-1 ) or T p = 2×(T zi+1 −T zi ) or T p =2×(T zi+2 −T zi+1 ). The frequency F p is the reciprocal of T p .

测量出被测电信号的若干个周期或频率值后,可对得到的若干个周期或频率值采用平均法计算出最终频率。After measuring several period or frequency values of the electrical signal under test, the final frequency can be calculated by averaging the obtained several period or frequency values.

优选方案是上述的采样为等时间间隔采样,选取的P1i不宜过于接近零点也不宜过于接近峰值。The preferred solution is that the above-mentioned sampling is sampling at equal time intervals, and the selected P1 i should not be too close to zero or too close to the peak value.

采用本方法可以在一个信号周期内可以进行多次频率测量。By adopting the method, multiple frequency measurements can be carried out within one signal period.

综上所述,本发明所涉及的一种交流电频率的数字化测量方法,不需要将交流电信号转换成方波,尤其适合于低频正弦信号的频率测量,系统检测方便,硬件开销小;系统的抗干扰能力较强;实现起来简单合理,数据准确、可靠;有较广泛的应用前景。To sum up, the digital measurement method of a kind of AC frequency involved in the present invention does not need to convert the AC signal into a square wave, and is especially suitable for the frequency measurement of low-frequency sinusoidal signals, the system detection is convenient, and the hardware overhead is small; the system Strong anti-interference ability; simple and reasonable to implement, accurate and reliable data; broad application prospects.

Claims (7)

1.一种交流电频率的数字化测量方法,其特征在于包括以下步骤:1. A digital measuring method of alternating current frequency, is characterized in that comprising the following steps: 步骤1),对被测电信号进行采样,得到被测电信号的采样值,然后生成采样信号;Step 1), sampling the electrical signal under test to obtain a sampling value of the electrical signal under test, and then generating a sampling signal; 步骤2),在被测电信号的采样信号中,当被测电信号的周波过任意一个峰值后未到达零点时选择一个采样点作为第一采样点P1i,设该第一采样点P1i的采样时间为T1i,采样值为S1iStep 2), in the sampling signal of the electrical signal under test, when the cycle of the electrical signal under test does not reach the zero point after passing through any peak value, select a sampling point as the first sampling point P1 i , set the first sampling point P1 i The sampling time of is T1 i , and the sampling value is S1 i ; 步骤3),当采样信号越过零点后未到达下一个峰值时,在该越过零点后未到达下一个峰值的这段采样信号中选取连续的两个采样点,即第二采样点P2i和第三采样点P3i,设这两个点的采样时间分别是T2i和T3i,采样值分别为S2i和S3i,这两个采样点具有以下特点:如果S1i为正数,则S2i和S3i同为负数;如果S1i为负数,则S2i和S3i同为正数,且满足|S2i|≤|S1i|≤|S3i|且|S2i|<|S3i|;Step 3), when the sampling signal does not reach the next peak value after crossing the zero point, select two consecutive sampling points in the sampling signal that does not reach the next peak value after crossing the zero point, that is, the second sampling point P2 i and the second sampling point Three sampling points P3 i , assuming that the sampling time of these two points are T2 i and T3 i respectively, and the sampling values are respectively S2 i and S3 i , these two sampling points have the following characteristics: if S1 i is a positive number, then S2 Both i and S3 i are negative; if S1 i is negative, then S2 i and S3 i are both positive, and satisfy |S2 i |≤|S1 i |≤|S3 i | and |S2 i |<|S3 i |; 步骤4),将第一采样点P1i采样值的相反值所对应的点作为虚拟采样点P4i,计算虚拟采样点P4i的虚拟发生时间 T 4 i = T 2 i + ( T 3 i - T 2 i ) &times; ( S 1 i + S 2 i ) S 2 i - S 3 i ; Step 4), use the point corresponding to the opposite value of the sampling value of the first sampling point P1i as the virtual sampling point P4i , and calculate the virtual occurrence time of the virtual sampling point P4i T 4 i = T 2 i + ( T 3 i - T 2 i ) &times; ( S 1 i + S 2 i ) S 2 i - S 3 i ; 步骤5),计算过零点时间: Step 5), calculate the zero-crossing time: 步骤6),重复步骤2)至步骤5)得到若干个过零点时间:Tz1,Tz2,Tz3...Tzi,Tzi+1,Tzi+2...Tzn,其中,i=1、2、…n,n为正整数;则被测电信号的周期:Tpi=Tzi+2-Tzi或者Tpi=2×(Tzi+1-Tzi),被测电信号的频率: F i = 1 T pi = 1 T zi + 2 - T zi 或者: F i = 1 T pi = 1 2 &times; ( T zi + 1 - T zi ) . Step 6), repeat step 2) to step 5) to obtain several zero-crossing times: T z1 , T z2 , T z3 ... T zi , T zi+1 , T zi+2 ... T zn , wherein, i=1, 2,...n, n is a positive integer; then the period of the electrical signal under test: T pi =T zi+2 -T zi or T pi =2×(T zi+1 -T zi ), the measured The frequency of the electrical signal: f i = 1 T p = 1 T the zi + 2 - T the zi or: f i = 1 T p = 1 2 &times; ( T the zi + 1 - T the zi ) . 2.根据权利要求1所述的一种交流电频率的数字化测量方法,其特征在于:步骤1)所述对被测电信号进行采样是等时间间隔采样或者是不等时间间隔采样。2. A digital measurement method for AC frequency according to claim 1, characterized in that: step 1) said sampling the electrical signal under test is sampling at equal time intervals or sampling at unequal time intervals. 3.根据权利要求1所述的一种交流电频率的数字化测量方法,其特征在于:步骤1)所述的采样为对被测电信号的整周波进行采样。3. The digital measuring method of a kind of alternating current frequency according to claim 1, characterized in that: the sampling described in step 1) is sampling the whole cycle of the electrical signal under test. 4.根据权利要求1所述的一种交流电频率的数字化测量方法,其特征在于:还包括依步骤2)的原则分别选取采样值不同的采样点作为第一采样点P1i,然后重复步骤3)至步骤5)进行若干次过零点计算后取平均值,得到过零点时间。4. The digitized measuring method of a kind of alternating current frequency according to claim 1, is characterized in that: also comprises according to the principle of step 2) respectively selects the different sampling points of sampling value as the first sampling point P1 i , then repeats step 3 ) to step 5) and take the average value after performing several zero-crossing calculations to obtain the zero-crossing time. 5.根据权利要求1至3中任一项所述的一种交流电频率的数字化测量方法,其特征在于:还包括以下步骤:重复步骤1)到步骤6),测量出被测电信号的若干个周期或频率值,然后对得到的若干个周期或频率值采用平均法计算出最终频率。5. according to the digitized measuring method of a kind of alternating current frequency described in any one in claim 1 to 3, it is characterized in that: also comprise the following steps: repeat step 1) to step 6), measure some of measured electric signal cycle or frequency value, and then use the average method to calculate the final frequency of several cycle or frequency values obtained. 6.根据权利要求1所述的一种交流电频率的数字化测量方法,其特征在于:在所述步骤3)中,当选取的第一至第三采样点的采样值符合|S2i|=|S1i|=|S3i|条件时,采取以下两种处理方案中的任意一种:6. The digital measuring method of a kind of alternating current frequency according to claim 1, characterized in that: in said step 3), when the sampled values of the selected first to third sampling points meet |S2 i |=| When S1 i |=|S3 i | condition, take any one of the following two processing schemes: a),重新选取第二采样点P2i和第三采样点P3i,使得第二采样点的采样值S2i和第三采样点的采样值S3i须满足|S2i|<|S3i|,然后继续步骤4)至步骤6);a), reselect the second sampling point P2 i and the third sampling point P3 i , so that the sampling value S2 i of the second sampling point and the sampling value S3 i of the third sampling point must satisfy |S2 i |<|S3 i | , then continue step 4) to step 6); b),在第二采样点P2i与第三采样点P3i的采样时间区间[T2i,T3i]上任取一点作为虚拟采样点P4i所对应的虚拟采样时间T4i,然后继续步骤5)至步骤6)。b) Select any point on the sampling time interval [T2 i , T3 i ] between the second sampling point P2 i and the third sampling point P3 i as the virtual sampling time T4 i corresponding to the virtual sampling point P4 i , and then proceed to step 5 ) to step 6). 7.根据权利要求6所述的一种交流电频率的数字化测量方法,其特征在于:在所述方案b)中,取第二采样点P2i与第三采样点P3i的采样时间区间[T2i,T3i]上的中点,计算虚拟采样点P4i的虚拟发生时间 7. the digitized measurement method of a kind of alternating current frequency according to claim 6, is characterized in that: in described scheme b), get the sampling time interval [T2 of the second sampling point P2 i and the 3rd sampling point P3 i i , the midpoint on T3 i ], calculate the virtual occurrence time of the virtual sampling point P4 i
CN201210262782.7A 2012-07-26 2012-07-26 Digital measurement method for alternating-current frequency Expired - Fee Related CN102809687B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210262782.7A CN102809687B (en) 2012-07-26 2012-07-26 Digital measurement method for alternating-current frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210262782.7A CN102809687B (en) 2012-07-26 2012-07-26 Digital measurement method for alternating-current frequency

Publications (2)

Publication Number Publication Date
CN102809687A CN102809687A (en) 2012-12-05
CN102809687B true CN102809687B (en) 2015-01-28

Family

ID=47233445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210262782.7A Expired - Fee Related CN102809687B (en) 2012-07-26 2012-07-26 Digital measurement method for alternating-current frequency

Country Status (1)

Country Link
CN (1) CN102809687B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103048508B (en) * 2012-12-06 2016-03-16 深圳市鼎阳科技有限公司 Improve the method for digital oscilloscope activation levels precision, device and digital oscilloscope
CN104808055B (en) * 2014-01-26 2017-07-07 南京邮电大学 A kind of digital measuring method of signal frequency
CN105652082B (en) * 2015-12-30 2019-06-11 深圳市科陆电子科技股份有限公司 High-precision electrical signal frequency measurement method and device
CN110208589B (en) * 2019-05-08 2021-06-01 深圳市鼎阳科技股份有限公司 Time domain signal waveform measuring method and device and digital oscilloscope
CN110470903B (en) * 2019-07-31 2021-08-17 山东建筑大学 A voltage and frequency soft measurement device and method
CN113049872B (en) * 2021-02-02 2021-11-16 厦门大学 An electrical signal zero detection method for multiple low frequency current ripple suppression
CN115825556A (en) * 2022-12-23 2023-03-21 安徽尚特杰电力技术有限公司 Method and device for calculating power frequency

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5162723A (en) * 1991-02-11 1992-11-10 Hewlett-Packard Company Sampling signal analyzer
CN101806832A (en) * 2010-04-15 2010-08-18 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN102033161A (en) * 2010-12-17 2011-04-27 南京邮电大学 Frequency measuring method of alternating current signal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3220327B2 (en) * 1994-06-17 2001-10-22 株式会社日立製作所 Frequency detection method and apparatus, and power system stabilization system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5162723A (en) * 1991-02-11 1992-11-10 Hewlett-Packard Company Sampling signal analyzer
CN101806832A (en) * 2010-04-15 2010-08-18 南京邮电大学 Measuring method for frequencies of low-frequency signals
CN102033161A (en) * 2010-12-17 2011-04-27 南京邮电大学 Frequency measuring method of alternating current signal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
JP特开平8-5679A 1996.01.12 *
Zero Crossing Determination by Linear Interpolation of Sampled Sinusoidal Signals;Gerson Eduardo et al;《2004 IEEE/PES transmission & Distribution Conference & Exposition: Latin America》;20041231;全文 *
基于M0DBUS协议的多主站技术;戴尔晗等;《自动化与仪表》;20051231(第6期);全文 *

Also Published As

Publication number Publication date
CN102809687A (en) 2012-12-05

Similar Documents

Publication Publication Date Title
CN102809687B (en) Digital measurement method for alternating-current frequency
CN100432681C (en) Alternating Current Frequency Monitoring Method
CN101806832B (en) Measuring method for frequencies of low-frequency signals
CN101833036B (en) Method for measuring instantaneous phase of alternating current
CN102879639A (en) Real-time frequency measuring method in power system
CN102095929B (en) Method for rapidly measuring frequency of alternating-current signals
CN102095934B (en) Measuring method for phase difference of alternating current signals
CN102033161B (en) Frequency measuring method of alternating current signal
CN103344825B (en) Based on the electric energy metered system of AC sampling
CN203149027U (en) Voltage fluctuation and flicker detection apparatus based on energy operator and frequency spectrum correction
CN101813725B (en) Method for measuring phase difference of low-frequency signals
CN105629060B (en) Power grid frequency measurement method and device based on optimal baseband filtering
CN102508026B (en) Harmonic wave analysis method for electric energy quality harmonic wave analyzer
CN103575979B (en) A kind of method of digitized measurement ac frequency
CN104360168A (en) Method and system for eliminating mutual inductance between leads in ground resistance measurement
CN102928666B (en) Digital measurement method for phase difference of alternating current
WO2017113754A1 (en) Method for detecting dynamic reactive power of grid and reactive power detector
CN102778606B (en) A Digital Measuring Method of Instantaneous Phase of Alternating Current
CN102095935A (en) Method for measuring instantaneous phase of alternating current electrical signal
CN102401856B (en) A real-time frequency measurement method of power frequency voltage signal based on fuzzy clustering method
CN103575981A (en) Method for accurately measuring alternating current frequency
CN102095936A (en) Method for measuring phase difference of alternating-current electric signals quickly
CN104808055A (en) Electrical signal frequency digitized measurement method
CN104808060A (en) Method for digitally measuring the phase difference of electrical signals
CN103134969A (en) Power factor corrector and phase voltage estimation method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20121205

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000215

Denomination of invention: Digital measurement method for alternating-current frequency

Granted publication date: 20150128

License type: Common License

Record date: 20161118

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
EC01 Cancellation of recordation of patent licensing contract

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000215

Date of cancellation: 20180116

EC01 Cancellation of recordation of patent licensing contract
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150128

Termination date: 20170726

CF01 Termination of patent right due to non-payment of annual fee