Electric quantity measuring method, device, equipment, medium and program product

By obtaining the actual frequency and channel correction coefficient in the power distribution system, accurate measurement of electricity is achieved, which solves the problem of high cost of the power distribution system, reduces the power consumption and equipment cost of the system, and improves the accuracy and real-time performance of the measurement. .

CN118795375AActive Publication Date: 2024-10-18CHINA MOBILE GROUP DESIGN INST +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410266425.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-08
Publication Date
2024-10-18
Estimated Expiration
2044-03-08

AI Technical Summary

Technical Problem

The cost of power distribution protection devices and power measurement devices in the existing power distribution system is high, and the power consumption of the equipment during operation increases, resulting in an increase in overall power consumption, and high sampling rate, high-precision AD converters are expensive, increasing the System cost.

Method used

By obtaining the actual frequency of the power supply system under test, determining the sampling time interval, and correcting the sampling results based on the channel correction coefficient of the target converter, the accuracy and real-time performance of the power measurement results are achieved, using a single AD converter with a low sampling rate Take measurements and reduce system costs.

Benefits of technology

It achieves accurate measurement of electricity, reduces the cost of the power distribution system, reduces the power consumption of the equipment, eliminates the phase error through the channel correction coefficient, and improves the synchronization and real-time performance of the measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795375A_ABST
    Figure CN118795375A_ABST
Patent Text Reader

Abstract

The invention provides an electric quantity measurement method, device and equipment, a medium and a program product, and the method comprises the steps: obtaining the actual frequency of a to-be-measured power supply system, determining a sampling time interval based on the actual frequency, and enabling the sampling time interval to be a time interval for sequentially sampling M channels of the to-be-measured power supply system for N times in a cycle; obtaining target sampling results of the M channels of the power supply system to be detected; correcting the target sampling result based on a channel correction coefficient to obtain an electric quantity measurement result of the to-be-measured power supply system, the channel correction coefficient reflecting a phase difference between results of sampling the calibration channel and the reference channel by using the target converter, and the channel correction coefficient being obtained based on a reference sampling result, the reference sampling result is obtained by sequentially sampling the M channels by the target converter based on a reference time interval, and the reference time interval is a time interval for sequentially sampling the M channels for N times in a cycle. The cost of the power distribution system can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electrical data processing technology, and in particular to an electrical quantity measurement method, device, equipment, medium and program product. Background Art

[0002] The power supply and distribution system of a computer room (such as a computer room in a modular data center) introduces AC or DC and classifies the electric energy into each cabinet in conjunction with UPS and other facilities for use by various power loads. AC switches and power measurement devices are required in each cabinet. The switch integrates a power distribution protection device to provide multiple protections for the power consumption side to prevent serious accidents caused by faults such as short circuits and overloads; the power measurement device measures the current, voltage, frequency, active power and other power values ​​of the AC incoming / outgoing lines in real time, providing data basis for power consumption statistics and analysis, and can also detect key power quantities such as voltage fluctuations and load changes in real time to ensure that the power consumption of each branch can be effectively guaranteed.

[0003] Since each cabinet needs to be configured and integrated with the above-mentioned power distribution protection equipment and power measurement devices, there are a large number of them and both types of equipment need to complete the collection and calculation of electrical quantities such as current and voltage, there is overlap in functions, which not only increases the cost of the power distribution system, but also occupies additional computer room space. The power consumption of the equipment during operation will also increase the overall power consumption of the distribution system.

[0004] Independent AD converters can realize protection and measurement functions and integrate distribution protection devices and power measurement devices. However, the sampling rate, internal AD number, bit accuracy and performance of the AD converter used for sampling will have a great impact on the synchronization, accuracy and real-time performance of power measurement. AD converters with high sampling rate and high accuracy are expensive, resulting in high cost of distribution systems in existing technologies. Summary of the invention

[0005] The present invention provides an electric quantity measurement method, device, equipment, medium and program product, which are used to solve the defect of high cost of power distribution system in the prior art and realize the reduction of the cost of power distribution system.

[0006] The present invention provides a method for measuring electric quantity, comprising:

[0007] Acquire the actual frequency of the power supply system to be tested, and determine a sampling time interval based on the actual frequency, wherein the sampling time interval is a time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, where N is a positive integer;

