Single-cycle phase-locked power measuring and calculating method and device

Through the single-cycle phase-locked power calculation method, the frequency components of voltage and current are directly calculated, which solves the problem of low accuracy of reactive power measurement under non-sine conditions, and realizes high-precision reactive power measurement, which is suitable for modern power systems.

CN119936475APending Publication Date: 2025-05-06TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510126748.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-27
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The prior art has low accuracy and poor practicality in non-sine conditions, which cannot meet the high requirements for power quality in modern power systems.

Method used

The single-period phase-locked power calculation method is used to calculate the coefficient vectors of voltage and current through a single-period sampling voltage and current signal, calculate the amplitude and phase difference of each frequency component, and directly calculate the active and reactive power.

Benefits of technology

High-precision reactive power measurement under non-sine conditions is realized, the algorithm is simplified, the calculation complexity is reduced, and the power quality requirements are suitable for modern power systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119936475A_ABST
    Figure CN119936475A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of electric power measurement and calculation and electric energy metering, in particular to a single-cycle phase-locked power measurement and calculation method and device, and the method comprises the steps: carrying out the single-cycle sampling of a voltage collection sequence and a current collection sequence of a target power system within a target sampling duration at a target sampling frequency; solving a voltage coefficient vector and a current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence; and according to the voltage coefficient vector and the current coefficient vector, calculating the amplitude of a voltage fundamental wave, the amplitude of a plurality of voltage harmonic components, the amplitude of a current fundamental wave, the amplitude of a plurality of current harmonic components and the phase difference of each frequency component of a plurality of voltages and currents, and further calculating active power and reactive power generated by the voltages and the currents. Therefore, the problems that although reactive power under the non-sine condition can be measured in the prior art, a complex filter needs to be designed, the precision is low, the practicability is poor, and the high requirement of a modern electric power system for electric energy quality cannot be met are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power measurement and electric energy metering, and in particular to a single-cycle phase-locked power measurement method and device. Background Art

[0002] In recent years, building a new power system with a high proportion of new energy access as its main feature has become an important direction for the development of national electric energy. On the power generation side, new energy sources such as photovoltaics and wind power are widely connected to the power grid, and the randomness and intermittency of such new energy sources bring power fluctuations on the power generation side; on the power consumption side, the proportion of loads such as electric vehicles has increased rapidly, which has also aggravated the dynamic characteristics of power flow; in addition, in order to adapt to these new power sources and loads and ensure operational reliability, the power grid must introduce a large number of power electronic equipment to achieve flexible regulation and absorption, and these power switching devices and equipment further increase the fluctuation characteristics of voltage and current in the power grid. In this context, studying accurate and reliable measurement methods for broadband electrical parameters has become one of the basic tasks to support the construction of new power systems.

[0003] In the power system, the traditional power and energy measurement is mainly focused on steady-state or quasi-steady-state energy measurement within the power frequency and a certain harmonic range (usually not exceeding 2.5kHz). At present, the most commonly used power and energy measurement method in engineering practice is the dot product method, which does not require any software or hardware compensation and can obtain relatively accurate active power and energy measurement results through simple arithmetic operations. However, the limitation of the dot product method is that it cannot distinguish between fundamental and harmonic power. Another commonly used power and energy measurement method is the fast Fourier transform (FFT). Based on the sampling signals of voltage and current, the FFT algorithm can provide the amplitude and phase difference of the fundamental and harmonic components in the frequency domain, and then calculate the fundamental and harmonic power. A major disadvantage of the FFT algorithm is that when sampling at non-integer cycles, spectrum leakage and fence effects need to be corrected, which increases the complexity of the algorithm. In recent years, a variety of new methods have emerged to meet the needs of dynamic energy measurement. Although these methods have advantages in theory, their algorithms are more complex than the traditional dot product method and FFT algorithm, so they have not been widely used in engineering practice. The promotion and application of these new methods require further simplification of algorithms and reduction of computational complexity to meet the needs of practical engineering.

