The application particularly relates to a power
signal effective value calculation method and
system based on a phase-locked loop and a sliding window. The method comprises the following steps: S01, a discrete sampling of a continuous target
electric signal is carried out by an analog-to-
digital converter based on a preset fixed sampling frequency; S02, a phase-locked loop module receives the discrete sampling data, carries out phase tracking and frequency
estimation, and detects and outputs the running frequency of the target
electric signal in real time; S03, a dynamic window length n is calculated based on the fixed sampling frequency and the running frequency of the target
electric signal; S04, the first 2n-1 discrete sampling data stored in a cache unit are called, the dynamic window length n is taken as a reference, and point-by-point sliding calculation is carried out with a step of 1 to obtain n intermediate
root mean square values; and S05, arithmetic average
processing is carried out on the n intermediate
root mean square values to obtain the effective value of the target
electric power signal. The method can solve the problems of spectrum leakage and excessively large
calculation error caused by non-synchronous sampling, and improve the calculation precision of the effective value of the electric
signal in a non-synchronous sampling scene.