[0008] Obtaining target sampling results of M channels of the power supply system to be tested, wherein the target sampling results are obtained by sampling the power data of the M channels of the power supply system to be tested by a target converter based on the sampling time interval, and the M channels include a reference channel and a calibration channel;

[0009] The target sampling result is corrected based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result, and the reference sampling result is data obtained by the target converter by sequentially sampling M channels based on a reference time interval, and the reference time interval is the time interval for sequentially sampling M channels N times within one cycle.

[0010] According to a method for measuring electric quantity provided by the present invention, the step of determining a sampling time interval based on the actual frequency includes:

[0011] The sampling time interval is determined by a first formula, wherein the first formula is:

[0012]

[0013] Wherein, Tc′ is the sampling time interval, f′ is the actual frequency, and M is the total number of channels in the power supply system to be tested.

[0014] According to an electric quantity measurement method provided by the present invention, the target sampling result is corrected based on the channel correction coefficient of the target converter to obtain the electric quantity measurement result of the power supply system to be tested, including:

[0015] Converting the target sampling results to obtain target power frequency vectors corresponding to the M channels of the power supply system to be tested;

[0016] The target power frequency vector corresponding to the calibration channel is corrected based on the channel correction coefficient corresponding to the calibration channel to obtain an electrical quantity measurement result of the calibration channel.

[0017] According to a method for measuring electric quantity provided by the present invention, the target power frequency vector corresponding to the calibration channel is corrected based on the channel correction coefficient corresponding to the calibration channel, including:

[0018] Correcting the target power frequency vector corresponding to the calibration channel based on a second formula;

[0019] The second formula is:

[0020] V H ′=[rcosθ-s(-sinθ)]+j[r(-sinθ)-scosθ];

[0021] Among them, V H' is the corrected electrical quantity measurement result of the calibration channel, cosθ and -sinθ are the channel correction coefficients, V H =r+js,V H is the target power frequency vector corresponding to the calibration channel, r and s are the real part and imaginary part of the target power frequency vector corresponding to the calibration channel, respectively, and j is an imaginary unit.

[0022] According to a method for measuring electric quantity provided by the present invention, the channel correction coefficient corresponding to the calibration channel is obtained by the following process:

[0023] Convert the reference sampling results to obtain reference power frequency vectors corresponding to the M channels respectively;

[0024] The channel correction coefficient corresponding to the calibration channel is determined based on the reference power frequency vector corresponding to the reference channel and the calibration channel.

[0025] According to a method for measuring electric quantity provided by the present invention, before converting the reference sampling result, the method includes:

[0026] determining a reference frequency, and determining the reference time interval based on the reference frequency;

[0027] After applying a rated excitation amount with a frequency equal to the same phase as the reference frequency to the M channels, the reference sampling result obtained by the target converter sampling the M channels based on the reference time interval is obtained.

[0028] The present invention also provides an electric quantity measuring device, comprising:

[0029] A sampling interval adjustment module, used to obtain the actual frequency of the power supply system to be tested, and determine a sampling time interval based on the actual frequency, wherein the sampling time interval is a time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, where N is a positive integer;

[0030] A sampling result acquisition module, used to acquire target sampling results of the M channels of the power supply system to be tested, wherein the target sampling results are obtained by sampling the power data of the M channels of the power supply system to be tested by a target converter based on the sampling time interval, and the M channels include a reference channel and a calibration channel;

[0031] A sampling result correction module is used to correct the target sampling result based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result, and the reference sampling result is the data obtained by the target converter sampling M channels in sequence based on a reference time interval, and the reference time interval is the time interval for sampling the M channels in sequence N times within one cycle.

