AC real-time parameter rapid correction method

By replacing division with multiplication and shift operations in AC parameter measurement, the problems of slow calculation speed and accuracy loss are solved, achieving fast and high-precision correction results. It is applicable to real-time AC parameter measurement and other basic measurement fields.

CN121978602APending Publication Date: 2026-05-05BENGBU POWER SUPPLY COMPANY STATE GRID ANHUI ELECTRIC POWER +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BENGBU POWER SUPPLY COMPANY STATE GRID ANHUI ELECTRIC POWER
Filing Date
2024-10-30
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

In existing technologies for measuring AC parameters, division operations result in slow calculation speed and loss of accuracy, and division cannot be completely eliminated in power and harmonic correction.

Method used

Multiplication and shift operations are used instead of division. By selecting a standard and the point to be corrected in the coordinate system, the slope coefficient is calculated and corrected, thus avoiding division operations and using multiplication and shift operations for correction.

Benefits of technology

It improves the calculation speed, avoids the loss of accuracy, and realizes fast and high-precision AC parameter correction, which is suitable for real-time measurement and other basic measurement fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121978602A_ABST
    Figure CN121978602A_ABST
Patent Text Reader

Abstract

The invention discloses an alternating current real-time parameter rapid correction method, which relates to the technical field of alternating current parameter correction, and comprises the following steps of: 1, establishing an alternating current real-time parameter coordinate system; 2, selecting a plurality of standard calibration points in the coordinate system; 3, selecting a plurality of to-be-corrected points in the coordinate system, and calculating a broken line slope K corresponding to each to-be-corrected point; and 4, directly updating the to-be-corrected point through the broken line slope K to obtain corrected data. According to the invention, a curing operation can be carried out before real-time measurement is started, and a large amount of resources occupied by division operation of a single-chip microcomputer are avoided, so that the operation speed is improved, and the accuracy of a measurement result is ensured. The method is suitable for measurement of real-time electrical parameters of alternating current and other basic measurement fields, and has a wide application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of AC parameter correction technology, and in particular to a method for rapid real-time correction of AC parameters. Background Technology

[0002] In real-time AC parameter measurement and other fundamental measurement fields, piecewise linear calibration is often required to improve measurement accuracy. Traditional piecewise linear calibration methods typically require division operations, which consume significant resources in a microcontroller, resulting in slower processing speeds and potential loss of accuracy.

[0003] Although existing techniques have proposed faster and more accurate piecewise linear correction methods, the problem of incomplete elimination of division still exists in power and harmonic (fundamental) correction. This is because, in real-time processing, the relevant values ​​are time-dependent, causing the divisor to change dynamically. Current solutions involve calculating only once in real-time and then performing calculations using multiplication and shifting afterwards. However, a method that completely eliminates division without sacrificing accuracy has not yet been found. Therefore, the current challenge is to find a method that can resolve the issue of incomplete elimination of division in power and harmonic (fundamental) correction. Summary of the Invention

[0004] The purpose of this invention is to provide a method for rapid real-time correction of alternating current parameters, which has the advantages of fast calculation speed and high accuracy.

[0005] This invention is achieved through the following technical solution:

[0006] A method for rapid real-time correction of alternating current parameters includes the following steps:

[0007] Step 1: Establish a coordinate system for real-time AC parameters;

[0008] Step 2: First, select several standard calibration points in the coordinate system;

[0009] Step 3: Select several points to be corrected in the coordinate system and calculate the slope K of the broken line corresponding to each point;

[0010] Step 4: Update the points to be corrected directly using the slope K of the broken line to obtain the corrected data.

[0011] Further settings include: voltage or current correction method as follows:

[0012] Based on the standard calibration points (X0,Y0) and (X1,Y1), calculate the slope coefficient K = (Y1-Y0) / (X1-X0);

[0013] Converting division into multiplication and shift operations yields an approximate K = (mul, shift);

[0014] For the point (X,Y) to be corrected, correction is performed using multiplication and shift operations according to the formula Y=Y0+k×(X-X0).

[0015] Further settings: The multiplication and shift operation method for K is as follows:

[0016] Let a be any number, and b be an integer constant;

[0017] because so

[0018] Assume constant Then (a×c)>n;

[0019] Where mul is a × c, and n is shift.

[0020] Further settings include: correction for active power P:

[0021] according to The formula is used for calculation, where P1 is the corrected value, P0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value.

[0022] In real-time computing, the correction value of P is calculated using multiplication and shift operations to avoid division operations;

[0023] For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.

[0024] Further settings include: correction for reactive power Q:

[0025] according to The formula is used for calculation, where Q1 is the corrected value, Q0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value.

[0026] In real-time computing, the correction value of Q is calculated using multiplication and shift operations to avoid division operations;

