A kind of method and system obtaining power virtual value
Technical field
The present invention relates to power effective value measurement field, particularly relate to a kind of method obtaining power virtual value and
System.
Background technology
Existing active power and reactive power measuring method are carried out based on Finite Impulse Response filter, existing
Active power and reactive power measuring method specifically include that 1, sampling real-time voltage;2, real-time live wire is gathered
Current data;3, Instantaneous dominant frequency rate and current sampling frequency are provided;4, Finite Impulse Response filter algorithm is used
Carry out voltage and the phasing of current signal when reactive power calculates.The wherein ginseng of Finite Impulse Response filter
Number is made data table in advance, and actual correction can obtain relevant parameter by tabling look-up;Finally calculate
To active power value and reactive power value.
But, existing power measurement method is typically the most first to use the mean square method of root (mean square and extract square root again
Root), first measure the amplitude of individual event voltage, electric current, use FFT to measure phase place, then measure power and have
Valid value.But, this measuring method is real in the front end of voltage sample and current sample adds repeatedly 10%-20% harmonic wave
Interference signal, needs accumulative fundamental power and each harmonic power, wherein measures the process of each harmonic power
Excessively complicated, easily produce and calculate error, and then cause the power relative error drawn bigger.
Summary of the invention
It is an object of the invention to provide a kind of method and system obtaining power virtual value, it is intended to solve existing
In technology during measuring power virtual value, calculation procedure too much, excessively replicates and loaded down with trivial details, easily goes out
Problem that is wrong or that produce bigger error.
The present invention is achieved in that a kind of method obtaining power virtual value, and described method includes:
Adopting of cycle information configuration voltage transformer summation current transformer according to the signal of telecommunication to be measured in distribution line
Sample frequency;
Voltage transformer carries out AC sampling according to described sample frequency to the described signal of telecommunication to be measured, obtains first
Group voltage value;
Current transformer carries out AC sampling according to described sample frequency to the described signal of telecommunication to be measured, obtains first
Group current values, is ranked up to described first group of voltage value and described first group of current values and generates the
One group of tables of data;
The described signal of telecommunication to be measured is exchanged according to default phase shift value and described sample frequency and adopts by current transformer
Sample, obtains second group of current values, carries out described first group of voltage value and described second group of current values
Sort and generate second group of tables of data;
The active power virtual value of output section corresponding object time from described first group of tables of data, and from described
The reactive power virtual value of output section corresponding object time in second group of tables of data;
Wherein said default phase shift value isOr
Further, the described signal of telecommunication to be measured is exchanged by described current transformer according to described sample frequency
Sampling, the step obtaining first group of current values specifically includes:
Multiple sampled point is positioned on waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift;
Current values corresponding on each collection point is acquired obtaining described first group by described current transformer
Current values.
Further, described current transformer according to default phase shift value and described sample frequency to described electricity to be measured
Signal carries out AC sampling, and the step obtaining second group of current values specifically includes:
According to described default phase shift value, the described signal of telecommunication to be measured is carried out phase shift;
Multiple sampled point is positioned on waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift;
Current values corresponding on each collection point is acquired obtaining described second group by described current transformer
Current values.
Further, the described active power exporting correspondence section object time from described first group of tables of data has
The step of valid value specifically includes:
The all first group of voltage values in section described object time and institute is obtained from described first group of tables of data
There is first group of current values;
To first group of voltage value of single sampled point, first group of current values and described proportionality coefficient quadrature,
Long-pending to obtain the first numerical value of single sampled point;
Sue for peace to all first numerical value in described object time are long-pending, and then the active power that output is corresponding
Virtual value.
Further, the described reactive power exporting correspondence section object time from described second group of tables of data has
The step of valid value specifically includes:
The all first group of voltage values in section described object time and institute is obtained from described second group of tables of data
There is second group of current values;
To first group of voltage value of single sampled point, second group of current values and described proportionality coefficient quadrature,
Long-pending to obtain the first numerical value of single sampled point;
Sue for peace to all second values in described object time are long-pending, and then the active power that output is corresponding
Virtual value.
Another object of the present invention is to provide a kind of system obtaining power virtual value, described system includes:
First sample frequency generation module, configures for the cycle information according to the signal of telecommunication to be measured in distribution line
The sample frequency of voltage transformer summation current transformer;
Sampling module, exchanges the described signal of telecommunication to be measured according to described sample frequency for voltage transformer
Sampling, obtains first group of voltage value;
First sampling processing module, for current transformer according to described sample frequency to the described signal of telecommunication to be measured
Carry out AC sampling, obtain first group of current values, to described first group of voltage value and described first group of electricity
Fluxion value is ranked up and generates first group of tables of data;
Second sampling processing module, for current transformer according to default phase shift value and described sample frequency to institute
State the signal of telecommunication to be measured and carry out AC sampling, obtain second group of current values, to described first group of voltage value and
Described second group of current values is ranked up and generates second group of tables of data;
Virtual value generation module, for gaining merit of output section corresponding object time from described first group of tables of data
Power virtual value, and the reactive power virtual value of output section corresponding object time from described second group of tables of data;
Wherein said default phase shift value isOr
Further, described first sampling processing module includes:
First positioning unit, fixed on the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
The multiple sampled points in position;
First current acquisition unit, for described current transformer to current values corresponding on each collection point
It is acquired obtaining described first group of current values.
Further, described second sampling processing module includes:
Phase-shifting unit, for carrying out phase shift according to described default phase shift value to the described signal of telecommunication to be measured;
Second positioning unit, fixed on the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
The multiple sampled points in position;
Second current acquisition unit, for described current transformer to current values corresponding on each collection point
It is acquired obtaining described second group of current values.
Further, described virtual value generation module includes:
First acquiring unit, all in obtaining section described object time from described first group of tables of data
First group of voltage value and all first group of current values;
First arithmetic element, for first group of voltage value of single sampled point, first group of current values with
And described proportionality coefficient quadrature, amass obtaining the first numerical value of single sampled point;
Second arithmetic element, for suing for peace to all first numerical value in described object time are long-pending, and then
The active power virtual value that output is corresponding.
Further, described virtual value generation module also includes:
Second acquisition unit, all in obtaining section described object time from described second group of tables of data
First group of voltage value and all second group of current values;
3rd arithmetic element, for first group of voltage value of single sampled point, second group of current values with
And described proportionality coefficient quadrature, amass obtaining the first numerical value of single sampled point;
4th arithmetic element, for suing for peace to all second values in described object time are long-pending, and then
The active power virtual value that output is corresponding.
The method and system obtaining power virtual value of the present invention, according to the week of the signal of telecommunication to be measured in distribution line
The sample frequency of phase information configuration voltage transformer summation current transformer;First group is obtained by voltage transformer
Voltage value;Current transformer carries out AC sampling according to sample frequency to the signal of telecommunication to be measured, obtains first group
Current values, is ranked up and generates first group of tables of data to first group of voltage value and first group of current values;
Current transformer carries out AC sampling according to default phase shift value and sample frequency to the signal of telecommunication to be measured, obtains second
Group current values, is ranked up and generates second group of data to first group of voltage value and second group of current values
Table;The active power virtual value of output section corresponding object time from first group of tables of data, and from second group of number
According to the reactive power virtual value of output section corresponding object time in table;Solve by fundamental power and harmonic wave merit
The error problem of the accumulation calculating of rate, the precision not only increasing measurement power virtual value also makes calculating process
Become simple.
Accompanying drawing explanation
Fig. 1 is the method flow diagram schematic diagram obtaining power virtual value that the embodiment of the present invention 1 provides;
Fig. 2 is the oscillogram of measured signal in the embodiment of the present invention 1;
Fig. 3 is the oscillogram in the embodiment of the present invention 1 after measured signal phase shift;
Fig. 4 is the system block diagram obtaining power virtual value that the embodiment of the present invention 2 provides.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and reality
Execute example, the present invention is further elaborated.Only should be appreciated that specific embodiment described herein
Only in order to explain the present invention, it is not intended to limit the present invention.
Below in conjunction with concrete accompanying drawing, the realization of the present invention is described in detail:
Embodiment 1:
Fig. 1 shows the method flow schematic diagram obtaining power virtual value that the embodiment of the present invention 1 provides, for
It is easy to explanation, part related to the present embodiment is only shown.As it is shown in figure 1, obtain power virtual value
Method includes:
Step S100: configure voltage transformer and electric current according to the cycle information of the signal of telecommunication to be measured in distribution line
The sample frequency of transformer;
Step S200: voltage transformer carries out exchange according to described sample frequency to the described signal of telecommunication to be measured and adopts
Sample, obtains first group of voltage value;
Step S300: current transformer carries out exchange according to described sample frequency to the described signal of telecommunication to be measured and adopts
Sample, obtains first group of current values, carries out described first group of voltage value and described first group of current values
Sort and generate first group of tables of data;
Step S400: current transformer according to default phase shift value and described sample frequency to the described signal of telecommunication to be measured
Carry out AC sampling, obtain second group of current values, to described first group of voltage value and described second group of electricity
Fluxion value is ranked up and generates second group of tables of data;
Step S500: the active power of output section corresponding object time is effective from described first group of tables of data
Value, and the reactive power virtual value of output section corresponding object time from described second group of tables of data
In the step s 100, in distribution line, the signal of telecommunication to be measured is cycle information signal, can be by this signal
Carry out signal sampling, and then obtain the cycle information about this signal of telecommunication to be measured.
In embodiments of the present invention, sample frequency is AC sampling frequency, the signal of telecommunication to be measured with distribution line
Cycle information relevant, concrete, voltage transformer summation current transformer according to described sample frequency to described
The signal of telecommunication to be measured carries out AC sampling.
In step s 200, voltage transformer summation current transformer according to described sample frequency to described electricity to be measured
Signal carries out AC sampling, and wherein, AC sampling is used for describing sample frequency, i.e. AC sampling refers to sampling frequency
Rate is the sample frequency of more than the twice of signal frequency highest frequency in tested distribution line or twice.
In the present embodiment, adopt according to each voltage value of sample frequency definable is corresponding with each current values
The collection time, object time, section was the set of each voltage value acquisition time corresponding with each current values.Choosing
Can determine that the number of sampled point according to sample frequency after taking section object time.
Further, step S100 specifically includes:
Step S101: obtain the cycle information of the signal of telecommunication to be measured in distribution line;
Step S102: obtain described distribution line according to the cycle information of the signal of telecommunication to be measured in described distribution line
In the frequency information of the signal of telecommunication to be measured;
Step S103: according to the frequency information of the signal of telecommunication to be measured in described distribution line configure voltage transformer and
The sample frequency of current transformer and proportionality coefficient.
In step S101, in acquisition distribution line, the cycle information of the signal of telecommunication to be measured can be according to distribution line
Concrete application scenarios depending on.In actual applications, if the cycle information of the signal of telecommunication to be measured is constant, only need to obtain
Take the cycle information of the signal of telecommunication the most to be measured, if the cycle information of the signal of telecommunication to be measured becomes under given conditions
Change, according to the demand of collection, the cycle information of the signal of telecommunication to be measured can be reacquired.Such as, distribution is obtained in real time
In circuit, cycle information or the setting of the signal of telecommunication to be measured obtain cycle information, obtain telecommunications to be measured in distribution line
Number cycle information.
In step s 102, obtain distribution line is treated according to the cycle information of the signal of telecommunication to be measured in distribution line
Survey the frequency information of the signal of telecommunication.Specifically, the cycle of the signal of telecommunication same to be measured in same distribution line
Information is relevant with frequency information, enters step after obtaining frequency information by the cycle information of this signal of telecommunication to be measured
S103。
In step s 103, according to the frequency information of the signal of telecommunication to be measured in distribution line configure voltage transformer and
The sample frequency of current transformer and proportionality coefficient, wherein, adopting of configuration voltage transformer summation current transformer
The frequency information of the sample frequency signal of telecommunication to be measured with distribution line is relevant, concrete, and sample frequency can be quilt
It is measured the sample frequency of more than the twice of signal frequency highest frequency in electric line or twice.
In the present embodiment, by obtaining the cycle information of the signal of telecommunication to be measured in distribution line, and then joined
The frequency information of the signal of telecommunication to be measured in electric line, is entered by the frequency information of the signal of telecommunication to be measured in this distribution line
Sample frequency and the proportionality coefficient of voltage transformer summation current transformer are configured by one step, it is possible to realize electricity
The pressure transformer summation current transformer AC sampling to the signal of telecommunication to be measured in distribution line, is simultaneous for voltage mutual
Voltage value obtained by the sampled point of sensor summation current transformer and current values, the shape of passing ratio coefficient
Formula carries out error and evades, and improves the accuracy of calculating.
Further, step S200 specifically includes:
Step S201: position multiple sampling on the waveform of the described signal of telecommunication to be measured according to described sample frequency
Point;
Step S202: voltage value corresponding on each collection point is acquired obtaining by described voltage transformer
Described first group of voltage value.
In step s 201, multiple sampled points are to position on the waveform of the signal of telecommunication to be measured according to sample frequency
Point, such as, can arrange sampled point 320-6400 point/second according to sample frequency, i.e. carry out in one second
320-6400 sampling operation.
In step S202, voltage value corresponding on each collection point is acquired by voltage transformer,
To first group of voltage value, wherein, the adjacent interval time between two voltage values is identical, adjacent
Interval time between two current values is identical, according to sample frequency to each voltage value and each electric current
Numerical value carries out time labelling.Multiple voltage values are ranked up and generate tables of data.Obtained each adopts
The voltage value of sampling point can use internal memory conversion, serial ports, fiber optic Ethernet, wireless network transmissions, each
Sampled point data value can form a series of values, and the sampled point of voltage forms an array and can
Composition communication bag carries out transmitting transmission.
Step S300 specifically includes:
Step S301: position multiple adopting on the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
Sampling point;
Step S302: current values corresponding on each collection point is acquired obtaining by described current transformer
Described first group of current values;
Step S303: the described signal of telecommunication to be measured is carried out phase shift according to described default phase shift value;
Step S304: position multiple adopting on the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
Sampling point;
Step S305: current values corresponding on each collection point is acquired obtaining by described current transformer
Described second group of current values.
In the present embodiment, described default phase shift value isOr
It should be noted that in step S303, the described signal of telecommunication to be measured is entered according to described default phase shift value
Change after row phase shift is to gather position, does not change sample frequency, according to sample frequency after the phase shift
Position on the waveform of the signal of telecommunication to be measured in multiple sampled point, the acquisition time of each sampled point and step S201
Sampled point acquisition time is identical, the first group of voltage value i.e. obtained, first group of current values and second group
Current values is all based on same sample frequency.For the waveform of the signal of telecommunication to be measured, the first of collection
It is identical to there is phase place between voltage value, first group of current values in group, first group of voltage value and second group of electricity
Between fluxion value, phase contrast isOr
Step S400 specifically includes:
Step S401: obtain all first group of electricity in section described object time from described first group of tables of data
Pressure numerical value and all first group of current values;
Step S402: to first group of voltage value of single sampled point, first group of current values and described ratio
Example coefficient quadrature, long-pending to obtain the first numerical value of single sampled point;
Step S403: sue for peace to all first numerical value in described object time are long-pending, and then output correspondence
Active power virtual value.
Step S500 specifically includes:
Step S501: obtain all first group of electricity in section described object time from described second group of tables of data
Pressure numerical value and all second group of current values;
Step S502: to first group of voltage value of single sampled point, second group of current values and described ratio
Example coefficient quadrature, long-pending to obtain the first numerical value of single sampled point;
Step S503: sue for peace to all second values in described object time are long-pending, and then output correspondence
Active power virtual value.
In the present embodiment, proportionality coefficient is a fixed value, can pass through voltage transformer and/or current transformer
Concrete specification carry out acquisition of tabling look-up.
Long-pending first group of current values * proportionality coefficient of=the first group of voltage value * of the first numerical value in step S402.
Fig. 2 shows the oscillogram of measured signal in the embodiment of the present invention 1, concrete, in a distribution line
The signal of telecommunication to be measured is sampled through voltage transformer summation current transformer, it is thus achieved that voltage Ua's and electric current Ia
Array, can be used for calculating active power virtual value;Its method is can to arrange (320-6400 according to sample frequency
Point/second), can obtain according to a period of time T;By voltage sample point single in a cycle T
Voltage value is multiplied with the current values of this sampled point, and takes advantage of in proportionality coefficient, i.e. obtains each point
Numerical value V;The numerical value (V1+....+Vn) of a cumulative period of time T, can calculate this telecommunications to be measured
Number the single cycle in active power virtual value.
Long-pending second group of current values * proportionality coefficient of=the first group of voltage value * of second value in step S502.
Fig. 3 shows in the embodiment of the present invention 1 that the oscillogram after measured signal phase shift is concrete, is used for calculating idle
The method of power virtual value is can to arrange (320-6400 point/second) according to sample frequency, can obtain according to one
Individual period of time T;By current sample point phase shift to the left 90 degree, then by each in a cycle T
The voltage sample point data value current sample point data value corresponding with moving to left rear markers is multiplied, and takes advantage of in survey
The proportionality coefficient of amount PT/CT, i.e. obtains the numerical value V of each point;The numerical value of a cumulative period of time T
(V1+....+Vn) the reactive power virtual value of this phase (such as A phase) can, be calculated.
Embodiment 2:
Fig. 4 is the system block diagram obtaining power virtual value that the embodiment of the present invention 2 provides, for convenience of description,
Part related to the present embodiment is only shown.As shown in Figure 4, the system 100 obtaining power virtual value includes:
First sample frequency generation module 10, for joining according to the cycle information of the signal of telecommunication to be measured in distribution line
Put the sample frequency of voltage transformer summation current transformer;
Sampling module 20, hands over the described signal of telecommunication to be measured according to described sample frequency for voltage transformer
Stream sampling, obtains first group of voltage value;
First sampling processing module 30, for current transformer according to described sample frequency to described telecommunications to be measured
Number carry out AC sampling, obtain first group of current values, to described first group of voltage value and described first group
Current values is ranked up and generates first group of tables of data;
Second sampling processing module 40, for current transformer according to default phase shift value and described sample frequency pair
The described signal of telecommunication to be measured carries out AC sampling, obtains second group of current values, to described first group of voltage value
It is ranked up and generates second group of tables of data with described second group of current values;
Virtual value generation module 50, for having of corresponding section object time of output from described first group of tables of data
Merit power virtual value, and the reactive power of output section corresponding object time is effective from described second group of tables of data
Value;
Wherein said default phase shift value isOr
Further, the first sample frequency generation module 10 includes:
Cycle information unit 11: for obtaining the cycle information of the signal of telecommunication to be measured in distribution line;
Frequency information signal generating unit 12: for obtaining according to the cycle information of the signal of telecommunication to be measured in described distribution line
The frequency information of the signal of telecommunication to be measured in described distribution line;
Sample frequency and proportionality coefficient signal generating unit 13, for according to the signal of telecommunication to be measured in described distribution line
The sample frequency of frequency information configuration voltage transformer summation current transformer and proportionality coefficient.
Sampling module 20 includes:
First positioning unit 21, for positioning on the waveform of the described signal of telecommunication to be measured according to described sample frequency
Multiple sampled points;
First sampling unit 22, enters voltage value corresponding on each collection point for described voltage transformer
Row collects described first group of voltage value.
First sampling processing module 30 specifically includes:
Second positioning unit 31, for the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
Position multiple sampled point;
First current acquisition unit 32, for described current transformer to electric current number corresponding on each collection point
Value is acquired obtaining described first group of current values.
Second sampling processing module 40 includes:
Phase-shifting unit 41, for carrying out phase shift according to described default phase shift value to the described signal of telecommunication to be measured;
3rd positioning unit 42, for the waveform according to the described sample frequency signal of telecommunication to be measured after the phase shift
Position multiple sampled point;
Second current acquisition unit 43, for described current transformer to electric current number corresponding on each collection point
Value is acquired obtaining described second group of current values.
Virtual value generation module 50 includes:
First acquiring unit 51, the institute in obtaining section described object time from described first group of tables of data
There are first group of voltage value and all first group of current values;
First arithmetic element 52, for first group of voltage value of single sampled point, first group of current values
And described proportionality coefficient quadrature, amass obtaining the first numerical value of single sampled point;
Second arithmetic element 53, for suing for peace to all first numerical value in described object time are long-pending, enters
And export the active power virtual value of correspondence.
Virtual value generation module 50 also includes:
Second acquisition unit 54, the institute in obtaining section described object time from described second group of tables of data
There are first group of voltage value and all second group of current values;
3rd arithmetic element 55, for first group of voltage value of single sampled point, second group of current values
And described proportionality coefficient quadrature, amass obtaining the first numerical value of single sampled point;
4th arithmetic element 56, for suing for peace to all second values in described object time are long-pending, enters
And export the active power virtual value of correspondence.
The method and system obtaining power virtual value of the present invention, according to the week of the signal of telecommunication to be measured in distribution line
The sample frequency of phase information configuration voltage transformer summation current transformer;First group is obtained by voltage transformer
Voltage value;Current transformer carries out AC sampling according to sample frequency to the signal of telecommunication to be measured, obtains first group
Current values, is ranked up and generates first group of tables of data to first group of voltage value and first group of current values;
Current transformer carries out AC sampling according to default phase shift value and sample frequency to the signal of telecommunication to be measured, obtains second
Group current values, is ranked up and generates second group of data to first group of voltage value and second group of current values
Table;The active power virtual value of output section corresponding object time from first group of tables of data, and from second group of number
According to the reactive power virtual value of output section corresponding object time in table;Solve by fundamental power and harmonic wave merit
The error problem of the accumulation calculating of rate, the precision not only increasing measurement active power virtual value also makes to calculate
Process becomes simple.
One of ordinary skill in the art will appreciate that all or part of step realizing in above-described embodiment method is
Can instruct relevant hardware by program to complete, described program can be stored in embodied on computer readable
In storage medium, described storage medium, such as ROM/RAM, disk, CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this
Any amendment, equivalent and the improvement etc. made within bright spirit and principle, should be included in the present invention
Protection domain within.