[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned methods for measuring electric quantity is implemented.

[0033] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the power measurement method described in any one of the above is implemented.

[0034] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the above-mentioned methods for measuring electric quantity.

[0035] The electric quantity measurement method, device, equipment, medium and program product provided by the present invention obtain the electric quantity measurement result of the power supply system to be measured by correcting the target sampling result of each channel of the power supply system to be measured based on the sampling time interval of the target converter based on the channel correction coefficient, and the channel correction coefficient is determined based on the result obtained by the target converter sampling the power supply system to be measured using the reference time interval. Both the reference time interval and the sampling time interval can realize the target converter to sample each channel of the power supply system to be measured N times in sequence within one cycle, and the sampling result of the target converter can be accurately corrected, so that the single AD converter with low sampling rate and moderate bit accuracy can be used to achieve accurate measurement of electric quantity, thereby achieving the effect of reducing the cost of the power distribution system. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 This is one of the flow charts of the method for measuring electric quantity provided by the present invention;

[0038] Figure 2 This is the second flow chart of the method for measuring electric quantity provided by the present invention;

[0039] Figure 3 is a schematic diagram of a reference time interval in the method for measuring electric quantity provided by the present invention;

[0040] Figure 4 It is a schematic diagram of the power frequency vector phase angle of the reference channel and the calibration channel in the electrical quantity measurement method provided by the present invention;

[0041] Figure 5 It is a schematic diagram of the sampling time interval in the electric quantity measurement method provided by the present invention;

[0042] Figure 6 It is a structural schematic diagram of the electric quantity measuring device provided by the present invention;

[0043] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] Combine the following Figure 1-Figure 5 The electric quantity measurement method of the present invention is described. The electric quantity measurement method provided by the present invention can be executed by a processor in an electric quantity measurement system in a power distribution system. An AD converter is provided in the power distribution system. The processor is communicated with the AD converter (which can be a wireless communication connection or a wired communication connection through a data line). The sampling result of the AD converter can be read, and subsequent operations of calculating and processing the sampling result can be performed.

[0046] like Figure 1 As shown, the electric quantity measurement method provided by the present invention comprises the steps of:

[0047] S110, obtaining the actual frequency of the power supply system to be tested, and determining a sampling time interval based on the actual frequency, where the sampling time interval is a time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, where N is a positive integer;

[0048] S120, obtaining target sampling results of M channels of the power supply system to be tested, where the target sampling results are obtained by sampling the power data of the M channels by the target converter based on a sampling time interval, where the M channels include a reference channel and a calibration channel;

[0049] S130. Correct the target sampling result based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result. The reference sampling result is data obtained by the target converter by sequentially sampling M channels based on a reference time interval, and the reference time interval is the time interval for sequentially sampling M channels N times within one cycle.

[0050] In the field of low-voltage electrical equipment, a large number of protection and measurement devices need to detect three-phase AC current, voltage and other electrical quantities, and calculate the effective value of current and voltage, active power, reactive power, power factor and other values ​​in the circuit based on the detected electrical quantities. For protection, it is also necessary to calculate the current and voltage sequence components, active power and other criteria for special protection based on the detected electrical quantities. Therefore, accurate measurement of electrical quantities such as current and voltage is very important.

[0051] There are many ways to achieve accurate measurement and calculation of three-phase AC electricity. In order to reduce costs, the protection measurement can be unified by one device to reduce the use of power supply, display, signal sampling and other devices. Although AD converters can achieve electricity measurement with a single device, SAR parallel sampling AD, independent electric energy chip, high sampling rate SAR AD converter and other chips as core components of signal sampling will increase the cost of the device.

[0052] Ordinary SAR AD converters have suitable bit accuracy, low sampling rate and moderate performance. Although the protection and measurement functions can be realized by asynchronous sampling and calculation of current and voltage channels through this AD converter, and the price is low, this type of AD converter generally only integrates a single AD, and the calculation effect of some key electrical quantities used for protection and measurement functions is poor. The mutual inductors, resistors, capacitors and other devices used in the device will cause a certain phase deviation between channels due to the limitation of digital accuracy. Calculating each electrical quantity value based on the asynchronous sampling results of the converter will cause channel phase deviation. When these phase deviations are superimposed on each other, the calculation of three-phase power, electric energy, sequence components and other electrical quantities will produce a large phase error.

[0053] In the method provided by the present invention, when the target converter is a single AD converter with a low sampling rate, its sampling result can be corrected to eliminate the phase error between channels caused by the use of the single AD converter with a low sampling rate, including the phase deviation caused by the numerical deviation of components such as resistors, capacitors, and mutual inductors in the device.