[0027] For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.

[0028] In summary, the beneficial technical effects of the present invention are as follows:

[0029] 2. The broken line correction method can perform a solidification operation before real-time measurement begins, avoiding the large amount of resources occupied by the microcontroller for division operations, thereby improving the calculation speed.

[0030] 3. The correction is performed using a multiplication and shift operation method, which avoids the precision loss problem that exists in division operations and ensures the accuracy of the measurement results.

[0031] 4. It is applicable to the measurement of real-time electrical parameters of AC power and other basic measurement fields, and has broad application prospects.

[0032] 5. In power and harmonic correction, by calculating the correction coefficients corresponding to each segment of the broken line in advance, the problem of dynamically changing divisors can be avoided, further improving the accuracy of the correction.

[0033] 6. This technical solution can completely eliminate division operations while maintaining high precision and fast calculation, making it highly practical and economical. Attached Figure Description

[0034] Figure 1 It is a coordinate system for real-time alternating current parameters. Detailed Implementation

[0035] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0036] This invention discloses a method for rapid real-time correction of AC parameters, applicable to the measurement of real-time AC parameters and other basic measurement fields.

[0037] Reference Figure 1 The correction method includes the following steps:

[0038] Step 1: Establish a coordinate system for real-time AC parameters;

[0039] Step 2: First, select several standard calibration points in the coordinate system;

[0040] Step 3: Select several points to be corrected in the coordinate system and calculate the slope K of the broken line corresponding to each point;

[0041] Step 4: Update the points to be corrected directly using the slope K of the broken line to obtain the corrected data.

[0042] Further settings include: voltage or current correction method as follows:

[0043] Based on the standard calibration points (X0,Y0) and (X1,Y1), calculate the slope coefficient K = (Y1-Y0) / (X1-X0);

[0044] Converting division into multiplication and shift operations yields an approximate K = (mul, shift);

[0045] For the point (X,Y) to be corrected, correction is performed using multiplication and shift operations according to the formula Y=Y0+k×(X-X0).

[0046] Further settings: The multiplication and shift operation method for K is as follows:

[0047] Let a be any number, and b be an integer constant;

[0048] because so

[0049] Assume constant Then (a×c)>n;

[0050] Where mul is a × c, and n is shift.

[0051] Further settings include: correction for active power P:

[0052] according to The formula is used for calculation, where P1 is the corrected value, P0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value.

[0053] In real-time computing, the correction value of P is calculated using multiplication and shift operations to avoid division operations;

[0054] For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.

[0055] Further settings include: correction for reactive power Q:

[0056] according to The formula is used for calculation, where Q1 is the corrected value, Q0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value.

[0057] In real-time computing, the correction value of Q is calculated using multiplication and shift operations to avoid division operations;

[0058] For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.

[0059] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape, and principle of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A method for rapid real-time correction of alternating current parameters, characterized in that, Includes the following steps: Step 1: Establish a coordinate system for real-time AC parameters; Step 2: First, select several standard calibration points in the coordinate system; Step 3: Select several points to be corrected in the coordinate system and calculate the slope K of the broken line corresponding to each point; Step 4: Update the points to be corrected directly using the slope K of the broken line to obtain the corrected data.

2. The method for rapid real-time correction of AC parameters according to claim 1, characterized in that, The voltage or current correction method is as follows: Based on the standard calibration points (X0,Y0) and (X1,Y1), calculate the slope coefficient K = (Y1-Y0) / (X1-X0); Converting division into multiplication and shift operations yields an approximate K = (mul, shift); For the point (X,Y) to be corrected, correction is performed using multiplication and shift operations according to the formula Y=Y0+k×(X-X0).

3. The method for rapid real-time correction of AC parameters according to claim 2, characterized in that, The multiplication and shift operation for K is as follows: Let a be any number, and b be an integer constant; because so Assume constant Then (a×c)>>n; Where mul is a × c, and n is shift.

4. The method for rapid real-time correction of alternating current parameters according to claim 3, characterized in that, For the correction of active power P: according to The formula is used for calculation, where P1 is the corrected value, P0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value. In real-time computing, the correction value of P is calculated using multiplication and shift operations to avoid division operations; For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.

5. The method for rapid real-time correction of AC parameters according to claim 3, characterized in that, For the correction of reactive power Q: according to The formula is used for calculation, where Q1 is the corrected value, Q0 is the original value, V1 is the corrected value, V0 is the original value, I1 is the corrected value, and I0 is the original value. In real-time computing, the correction value of Q is calculated using multiplication and shift operations to avoid division operations; For fundamental correction, multiplication and shift operations are used to calculate the real and imaginary parts of the fundamental voltage.