[0004] In the power and energy metering of power systems, the measurement of reactive power is also crucial. Under sinusoidal waveform conditions, the definition and measurement of reactive power are very clear. However, under non-sinusoidal waveform conditions, the definition and measurement method of reactive power have not yet formed a unified standard. At present, there are mainly the following methods for the definition of reactive power under non-sinusoidal conditions: the frequency domain analysis method proposed by Budeanu, the time domain analysis method proposed by Fryze, and the instantaneous reactive theory proposed by Akagi. Among them, Budeanu's frequency domain analysis method has been adopted by the IEEE 1459-2010 standard and is widely accepted by most electric energy meter manufacturers. In terms of reactive power measurement, the method of 90-degree fundamental phase shift is currently mainly used. This method has high accuracy under sinusoidal waveform conditions. However, when the voltage and current are non-sinusoidal waveforms, this method will produce large measurement errors. Reactive power can also be measured by FFT algorithm, which is similar to the calculation of active power and requires algorithm compensation under non-integer cycle sampling. In addition, the reactive power measurement under non-sinusoidal signals can also use the Hilbert filter method, which maintains the amplitude-frequency characteristic of 1 within the measurement frequency band and performs orthogonal phase shifting on the fundamental frequency and harmonics. Although this method can accurately measure the fundamental and harmonic reactive power under non-sinusoidal conditions, its filter design algorithm is relatively complex. In summary, the measurement of reactive power under non-sinusoidal conditions is still a challenge, and further research and development of more accurate and practical reactive power measurement methods are needed to meet the high requirements of modern power systems for power quality. Summary of the invention

[0005] The present invention provides a single-cycle phase-locked power measurement method and device to solve the problems in the prior art that although the reactive power under non-sinusoidal conditions can be measured, a complex filter needs to be designed, and the accuracy is low, the practicability is poor, and the high requirements of modern power systems for power quality cannot be met.

[0006] The first aspect of the present invention provides a single-cycle phase-locked power measurement method, comprising the following steps: sampling a voltage acquisition sequence and a current acquisition sequence of a target power system in a single cycle at a target sampling frequency within a target sampling time; solving a voltage coefficient vector and a current coefficient vector respectively according to the voltage acquisition sequence and the current acquisition sequence; calculating the amplitude of a voltage fundamental, the amplitudes of multiple voltage harmonic components, the amplitude of a current fundamental, the amplitudes of multiple current harmonic components and the phase difference of multiple voltage and current frequency components respectively according to the voltage coefficient vector and the current coefficient vector; calculating the active power and reactive power generated by the voltage and current according to the amplitude of the voltage fundamental, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental, the amplitudes of multiple current harmonic components and the phase difference of multiple voltage and current frequency components.

[0007] Optionally, the number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

[0008] Optionally, solving a voltage coefficient vector and a current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence includes:

[0009] Extracting the fundamental frequency of the target power system based on the phase-locked loop of the electric energy meter, and constructing a normalized matrix according to the fundamental frequency;

[0010] The voltage coefficient vector and the current coefficient vector are calculated according to the normalized matrix, the voltage acquisition sequence, and the current acquisition sequence.

[0011] Optionally, the voltage coefficient vector includes a fundamental sine-cosine component and multiple harmonic sine-cosine components of a voltage signal, and the current coefficient vector includes a fundamental sine-cosine component and multiple harmonic sine-cosine components of a current signal.

[0012] The second aspect of the present invention provides a single-cycle phase-locked power measurement device, including: a sampling module, which is used to single-cycle sample the voltage acquisition sequence and current acquisition sequence of the target power system at a target sampling frequency within a target sampling time; a phase-locked solution module, which is used to respectively solve the voltage coefficient vector and the current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence; a frequency characteristic solution module, which is used to respectively calculate the amplitude of the voltage fundamental wave, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of multiple current harmonic components and the phase difference of multiple voltage and current frequency components according to the voltage coefficient vector and the current coefficient vector; a power calculation module, which is used to calculate the active power and reactive power generated by the voltage and current according to the amplitude of the voltage fundamental wave, the amplitudes of the multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of the multiple current harmonic components and the phase difference of the multiple voltage and current frequency components.

[0013] Optionally, the number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

[0014] Optionally, the phase-locked solution module includes:

[0015] A phase-locked extraction unit, configured to extract the fundamental frequency of the target power system based on a phase-locked loop of an electric energy meter, and construct a normalized matrix according to the fundamental frequency;

[0016] A calculation unit is used to calculate the voltage coefficient vector and the current coefficient vector according to the normalized matrix, the voltage acquisition sequence and the current acquisition sequence.

[0017] Optionally, the voltage coefficient vector includes a fundamental sine-cosine component and multiple harmonic sine-cosine components of a voltage signal, and the current coefficient vector includes a fundamental sine-cosine component and multiple harmonic sine-cosine components of a current signal.