[0054] like Figure 2 As shown, in the method provided by the present invention, the phase compensation coefficient between the sampling results obtained by sampling M channels (the channels are current and voltage channels) using the target converter is calculated in advance and stored. After the M channels of the power distribution system to be tested are actually sampled, compensation is performed based on the phase compensation coefficient to obtain accurate power data.

[0055] The following first describes a process of obtaining a phase compensation coefficient for each of the M channels.

[0056] For M channels, one is selected as the reference channel and the rest are calibration channels. The reference channel can be the first channel or other channels. The following takes the first channel as the reference channel as an example. For a three-phase AC power supply system with a frequency of f, one cycle has N sampling points (the number of sampling points can be determined based on the performance of the converter and actual needs), then the time interval of the sampling timer of the design target converter is That is, the target converter is started every Ts to sample all channels one by one. For a low-voltage device with M current and voltage channels, the reference sampling time interval of the design channel is That is, in the Ts time interval of the Kth sampling, one channel is sampled every Tc time until all channels are sampled, at which time the Kth sampling ends, such as Figure 3 shown.

[0057] In the method provided by the present invention, before actually measuring the power supply system to be measured, the phase deviation between each channel when sampling between M channels based on the target converter is determined in advance, and the channel correction coefficient corresponding to each calibration channel is obtained. When the power supply system to be measured is actually running, correction is performed on the actual sampling result of the calibration channel based on the obtained channel correction coefficient, which can reduce the amount of correction calculation during measurement.

[0058] The channel correction coefficient corresponding to the calibration channel is obtained through the following process:

[0059] Convert the reference sampling results to obtain the reference power frequency vectors corresponding to each channel;

[0060] A channel correction coefficient corresponding to the calibration channel is determined based on reference power frequency vectors corresponding to the reference channel and the calibration channel.

[0061] The target converter samples the M channels based on the reference time interval to obtain the reference sampling results of each channel, performs DFT calculation on the reference sampling results, and obtains the reference power frequency vectors corresponding to the reference channel and the calibration channel respectively:

[0062] V 1 =a+bj

[0063] V H =c+dj

[0064] V 1 Represents the reference frequency vector corresponding to the reference channel, V H It represents the reference power frequency vector corresponding to the calibration channel H (2≤H≤M), a and c are V 1 and V H The real part of b and d are V 1 and V H The imaginary part of the calibration channel H. Then the overall phase deviation of the calibration channel H relative to the reference channel can be expressed as follows:

[0065]

[0066] Among them, θ is the phase angle of the calibration channel H leading the reference channel. The specific principle is as follows Figure 4 As shown. The above formula can be transformed into:

[0067] V P =D*(cosθ+jsinθ)

[0068]

[0069]

[0070]

[0071] In order to facilitate calculation during actual measurement, cosθ and -sinθ are stored as channel correction coefficients.

[0072] The process of determining the channel correction coefficient of the sampling result of each channel by the target converter can be performed before the target converter is initially powered on or before the power supply system to be tested is operated. In this way, it can be performed before the measuring device (including the target converter and the processor that executes the method provided by the present invention) is set in the power supply system to be tested (for example, before the measuring device leaves the factory). That is, before converting the reference sampling result, it includes:

[0073] determining a reference frequency, and determining a reference time interval based on the reference frequency;

[0074] After applying a rated excitation amount with the same phase as the reference frequency to the M channels, a reference sampling result is obtained by sampling each channel based on a reference time interval by the target converter.

[0075] When the measuring device is not set in the power supply system to be tested or the measuring device is set after the power supply system to be tested but the power supply system to be tested is not powered on yet, a high-precision current and voltage generator can be used to apply a rated excitation amount with a frequency that is the reference frequency and the same phase to the M channels, and a reference time interval of the target converter is set based on the reference frequency. The target converter samples the M channels based on the reference time interval to obtain a reference sampling result.

[0076] The channel correction coefficients of each calibration channel are stored after being determined. When the power of the power supply system to be tested is actually measured, the sampling time interval is determined according to the actual frequency. In the process of real-time measurement of the precise frequency of the system, if the frequency changes, the period of the current and voltage signals changes. At this time, the sampling time interval should be adjusted to ensure that the number of sampling points and the time interval of one cycle are equal. At the same time, due to the change in sampling time, the channel interval time also changes accordingly to ensure that the phase deviation represented by the sampling interval time between each channel is the same as before the frequency change.

