The invention discloses a real-time frequency tracking and
harmonic measuring method for the AC sampling of a power
system, which is characterized by comprising the steps: an AC sampling input is made to enter an analog-to-
digital converter at a fixed sampling rate; the analog-to-
digital converter at the fixed sampling rate respectively outputs a first segment of digital signals with the length of N points and a second segment of digital signals with the length of N points to enter a first fast Fourier module; the first fast Fourier module outputs phase angles of the highest frequency components of the first segment of digital signals with the length of N points and the second segment of digital signals with the length of N points, and sends the phase angles into a phase
discriminator one after another; the phase
discriminator outputs a correction frequency, and sends the correction frequency into a
digital signal reconstruction filter; the
digital signal reconstruction filter performs
digital reconstruction sampling on the first segment of digital output signals with the length of N points, of the analog-to-
digital converter at the fixed sampling rate, according to the correction frequency, and sends an obtained N-point reconstruction sampling
signal into a second fast Fourier module; the
phase angle output of the highest frequency component of the second fast Fourier module is sent into the phase
discriminator; the third segment of digital signals with the length of N points, of the analog-to-digital converter, enter the first fast Fourier module; and the phase discriminator judges the
phase angle based on accuracy requirements, and outputs a correction frequency to a
digital signal reconstruction filter. After the iterations of the process reach M, the output of the second fast Fourier module is the values of respective
subharmonic components of the AC sampling
signal, and the output frequency of the phase discriminator is the frequency of the AC sampling
signal.