[0018] The third aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the single-cycle phase-locked power measurement method as described in the above embodiment.

[0019] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned single-cycle phase-locked power measurement method.

[0020] The single-cycle phase-locked power precision measurement method and device proposed in the embodiment of the present invention directly realize frequency domain sparse decomposition through time domain calculation, without considering the influence of non-integer period sampling, and has application prospects in the precise measurement of active and reactive power; in terms of active power measurement, it can overcome the deficiency of the traditional dot product sum algorithm that cannot distinguish between fundamental and harmonic power, and at the same time, it can also avoid the complexity of the FFT algorithm under non-integer period sampling due to the need to correct spectrum leakage and fence effect; in terms of reactive power measurement, there is no need for complex filter design, and the time domain voltage and current acquisition data can be directly measured and solved, and the accuracy similar to that of active power measurement can be achieved.

[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0023] Figure 1 A flow chart of a single-cycle phase-locked power measurement method provided by an embodiment of the present invention;

[0024] Figure 2 A comparison diagram of single-cycle voltage and current phase-locked values ​​and sampling values ​​provided by an embodiment of the present invention;

[0025] Figure 3 The active power measurement relative error characteristic curve (PF=1) provided in the embodiment of the present invention;

[0026] Figure 4 The relative error characteristic curve of active power calculation provided by the embodiment of the present invention (PF=0.5L);

[0027] Figure 5 Relative error characteristic curve of reactive power calculation provided by the embodiment of the present invention (PF=0.5L);

[0028] Figure 6 The active power measurement relative error characteristic curve (PF=0.8C) provided in the embodiment of the present invention;

[0029] Figure 7 Relative error characteristic curve of reactive power measurement provided by the embodiment of the present invention (PF=0.8C);

[0030] Figure 8 A block diagram of a single-cycle phase-locked power measurement device provided by an embodiment of the present invention;

[0031] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0033] The following describes a single-cycle phase-locked power measurement method and device according to an embodiment of the present invention with reference to the accompanying drawings.

[0034] Figure 1 A schematic flow chart of a single-cycle phase-locked power measurement method provided in an embodiment of the present invention.

[0035] like Figure 1 As shown, the single-cycle phase-locked power measurement method includes the following steps:

[0036] In step S101 , a voltage acquisition sequence and a current acquisition sequence of a target power system are sampled in a single cycle within a target sampling duration at a target sampling frequency.

[0037] In the actual implementation process, Figure 2 As shown, the sampling frequency is set to T = 0.02s, the number of sampling points is N, the sampling time is set to the sampling time 0, T / N, ..., (N-1) T / N, and the analog-to-digital converter ADC is used to perform single-cycle sampling on the target power system to obtain the voltage acquisition sequence U = [u1, u2, ..., u n] and the current acquisition sequence I = [i1, i2, ..., i n ].

[0038] It should be noted that the number of unknown quantities to be solved should be less than the number of sampling points in a single cycle, that is, for a general electricity meter, the number of harmonics generally does not exceed 51. At this time, the number of parameters that need to be solved is 103, and 128 points of electricity meter periodic sampling can meet the requirements.

[0039] In step S102, the voltage coefficient vector and the current coefficient vector are solved according to the voltage acquisition sequence and the current acquisition sequence respectively.

[0040] In some embodiments, the number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

[0041] In some embodiments, solving the voltage coefficient vector and the current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence includes:

[0042] Extract the fundamental frequency of the target power system based on the phase-locked loop of the electric energy meter, and construct a normalized matrix according to the fundamental frequency;

[0043] A voltage coefficient vector and a current coefficient vector are calculated according to the normalized matrix, the voltage acquisition sequence and the current acquisition sequence.

[0044] In some embodiments, the voltage coefficient vector includes a fundamental sin-cos component and multiple harmonic sin-cos components of the voltage signal, and the current coefficient vector includes a fundamental sin-cos component and multiple harmonic sin-cos components of the current signal.

[0045] In the actual implementation process, the fundamental frequency f1 of the target power system is extracted based on the phase-locked loop of the electric energy meter, and a normalized matrix is ​​constructed according to the fundamental frequency, that is:

[0046]

[0047] The matrix S is a (2h+1)×N-dimensional matrix, and h is the number of harmonics to be measured.

[0048] The following matrix operations are performed according to the normalized matrix, the voltage acquisition sequence, and the current acquisition sequence to obtain the voltage coefficient vector γ and the current coefficient vector λ, namely:

[0049] γ=S T \U T =[γ0,γ s1 ,γ c1 ,γ s2 ,γ c2 ,...,γ sh ,γ ch] (2)

[0050] λ=S T \I T =[λ0,λ s1 ,λ c1 ,λ s2 ,λ c2 ,...,λ sh ,λ ch ] (3)

[0051] In formula (2), γ0 is the DC component of the voltage signal, γ s1 , γ c1 are the fundamental sine component and fundamental cosine component of the voltage signal, γ sh , γ ch are the harmonic sine component and the harmonic cosine component of the voltage signal respectively. In formula (3), λ0 is the DC component of the current signal, λ s1 , c1 are the fundamental sine component and fundamental cosine component of the current signal, respectively, sh , ch They are the harmonic sine component and the harmonic cosine component of the current signal respectively.

[0052] In step S103, the amplitude of the voltage fundamental wave, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of multiple current harmonic components and the phase differences of multiple voltage and current frequency components are calculated respectively according to the voltage coefficient vector and the current coefficient vector.

[0053] In the actual implementation process, the sine and cosine components of the voltage and current signals within the DC-h subharmonic range are solved by phase locking, and then the amplitude of the voltage fundamental wave, the amplitude of the current fundamental wave, the amplitude of multiple voltage harmonic components, and the amplitude of multiple current harmonic components are calculated, that is:

[0054]

[0055] And the phase difference of multiple voltage and current frequency components:

[0056]

[0057] In step S104, the active power and reactive power generated by the voltage and current are calculated based on the amplitude of the voltage fundamental wave, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of multiple current harmonic components and the phase differences of multiple voltage and current frequency components.

[0058] In the actual implementation process, based on the IEEE 1459-2010 standard, the active power P and reactive power Q are calculated according to the amplitude of the voltage fundamental wave, the amplitude of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitude of multiple current harmonic components, and the phase difference of multiple voltage and current frequency components. The calculation formula is as follows:

[0059]

[0060] The single-cycle phase-locked power measurement method proposed in the embodiment of the present invention is further described below through specific embodiments.

[0061] In the numerical simulation calculation verification program, set appropriate initial conditions.

[0062] The simulation environment used is Intel(R)Core(TM)i7-10700K(CPU), and the numerical calculation tool software is MATLAB 2020a.

[0063] In this embodiment, the voltage and current signals contain 51 frequency components respectively, including fundamental and harmonic components (2-51 harmonics), the amplitude of the fundamental component is 1 (pu), and the amplitude of each harmonic component is set to 0.1 (pu), and the initial phase angle of each frequency component of the voltage and current changes randomly in [0, 2π], but maintains a fixed phase angle difference (maintaining the power factor unchanged). Referring to the R46 international standard, the power factor is set to PF=1, 0.5L, and 0.8C. The following test variables are tested under three conditions, and the number of tests is 100. The sampling window length is 1 fundamental cycle (0.02s), and the sampling frequency is set to 6.4kHz.

[0064] There are three test variables: (1) In the phase-locked method, the fundamental frequency f1 is output by the phase-locked loop. The accuracy of the phase-locked loop's measurement of f1 varies with the accuracy level of the electricity meter. Therefore, the absolute error df1 of the phase-locked loop's measurement of f1 is set as the test variable, varying between [-0.01Hz, 0.01Hz] with a step size of 0.001Hz; (2) The grid voltage and current signals usually have a fundamental frequency offset, and the fundamental frequency usually fluctuates between 49.5Hz and 50.5Hz. Therefore, f1 is set to vary between 49.5Hz and 50.5Hz with a step size of 0.1Hz, that is, the fundamental frequency f1 is used as the test variable; (3) The actual engineering signal is mixed with noise signals, which may affect the measurement performance of the phase-locked method. Here, the signal-to-noise ratio (SNR) of the voltage and current signals is set as the test variable, varying between 40dB and 100dB with a step size of 10dB. In order to accurately show the impact of a single variable on the measurement error, when one variable changes, the other two variables remain unchanged at the optimal solution. For example, when df1 changes, keep f1 = 50Hz and SNR = 100dB.

[0065] Based on the numerical simulation calculation results, the relative error diagram of the active power and reactive power calculation results under various power factors under the condition that the voltage and current signals of the embodiment of the present invention contain fundamental waves and harmonic waves is summarized, as shown in FIG. Figure 3 , 4 , 5, 6, and 7 (when PF=1, the reactive power is 0, so the reactive power is not calculated).