[0077] Determine the sampling interval based on the actual frequency, including:

[0078] The sampling time interval is determined by the following formula:

[0079]

[0080] Wherein, Tc′ is the sampling time interval, f′ is the actual frequency, and M is the total number of channels in the power supply system to be tested.

[0081] The method of determining the sampling time interval in the method provided by the present invention can ensure that the number of sampling points and the time interval in a cycle are equal, so that the phase deviation represented by the sampling interval between each channel is the same as the phase deviation when determining the channel correction coefficient. Considering that the frequency change of the power system generally does not exceed 2Hz, the phase deviation caused by the numerical deviation of the components such as the resistor and capacitor, and the mutual inductor between channels can be considered to be unchanged with the frequency fluctuation. Therefore, the channel correction coefficient that has been calculated and stored offline can completely correct the phase deviation between the channel vectors.

[0082] That is to say, when the actual frequency changes compared to the reference frequency, the sampling time interval changes dynamically with the actual frequency, but the final result can ensure that the sampling time interval for each channel is equal in each sampling cycle, such as Figure 5 shown.

[0083] By equally dividing the sampling time according to the number of channels, the sampling rate requirements of the AD converter can be minimized. If the frequency changes, there is also a large time adjustment space, which facilitates the subsequent adjustment of the channel time interval.

[0084] The target sampling result is corrected based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, including:

[0085] The target sampling results are converted to obtain the target power frequency vectors corresponding to the M channels of the power supply system to be tested;

[0086] The target power frequency vector corresponding to the calibration channel is corrected based on the channel correction coefficient corresponding to the calibration channel to obtain the electrical quantity measurement result of the calibration channel.

[0087] The method adopted by the present invention implements the measurement system frequency and dynamically adjusts the sampling time interval and the channel interval time to ensure that the power frequency vector value calculated by DFT will not produce calculation errors due to frequency changes, and also ensures that the channel phase deviation represented by the channel correction coefficient will not change due to frequency changes. The pre-stored channel correction coefficient does not need to be adjusted according to the frequency change, which greatly simplifies the real-time phase correction of the power frequency vector after the DFT calculation of each channel, with a small amount of calculation and easy implementation.

[0088] Specifically, the target power frequency vector corresponding to the calibration channel is corrected based on the channel correction coefficient corresponding to the calibration channel, including:

[0089] The target power frequency vector corresponding to the calibration channel is corrected based on the following formula:

[0090] V H ′=[rcosθ-s(-sinθ)]+j[r(-sinθ)-scosθ];

[0091] Among them, V H ′ is the corrected electrical quantity measurement result of calibration channel H, cosθ and -sinθ are channel correction coefficients, V H =r+js,V H is the target power frequency vector corresponding to the calibration channel, r and s are the real and imaginary parts of the target power frequency vector corresponding to the calibration channel, respectively, and j is the imaginary unit.

[0092] The derivation process of the formula for correcting the target power frequency vector is as follows:

[0093] V H ′=e -jθ *V H

[0094] V H =r+js Substituting into the above formula, we can get: V H′=[cosθ+j(-sinθ)]*(r+js), further expanding the formula yields:

[0095] V H ′=[rcosθ-s(-sinθ)]+j[r(-sinθ)-scosθ]

[0096] The cosθ and -sinθ in the working time of correcting the target power frequency vector are the channel correction coefficients that are predetermined and stored. Therefore, a few simple multiplication and addition operations of the channel can completely correct the phase of the target power frequency vector of the calibration channel. Considering that the current and voltage signals of the low-voltage power supply system are periodic steady-state signals, after the phase error of each calibration channel relative to the reference channel is eliminated, it is equivalent to synchronously sampling all channels with AD when sampling the reference channel, achieving the effect of synchronous AD sampling, which can eliminate the phase error between channels caused by using a low sampling rate single AD converter, including the phase deviation caused by the numerical deviation of components such as resistors, capacitors, and mutual inductors in the device.

[0097] The corrected vector can significantly reduce the measurement errors of circuit power, power factor, line voltage, positive and negative zero-sequence components, electric energy and other electrical quantities, providing a low-cost, high-performance implementation method for low-voltage protection measurement devices.

