This invention provides a frequency following sampling and dual-frequency calibration method and
system for synchronization inspection devices, relating to the field of power
system signal processing technology. The method includes: calculating the frequency of the rising edge of the
system-side
voltage signal and the rising edge of the
voltage signal to be paralleled on the target side to generate a stable frequency on the system side and a stable frequency on the target side; determining the validity and balance of the stable frequencies on the system side and the target side, using a frequency following strategy to determine the effective following frequency and outputting the frequency balance result; dynamically selecting the signal sampling mode by calling a
timer reconfiguration function, synchronously sampling the system-side
voltage signal and the voltage signal to be paralleled on the target side, and performing a
Fourier transform based on the frequency balance result to generate the
voltage amplitude on the system side and the
voltage amplitude on the target side; and calibrating and correcting the
voltage amplitude on the system side and the voltage amplitude on the target side using a linear interpolation
algorithm to generate a standard voltage amplitude on the system side and the standard voltage amplitude on the target side, thereby eliminating
spectral leakage and improving the measurement accuracy of the voltage amplitude.