[0066] Figure 3 The three sub-figures in the middle respectively show the influence of the fundamental frequency phase-locking error, fundamental frequency offset and signal-to-noise ratio on the accuracy of active power measurement. It can be seen that when PF = 1, the changes in the fundamental frequency phase-locking error and fundamental frequency offset have little influence on the error of active power measurement by the phase-locking method, and the error is always kept within a very small threshold, with high accuracy. Specifically, when the absolute error df1 of the fundamental frequency f1 measured by the phase-locked loop changes between [-0.01Hz, 0.01Hz], the error of active power measurement does not exceed 5×10 -11 When the fundamental frequency f1 shifts between 49.5Hz and 50.5Hz, the error in the calculation of active power does not exceed 6×10 -11 In terms of the error change trend, whether the absolute value of the fundamental frequency phase-locking error df1 gradually increases or the absolute value of the fundamental frequency f1 offset gradually increases, the active power measurement error fluctuates slightly and does not show monotonicity.

[0067] As for the variable of signal-to-noise ratio, the error of active power calculation shows a monotonically decreasing trend with the increase of signal-to-noise ratio SNR. This is because as the signal-to-noise ratio of voltage and current signals increases, the noise signal will decrease accordingly, which makes the phase-locked method more accurate in calculating the coefficients of each component of voltage and current, thereby greatly improving the accuracy of active power calculation. In addition, compared with Figure 3 From the three sub-graphs in Figure 1, it can be seen that the signal-to-noise ratio is the main variable that affects the accuracy of active power measurement using the phase-locked method. Therefore, when using the phase-locked method to measure the active power generated by voltage and current signals, the noise component should be suppressed in advance by adding a filter or combining other signal processing methods.

[0068] from Figure 4 It can be seen from the three sub-figures in that when PF = 0.5L, the accuracy of the phase-locked method in calculating active power decreases. Specifically, when the fundamental frequency phase-locked error df1 changes, the error of the phase-locked method in calculating active power does not exceed 5×10 -4 , with the increase of the absolute value of df1, the error of active power calculation also increases gradually, and the fluctuation increases gradually in 100 repeated experiments. In the simulation test of fundamental frequency f1 offset, the overall distribution of active power calculation error is relatively stable, all less than 4×10-6 , and the fundamental frequency offset did not cause a significant change in the measurement error. In the process of increasing the signal-to-noise ratio (SNR) from 40dB to 100dB, the active power measurement error still showed a monotonically decreasing trend. As the signal-to-noise ratio increased, the error gradually decreased. When the signal-to-noise ratio was greater than 50dB, the error was less than 1×10 -3 , even at high signal-to-noise ratios (70dB-100dB) the error is less than 1×10 -4 .

[0069] contrast Figure 4 and Figure 5 It can be seen that when PF = 0.5L, compared with the active power measurement, under the three variables of fundamental frequency phase-locking error df1, fundamental frequency f1 offset and signal-to-noise ratio SNR, the reactive power measurement error has the same change trend as the active power measurement error, but the accuracy of reactive power measurement by the phase-locking method is higher. This is because the calculation formula of active power P is formula (7), and the calculation formula of reactive power Q is formula (8). By comparing formula (7) and formula (8), it can be seen that the measurement errors of P and Q should be at the same order of magnitude, and the difference between the two is mainly due to the phase angle difference. The estimation error of PF=0.5L is The estimated error of Therefore, the phase-locked method has a higher accuracy in calculating reactive power.

[0070] Compare Figure 4 and Figure 6 It can be seen that when PF = 0.8C, the error change trend of the active power measured by the phase-locked method is similar to that of PF = 0.5L, and maintains a high accuracy. Figure 5 and Figure 7 It can be found that the error change trend of reactive power measured by the phase-locked method is similar to that of PF = 0.5L. Figure 6 and Figure 7 It can be seen that when PF = 0.8C, the phase-locked method has a higher accuracy in calculating active power, because under the condition of PF = 0.8C, The estimated error of The impact is small.

[0071] comprehensive Figure 4 , 5 , 6 and 7, it can be found that when df1, f1 and SNR change, the reactive power calculation error of PF = 0.8C is similar to the active power calculation error of PF = 0.5L, while the active power calculation error of PF = 0.8C is similar to the reactive power calculation error of PF = 0.5L. This is because the values ​​of sin60° and cos36.87°, as well as the values ​​of sin36.87° and cos60° are close. Combined Figure 3 It can be seen that with As the value of active power decreases, the accuracy of the phase-locked method in measuring active power gradually improves.