[0098] The method provided by the present invention pre-calibrates each channel, uses the calibration coefficient to perform phase correction on each channel vector, and considers the influence of system frequency change on phase correction, which can effectively eliminate the phase deviation between channels. The channel correction coefficient of each channel is calculated and stored in advance. Although the channel correction process has a slightly large amount of calculation, it only needs to be done once before the device leaves the factory or is installed in the power supply system to be tested and powered on. Normal operation adjusts the sampling timer interval in time according to the frequency change, and performs phase compensation according to the power frequency vector calculated by DFT. The amount of calculation during normal operation is only one division of the timer time and several multiplication and addition operations of the correction channel data. In addition, all sampling channels can be corrected, thereby calculating various electrical quantities such as power, power factor, line voltage, positive and negative zero-sequence components, and is widely used.

[0099] The electric quantity measuring device provided by the present invention is described below. The electric quantity measuring device described below and the electric quantity measuring method described above can be referred to each other. Figure 6 As shown, the device comprises:

[0100] The sampling interval adjustment module 610 is used to obtain the actual frequency of the power supply system to be tested, and determine the sampling time interval based on the actual frequency. The sampling time interval is the time interval for sequentially sampling the M channels of the power supply system to be tested N times within one cycle, and N is a positive integer;

[0101] The sampling result acquisition module 620 is used to acquire the target sampling result of each channel of the power supply system to be tested, where the target sampling result is obtained by sampling the power data of M channels of the power supply system to be tested by the target converter based on the sampling time interval, where the M channels include a reference channel and a calibration channel;

[0102] The sampling result correction module 630 is used to correct the target sampling result based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result. The reference sampling result is the data obtained by the target converter by sequentially sampling M channels based on a reference time interval, and the reference time interval is the time interval for sequentially sampling M channels N times within one cycle.

[0103] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 can call the logic instructions in the memory 730 to execute the power measurement method, which includes: obtaining the actual frequency of the power supply system to be tested, determining the sampling time interval based on the actual frequency, the sampling time interval being the time interval for sequentially sampling the M channels of the power supply system to be tested N times within one cycle, and N is a positive integer; obtaining the target sampling results of the M channels of the power supply system to be tested, the target sampling results being obtained by the target converter sampling the power data of the M channels based on the sampling time interval, and the M channels include a reference channel and a calibration channel; correcting the target sampling results based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, the channel correction coefficient is obtained based on the reference sampling result, the reference sampling result is the data obtained by the target converter sequentially sampling the M channels based on the reference time interval, and the reference time interval is the time interval for sequentially sampling the M channels N times within one cycle.

[0104] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the power measurement method provided by the above methods, which method includes: obtaining the actual frequency of the power supply system to be tested, determining the sampling time interval based on the actual frequency, the sampling time interval being the time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, and N is a positive integer; obtaining the target sampling results of the M channels of the power supply system to be tested, the target sampling results being obtained by the target converter sampling the power data of the M channels based on the sampling time interval, and the M channels include a reference channel and a calibration channel; correcting the target sampling results based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, the channel correction coefficient is obtained based on the reference sampling result, the reference sampling result is the data obtained by the target converter sequentially sampling the M channels based on the reference time interval, and the reference time interval is the time interval for sequentially sampling the M channels N times within one cycle.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented by a processor to execute the power measurement method provided by the above methods when the computer program is executed, the method comprising: obtaining the actual frequency of the power supply system to be tested, determining the sampling time interval based on the actual frequency, the sampling time interval being the time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, and N is a positive integer; obtaining the target sampling results of the M channels of the power supply system to be tested, the target sampling results being obtained by a target converter sampling the power data of the M channels based on the sampling time interval, and the M channels include a reference channel and a calibration channel; correcting the target sampling results based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, the channel correction coefficient is obtained based on the reference sampling result, the reference sampling result is data obtained by the target converter sequentially sampling the M channels based on the reference time interval, and the reference time interval is the time interval for sequentially sampling the M channels of the power supply system to be tested N times within one cycle.

