CN107085133A - Method and device for calculating single-phase virtual value - Google Patents
Method and device for calculating single-phase virtual value Download PDFInfo
- Publication number
- CN107085133A CN107085133A CN201610085497.0A CN201610085497A CN107085133A CN 107085133 A CN107085133 A CN 107085133A CN 201610085497 A CN201610085497 A CN 201610085497A CN 107085133 A CN107085133 A CN 107085133A
- Authority
- CN
- China
- Prior art keywords
- signal
- alternating current
- current signal
- conversion
- absolute value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000006243 chemical reaction Methods 0.000 claims abstract description 36
- 238000000605 extraction Methods 0.000 claims abstract description 11
- 230000009466 transformation Effects 0.000 abstract description 20
- 239000000284 extract Substances 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 description 8
- 238000005070 sampling Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 238000011426 transformation method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/02—Measuring effective values, i.e. root-mean-square values
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/14—Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Optimization (AREA)
- Mathematical Analysis (AREA)
- Computational Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Complex Calculations (AREA)
Abstract
The invention discloses a kind of method and device for being used to calculate single-phase virtual value, this method includes:Signal acquisition step, gathers AC signal;Absolute value shift step, absolute value conversion is carried out by the AC signal of collection;DC component extraction step, the AC signal after absolute value is converted carries out first and converted, and extracts DC component therein;Transformation of scale step, DC component is carried out transformation of scale to obtain the single-phase virtual value of AC signal.The present invention can improve the arithmetic speed and precision of the single-phase virtual value of AC signal.
Description
Technical Field
The invention relates to the technical field of electric power, in particular to a method and a device for calculating a single-phase effective value.
Background
The effective value (RMS) represents the amplitude of the alternating current signal, is one of the measurement indexes of the thermal effect of the load object, has important instructive significance for the protection of the system and the judgment of the actual operation condition, and has strong practical significance. The effective value is specifically defined as: the alternating current and the direct current are respectively passed through the resistors with the same resistance value, and if the heat generated by the resistors in the same time is equal, the direct current value is called as the effective value of the alternating current.
The hardware protection threshold value of the high-power current conversion system is set according to an alternating current instantaneous value, and the software protection is based on an effective value, particularly a single-phase effective value in three-phase intersection flow needs to be calculated aiming at three-phase unbalance and open-phase protection. The accuracy of the effective value therefore determines the accuracy of the protection system. If the effective value has a large error, the system protection can be disabled, and the machine can be damaged and the people can be killed seriously.
In the conventional method for calculating an effective value, the calculation of a single-phase effective value and the calculation of a single-phase effective value under a variable frequency are methods for obtaining a root mean square by taking multiple points, and certain limitations and complexity exist. The method has higher requirements on the number and the period of the point taking, occupies a large amount of storage space and consumes time for calculation, and simultaneously causes inaccurate calculation when the frequency changes.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for calculating a single-phase effective value, so as to improve the operation speed and accuracy of the single-phase effective value of an ac signal.
According to an aspect of the present invention, there is provided a method for calculating a single-phase effective value, including:
a signal acquisition step of acquiring an alternating current signal;
an absolute value conversion step of performing absolute value conversion on the acquired alternating current signal;
a direct current component extraction step, wherein the alternating current signal after absolute value conversion is subjected to first conversion, and a direct current component in the alternating current signal is extracted;
and a scaling step of scaling the direct current component to obtain a single-phase effective value of the alternating current signal.
According to one embodiment of the invention, the first transform comprises a fourier transform.
According to one embodiment of the invention, the scaling step uses scaling factors of
According to one embodiment of the invention, the alternating current signal is a voltage signal.
According to one embodiment of the invention, the alternating current signal is a current signal.
According to another aspect of the present invention, there is also provided an apparatus for calculating a single-phase effective value, including:
the acquisition module is used for acquiring alternating current signals;
the absolute value conversion module is used for carrying out absolute value conversion on the acquired alternating current signals;
the direct current component extraction module is used for carrying out first conversion on the alternating current signal after the absolute value conversion and extracting a direct current component in the alternating current signal;
and the proportion conversion module is used for carrying out proportion conversion on the direct-current component so as to obtain a single-phase effective value of the alternating-current signal.
According to an embodiment of the invention, the first transform employed by the direct current component extraction module comprises a fourier transform.
According to one embodiment of the present invention, the scaling module uses scaling factors of
According to one embodiment of the invention, the alternating current signal collected by the collection module is a voltage signal.
According to one embodiment of the invention, the alternating current signal collected by the collection module is a current signal.
The invention has the beneficial effects that:
the invention sets three operation links of absolute value transformation, Fourier transformation and proportion operation in sequence, only needs to complete addition and multiplication operation in the process of calculating the effective value of the alternating current signal, and does not have evolution operation which usually needs to consume a large number of clock cycles, thereby greatly improving the operation speed of the method. In addition, the interface of the invention is simple, the periodic equal sampling processing is not needed, the connection between the software and the sampling can be separated, and a large amount of storage space can not be occupied. Meanwhile, the invention adopts a frequency domain analysis method to convert the time domain signal into the frequency domain signal for processing, thereby avoiding the interference of frequency transformation on the sampling signal and improving the operation precision.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required in the description of the embodiments or the prior art:
FIG. 1 is a flow diagram of a method according to one embodiment of the invention;
FIG. 2a is a schematic representation of an AC signal before absolute value transformation according to one embodiment of the present invention;
FIG. 2b is a schematic diagram of an AC signal after absolute value transformation according to one embodiment of the present invention; and
fig. 3 is a diagram of a device structure according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
In the conventional method for calculating an ac effective value, there are certain limitations and complexities in the calculation of a single-phase effective value and the calculation of a single-phase effective value under a varying frequency by taking a multi-point root mean square. The method has higher requirements on the number and the period of the point taking, occupies a large amount of storage space and consumes time for calculation, and simultaneously, the calculation is inaccurate when the frequency changes.
Therefore, the present invention provides a method for calculating a single-phase effective value, which is illustrated in fig. 1 as a flowchart of the method according to an embodiment of the present invention, and the present invention is described in detail below with reference to fig. 1.
First, step S110 is a signal collection step, i.e., collecting ac signals. Specifically, in this step, the collected ac signal may be a voltage signal or a current signal. An ac signal is a signal in which the direction of current flow changes, and can be represented by a sinusoidal function as follows:
x(t)=Amsinωt (1)
wherein A ismRepresents the maximum amplitude of the ac signal, ω represents the angular frequency of the ac signal, and t represents time.
And setting a sampling frequency, and sampling the original analog alternating current signal to obtain a discrete digital alternating current signal.
Next, step S120 is an absolute value transformation step, i.e. absolute value transformation is performed on the acquired ac signal. Specifically, in this step, the ac signal represented by the formula (1) is converted into:
y(t)=Am|sinωt| (2)
that is, the sampled negative value signal is converted into a positive value signal, the original sampled positive value signal is not changed, and the specific signal conversion is shown in fig. 2a (before absolute value conversion) and fig. 2b (after absolute value conversion).
Next, in step S130, an absolute value conversion step of performing a first conversion on the ac signal after the absolute value conversion, and extracting a dc component therein. Specifically, in this step, the ac signal after the absolute value conversion is converted into a constant dc signal by using a constant conversion method.
In one embodiment of the invention, the transform method is a fourier transform. Fourier transform is a method of analyzing a signal, which analyzes components of the signal, and also synthesizes a signal using these components, and uses a sine wave as a component of the signal. Therefore, an alternating current signal represented by a sine function can be analyzed by fourier transform.
The ac signal after absolute value transformation, i.e. fourier series f (t) obtained by fourier transformation of equation (2), is:
wherein,is the dc component of the ac signal.
Due to the fact that the effective value of the alternating current signal is between the maximum value of the amplitude of the alternating current signalThe relationship of the multiple, namely: effective valueTherefore, the effective value of the alternating current signal can be calculated based on the direct current component.
Finally, in step S140, a scaling step, i.e. scaling the dc component to obtain a single-phase effective value of the ac signal, is performed.
Specifically, in this step, a proportional element is added to process the dc component obtained in step S130, so as to obtain a single-phase effective value of the ac signal. The direct current component obtained by Fourier transform isThen, the DC component is multiplied by a scaling factorThat is, the effective value of the AC signal can be obtained
From the above analysis, in the process of calculating the effective value of the alternating current signal, the invention only needs to complete addition and multiplication operations, but does not have evolution operations which usually need to consume a large number of clock cycles, thereby greatly improving the operation speed of the method. In addition, the interface of the invention is simple, the periodic equal sampling processing is not needed, the connection between the software and the sampling can be separated, and a large amount of storage space can not be occupied. Meanwhile, the invention adopts a frequency domain analysis method to convert the time domain signal into the frequency domain signal for processing, thereby avoiding the interference of frequency transformation on the sampling signal and improving the operation precision.
In the invention, when the first transformation adopts Fourier transformation to obtain direct current component, the corresponding proportionality coefficient isWhen the first transformation adopts other transformation methods to obtain the direct current component, the corresponding proportionality coefficient needs to be adjusted correspondingly.
According to another aspect of the invention, an apparatus for calculating a single-phase effective value is also provided. Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, and the present invention will be described in detail with reference to fig. 3.
As shown in fig. 3, the apparatus for calculating a single-phase effective value includes an acquisition module, an absolute value transformation module, a dc component extraction module, and a scaling module.
The acquisition module is used for acquiring alternating current signals; the absolute value conversion module carries out absolute value conversion on the acquired alternating current signal; the direct current component extraction module carries out first conversion on the alternating current signal after the absolute value conversion and extracts a direct current component in the alternating current signal; the proportion conversion module is used for carrying out proportion conversion on the direct current component so as to obtain a single-phase effective value of the alternating current signal.
The alternating current signal collected by the collection module can be a voltage signal or a current signal. The alternating current signal is a signal in which the direction of current changes, and may be represented by a sine function of equation (1).
In one embodiment of the invention, the first transform employed by the dc component extraction module comprises a fourier transform. Fourier transform is a method of analyzing a signal, which analyzes components of the signal, and also synthesizes a signal using these components, and uses a sine wave as a component of the signal. Therefore, an alternating current signal represented by a sine function can be analyzed by fourier transform. The ac signal after absolute value transformation, i.e. the fourier series f (t) obtained by fourier transformation of equation (2), i.e. equation (3).
Due to the fact that the effective value of the alternating current signal is between the maximum value of the amplitude of the alternating current signalThe relationship of the multiple, namely: effective valueTherefore, the effective value of the alternating current signal can be calculated based on the direct current component.
In one embodiment of the invention, the scaling module uses scaling factors ofAnd (4) processing the direct current component in the formula (3) to obtain the single-phase effective value of the alternating current signal. The direct current component obtained by Fourier transform isThen, the DC component is multiplied by a scaling factorThat is, the effective value of the AC signal can be obtained
When the first transformation in the direct current component extraction module adopts other transformation methods to obtain the direct current component, the scale coefficient in the scale transformation module needs to be correspondingly adjusted.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A method for computing a single-phase effective value, comprising:
a signal acquisition step of acquiring an alternating current signal;
an absolute value conversion step of performing absolute value conversion on the acquired alternating current signal;
a direct current component extraction step, wherein the alternating current signal after absolute value conversion is subjected to first conversion, and a direct current component in the alternating current signal is extracted;
and a scaling step of scaling the direct current component to obtain a single-phase effective value of the alternating current signal.
2. The method of claim 1, wherein the first transform comprises a fourier transform.
3. The method of claim 2, wherein the scaling step uses scaling factors of
4. The method of claim 1, wherein the ac signal is a voltage signal.
5. The method of claim 1, wherein the alternating current signal is a current signal.
6. An apparatus for calculating a single-phase effective value, comprising:
the acquisition module is used for acquiring alternating current signals;
the absolute value conversion module is used for carrying out absolute value conversion on the acquired alternating current signals;
the direct current component extraction module is used for carrying out first conversion on the alternating current signal after the absolute value conversion and extracting a direct current component in the alternating current signal;
and the proportion conversion module is used for carrying out proportion conversion on the direct-current component so as to obtain a single-phase effective value of the alternating-current signal.
7. The apparatus of claim 6, wherein the first transform employed by the direct current component extraction module comprises a Fourier transform.
8. The apparatus of claim 7, wherein the scaling module employs scaling coefficients of
9. The apparatus of claim 6, wherein the AC signal collected by the collection module is a voltage signal.
10. The apparatus of claim 6, wherein the alternating current signal collected by the collection module is a current signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610085497.0A CN107085133A (en) | 2016-02-15 | 2016-02-15 | Method and device for calculating single-phase virtual value |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610085497.0A CN107085133A (en) | 2016-02-15 | 2016-02-15 | Method and device for calculating single-phase virtual value |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107085133A true CN107085133A (en) | 2017-08-22 |
Family
ID=59615312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610085497.0A Pending CN107085133A (en) | 2016-02-15 | 2016-02-15 | Method and device for calculating single-phase virtual value |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107085133A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113740592A (en) * | 2021-09-13 | 2021-12-03 | 温州大学 | Periodic signal effective value optimal measurement circuit |
CN113740594A (en) * | 2021-09-10 | 2021-12-03 | 温州大学 | Alternating voltage effective value high accuracy measurement circuit |
CN113740591A (en) * | 2021-09-10 | 2021-12-03 | 温州大学 | Periodic signal effective value optimal estimation method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102565524A (en) * | 2012-03-15 | 2012-07-11 | 江苏省电力公司常州供电公司 | Real-time monitoring method for short-circuit current of near zone of transformer |
-
2016
- 2016-02-15 CN CN201610085497.0A patent/CN107085133A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102565524A (en) * | 2012-03-15 | 2012-07-11 | 江苏省电力公司常州供电公司 | Real-time monitoring method for short-circuit current of near zone of transformer |
Non-Patent Citations (3)
Title |
---|
刘波粒: "《模拟电子技术》", 30 April 2006, 《北京:国防工业出版社》 * |
刘长林 等: "《电路原理》", 31 July 2009, 《北京:国防工业出版社》 * |
广东省师专电子线路教研会: "《电子线路 上下》", 31 December 1982, 《广州:广东人民出版社》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113740594A (en) * | 2021-09-10 | 2021-12-03 | 温州大学 | Alternating voltage effective value high accuracy measurement circuit |
CN113740591A (en) * | 2021-09-10 | 2021-12-03 | 温州大学 | Periodic signal effective value optimal estimation method |
CN113740591B (en) * | 2021-09-10 | 2023-10-13 | 温州大学 | An optimal estimation method for the effective value of periodic signals |
CN113740594B (en) * | 2021-09-10 | 2023-10-17 | 温州大学 | A high-precision measurement circuit for the effective value of AC voltage |
CN113740592A (en) * | 2021-09-13 | 2021-12-03 | 温州大学 | Periodic signal effective value optimal measurement circuit |
CN113740592B (en) * | 2021-09-13 | 2023-10-13 | 温州大学 | Optimal measurement circuit for effective value of periodic signal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103257271B (en) | A kind of micro-capacitance sensor harmonic wave based on STM32F107VCT6 and m-Acetyl chlorophosphonazo pick-up unit and detection method | |
CN103344825B (en) | Based on the electric energy metered system of AC sampling | |
CN106405230B (en) | Frequency measurement method and device | |
CN201352236Y (en) | Harmonic power meter based on Kaiser window double-spectrum-line interpolation FFT | |
CN102955060B (en) | Method for removing decaying direct-current component in power system fault signal | |
CN107543962B (en) | Calculation method of dominant inter-harmonic frequency spectrum distribution | |
CN102288807A (en) | Method for measuring electric network voltage flicker | |
CN103941088A (en) | Method for quickly measuring frequency of electric power system based on three-phase signals | |
CN103454490A (en) | Intelligent metering system and intelligent metering method on basis of Blackman-harris window spectrum correction | |
WO2017028617A1 (en) | Phase angle acquisition method and system | |
CN107271774B (en) | An APF Harmonic Detection Method Based on Spectral Leakage Correction Algorithm | |
CN105891585B (en) | Effective value calculating method and device when a kind of sine wave freuqency is slowly varying | |
CN106226590A (en) | A kind of synchronous phase measuring in power system method | |
CN107085133A (en) | Method and device for calculating single-phase virtual value | |
CN109474012B (en) | Frequency coupling suppression method of three-phase grid-connected converter under weak grid condition | |
CN106226587A (en) | A kind of exchange micro-capacitance sensor voltage dip method for quick based on LES HHT | |
CN103647550A (en) | Phase-locked loop method for dynamic voltage reactive compensation | |
CN202631630U (en) | Novel intelligent electric energy meter based on spectrum correction of Blackman-Harris window | |
CN104330644B (en) | The method and system of sine wave signal amplitude in detection power system | |
CN103134969B (en) | A kind of power factor corrector and phase voltage method of estimation | |
Salcic et al. | An improved Taylor method for frequency measurement in power systems | |
CN109494741A (en) | A kind of selective harmonic compensation method extracted based on specific subharmonic | |
CN107064634B (en) | Detection method of power system harmonics | |
CN112034232A (en) | Power supply system voltage sag detection method | |
CN103176030B (en) | The harmonic detection method of distribution system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170822 |