[0072] The single-cycle phase-locked power measurement method proposed in the embodiment of the present invention can realize accurate and efficient measurement of active power and reactive power under different power factors and interference conditions, and can meet the accuracy requirements of Class 1 meters; it has strong anti-interference ability for fundamental frequency offset and phase-locked error, and can still perform high-accuracy measurement of active power and reactive power, and the algorithm is relatively concise and efficient, which provides the possibility for its promotion and application in power metering equipment, and can be applicable to power and electric energy measurement in various power factor scenarios; especially in intelligent electric energy metering equipment that requires fast response and high accuracy, it can effectively improve the measurement performance and ensure the reliability and fairness of electric energy metering; it can also be applied to sub-cycle calculation, which is suitable for the field of dynamic electric energy metering, and provides support for high-accuracy measurement of electrical parameters under the background of "double highs".

[0073] Next, the single-cycle phase-locked power measurement device according to an embodiment of the present invention will be described with reference to the accompanying drawings.

[0074] Figure 8 It is a block diagram of a single-cycle phase-locked power measurement device according to an embodiment of the present invention.

[0075] like Figure 8 As shown, the single-cycle phase-locked power measurement device 80 includes: a sampling module 801 , a phase-locked solution module 802 , a frequency characteristic solution module 803 and a power calculation module 804 .

[0076] Among them, the sampling module 801 is used to sample the voltage acquisition sequence and current acquisition sequence of the target power system in a single cycle at a target sampling frequency within a target sampling time. The phase-locked solution module 802 is used to solve the voltage coefficient vector and the current coefficient vector respectively according to the voltage acquisition sequence and the current acquisition sequence. The frequency characteristic solution module 803 is used to calculate the amplitude of the voltage fundamental wave, the amplitude of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitude of multiple current harmonic components and the phase difference of multiple voltage and current frequency components respectively according to the voltage coefficient vector and the current coefficient vector. The power calculation module 804 is used to calculate the active power and reactive power generated by the voltage and current according to the amplitude of the voltage fundamental wave, the amplitude of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitude of multiple current harmonic components and the phase difference of multiple voltage and current frequency components.

[0077] In some embodiments, the number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

[0078] In some embodiments, the phase-locked solution module includes:

[0079] A phase-locked extraction unit, used for extracting the fundamental frequency of the target power system based on the phase-locked loop of the electric energy meter, and constructing a normalized matrix according to the fundamental frequency;

[0080] The calculation unit is used to calculate the voltage coefficient vector and the current coefficient vector according to the normalized matrix, the voltage acquisition sequence and the current acquisition sequence.

[0081] In some embodiments, the voltage coefficient vector includes a fundamental sin-cos component and multiple harmonic sin-cos components of the voltage signal, and the current coefficient vector includes a fundamental sin-cos component and multiple harmonic sin-cos components of the current signal.

[0082] It should be noted that the above explanation of the embodiment of the single-cycle phase-locked power calculation method is also applicable to the single-cycle phase-locked power calculation device of this embodiment, and will not be repeated here.

[0083] The single-cycle phase-locked power measurement device proposed in the embodiment of the present invention can realize accurate and efficient measurement of active power and reactive power under different power factors and interference conditions, and can meet the accuracy requirements of Class 1 meters; it has strong anti-interference ability for fundamental frequency offset and phase-locked error, and can still perform high-accuracy measurement of active power and reactive power, and the algorithm is relatively simple and efficient, which provides the possibility for its promotion and application in power metering equipment, and can be applicable to power and electric energy measurement in various power factor scenarios; especially in intelligent electric energy metering equipment that requires fast response and high accuracy, it can effectively improve the measurement performance and ensure the reliability and fairness of electric energy metering; it can also be applied to sub-cycle calculation, which is suitable for the field of dynamic electric energy metering, and provides support for high-accuracy measurement of electrical parameters under the background of "double highs".

[0084] Fig. 9 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device may include:

[0085] A memory 901 , a processor 902 , and a computer program stored in the memory 901 and executable on the processor 902 .

[0086] When the processor 902 executes the program, the single-cycle phase-locked power measurement method provided in the above embodiment is implemented.

[0087] Furthermore, the electronic device further comprises:

[0088] The communication interface 903 is used for communication between the memory 901 and the processor 902 .

[0089] The memory 901 is used to store computer programs that can be executed on the processor 902 .

[0090] The memory 901 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0091] If the memory 901, the processor 902 and the communication interface 903 are implemented independently, the communication interface 903, the memory 901 and the processor 902 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0092] Optionally, in a specific implementation, if the memory 901, the processor 902 and the communication interface 903 are integrated on a chip, the memory 901, the processor 902 and the communication interface 903 can communicate with each other through an internal interface.

[0093] The processor 902 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0094] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the single-cycle phase-locked power measurement method as described above is implemented.

[0095] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "N" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0097] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.

[0098] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

[0099] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0100] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0102] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A single-cycle phase-locked power measurement method, characterized in that: The following steps are involved: Single-cycle sampling of a voltage acquisition sequence and a current acquisition sequence of a target power system at a target sampling frequency within a target sampling duration; Solving the voltage coefficient vector and the current coefficient vector respectively according to the voltage acquisition sequence and the current acquisition sequence; Calculating the amplitude of the voltage fundamental wave, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of multiple current harmonic components and the phase differences of multiple voltage and current frequency components respectively according to the voltage coefficient vector and the current coefficient vector; The active power and reactive power generated by the voltage and current are calculated based on the amplitude of the voltage fundamental wave, the amplitudes of the multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of the multiple current harmonic components and the phase differences of the multiple voltage and current frequency components.

2. The single-cycle phase-locked power measurement method according to claim 1, characterized in that: The number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

3. The single-cycle phase-locked power measurement method according to claim 1, characterized in that: The step of solving the voltage coefficient vector and the current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence includes: Extracting the fundamental frequency of the target power system based on the phase-locked loop of the electric energy meter, and constructing a normalized matrix according to the fundamental frequency; The voltage coefficient vector and the current coefficient vector are calculated according to the normalized matrix, the voltage acquisition sequence, and the current acquisition sequence.

4. The single-cycle phase-locked power measurement method according to claim 1 or 3, characterized in that: The voltage coefficient vector includes a fundamental sine-cosine component and a plurality of harmonic sine-cosine components of a voltage signal, and the current coefficient vector includes a fundamental sine-cosine component and a plurality of harmonic sine-cosine components of a current signal.

5. A single-cycle phase-locked power measurement device, characterized in that: include: A sampling module, used for sampling a voltage acquisition sequence and a current acquisition sequence of a target power system in a single cycle at a target sampling frequency within a target sampling duration; A phase-locked solution module, used to solve a voltage coefficient vector and a current coefficient vector according to the voltage acquisition sequence and the current acquisition sequence respectively; A frequency characteristic solving module, used for respectively calculating the amplitude of the voltage fundamental wave, the amplitudes of multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of multiple current harmonic components and the phase difference of multiple voltage and current frequency components according to the voltage coefficient vector and the current coefficient vector; A power calculation module is used to calculate the active power and reactive power generated by the voltage and current based on the amplitude of the voltage fundamental wave, the amplitudes of the multiple voltage harmonic components, the amplitude of the current fundamental wave, the amplitudes of the multiple current harmonic components and the phase difference of the multiple voltage and current frequency components.

6. The single-cycle phase-locked power measurement device according to claim 5, characterized in that: The number of unknown elements in the voltage coefficient vector is smaller than the number of elements in the voltage acquisition sequence, and the number of unknown elements in the current coefficient vector is smaller than the number of elements in the current acquisition sequence.

7. The single-cycle phase-locked power measurement device according to claim 5, characterized in that: The phase-locked solution module comprises: A phase-locked extraction unit, configured to extract the fundamental frequency of the target power system based on a phase-locked loop of an electric energy meter, and construct a normalized matrix according to the fundamental frequency; A calculation unit is used to calculate the voltage coefficient vector and the current coefficient vector according to the normalized matrix, the voltage acquisition sequence and the current acquisition sequence.

8. The single-cycle phase-locked power measurement device according to claim 5 or 7, characterized in that: The voltage coefficient vector includes a fundamental sine-cosine component and a plurality of harmonic sine-cosine components of a voltage signal, and the current coefficient vector includes a fundamental sine-cosine component and a plurality of harmonic sine-cosine components of a current signal.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the single-cycle phase-locked power measurement method as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the single-cycle phase-locked power measurement method as described in any one of claims 1 to 4.