[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for measuring electric quantity, characterized in that: include: Acquire the actual frequency of the power supply system to be tested, and determine a sampling time interval based on the actual frequency, wherein the sampling time interval is a time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, where N is a positive integer; Obtaining target sampling results of M channels of the power supply system to be tested, wherein the target sampling results are obtained by sampling the power data of the M channels of the power supply system to be tested by a target converter based on the sampling time interval, and the M channels include a reference channel and a calibration channel; The target sampling result is corrected based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result, and the reference sampling result is data obtained by the target converter by sequentially sampling M channels based on a reference time interval, and the reference time interval is the time interval for sequentially sampling M channels N times within one cycle.

2. The method for measuring electric quantity according to claim 1, characterized in that: The determining of the sampling time interval based on the actual frequency comprises: The sampling time interval is determined by a first formula, wherein the first formula is: Wherein, Tc′ is the sampling time interval, f′ is the actual frequency, and M is the total number of channels in the power supply system to be tested.

3. The method for measuring electric quantity according to claim 1, characterized in that: The target sampling result is corrected based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, including: Converting the target sampling results to obtain target power frequency vectors corresponding to the M channels of the power supply system to be tested; The target power frequency vector corresponding to the calibration channel is corrected based on the channel correction coefficient corresponding to the calibration channel to obtain an electrical quantity measurement result of the calibration channel.

4. The method for measuring electric quantity according to claim 3, characterized in that: The correcting the target power frequency vector corresponding to the calibration channel based on the channel correction coefficient corresponding to the calibration channel includes: Correcting the target power frequency vector corresponding to the calibration channel based on a second formula; The second formula is: V H ′=[rcosθ-s(-sinθ)]+j[r(-sinθ)-scosθ]; Among them, V H ' is the corrected electrical quantity measurement result of the calibration channel, cosθ and -sinθ are the channel correction coefficients, V H =r+js,V H is the target power frequency vector corresponding to the calibration channel, r and s are the real part and imaginary part of the target power frequency vector corresponding to the calibration channel, respectively, and j is an imaginary unit.

5. The method for measuring electric quantity according to claim 3, characterized in that: The channel correction coefficient corresponding to the calibration channel is obtained by the following process: Convert the reference sampling results to obtain reference power frequency vectors corresponding to the M channels respectively; The channel correction coefficient corresponding to the calibration channel is determined based on the reference frequency vector corresponding to the reference channel and the calibration channel.

6. The method for measuring electric quantity according to claim 5, characterized in that: Before converting the reference sampling result, the method includes: determining a reference frequency, and determining the reference time interval based on the reference frequency; After applying a rated excitation amount with a frequency equal to the same phase as the reference frequency to the M channels, the reference sampling result obtained by the target converter sampling the M channels based on the reference time interval is obtained.

7. An electric quantity measuring device, characterized in that: include: A sampling interval adjustment module, used to obtain the actual frequency of the power supply system to be tested, and determine a sampling time interval based on the actual frequency, wherein the sampling time interval is a time interval for sequentially sampling M channels of the power supply system to be tested N times within one cycle, where N is a positive integer; A sampling result acquisition module, used to acquire target sampling results of the M channels of the power supply system to be tested, wherein the target sampling results are obtained by sampling the power data of the M channels of the power supply system to be tested by a target converter based on the sampling time interval, and the M channels include a reference channel and a calibration channel; A sampling result correction module is used to correct the target sampling result based on the channel correction coefficient of the target converter to obtain the power measurement result of the power supply system to be tested, wherein the channel correction coefficient reflects the phase difference between the results of sampling the calibration channel and the reference channel using the target converter, and the channel correction coefficient is obtained based on the reference sampling result, and the reference sampling result is the data obtained by the target converter sampling M channels in sequence based on a reference time interval, and the reference time interval is the time interval for sampling the M channels in sequence N times within one cycle.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the electric quantity measuring method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the electric quantity measuring method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the electric quantity measuring method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Three-phase alternating current comprehensive electric quantity detecting method and detection circuit

    CN103197111A

  • Method for metering electric quantity based on electric energy metering chip

    CN105866530A

  • Power quality testing method and system, readable storage medium and computer equipment

    CN110208718A

  • Base station electric quantity abnormity monitoring method and device and readable storage medium

    CN114325141A

  • Method and system for determining an electrical implement

    CN116381323A