This invention relates generally to power signal processing and more specifically to sampling rate conversion techniques for energy metering.
Service providers utilize distributed networks to provide services to customers over large geographic areas. For example, power companies use power distribution lines to carry power from one or more generating stations (power plants) to residential and commercial customer sites. The generating stations use alternating current (AC) to transmit power over long distances via the power distribution lines. Long-distance transmission can be accomplished using a relatively high voltage. Substations located near the customer sites provide a step-down from the high voltage to a lower voltage (e.g., using transformers). Power distribution lines carry this lower-voltage AC from the substations to the endpoint devices customer sites.
Typically, electronic energy meters are installed at customer sites to monitor energy consumption by customers. Electronic energy meters track the amount of energy consumed by customers, typically measured in kilowatt-hours (“kWh”). The service provider uses the energy consumption information for billing and other purposes such as resource allocation forecasting.
Analog-to-digital converters (ADC) are typically used to convert analog signals coming from the power distribution lines to digital signals to be processed further. When the sampling rate of an ADC is not an integer multiple of the line frequency of the power distribution lines, the calculation of energy measurements becomes complicated because compensation for fractional portions is needed.
Additionally, even if the sampling rate of an ADC is designed to be an integer multiple of the line frequency, the line frequency may deviate from its nominal value. The line frequency is typically 60 Hz or 50 HZ, but it is not uncommon for the line frequency to deviate from the nominal line frequency. For instance, the allowable range for 60 Hz is ±0.5%, that is 59.7 Hz to 60.3 Hz. The line frequency jitter makes it even harder to have a sampling rate of an ADC that is an integer multiple of the line frequency.
Therefore, there is a need for resampling techniques that can facilitate simplified, accurate, and efficient energy measurements and are independent of ADC sampling rate and immune to the line frequency jitter.
Certain aspects and features include a system and method for converting the sampling rate of a power signal.
In accordance with one aspect of the disclosure, a method of processing power signals is provided. The method includes the following operations: receiving an analog poly-phase signal associated with power delivered using alternating current (AC), the analog poly-phase signal having at least one current component and at least one voltage component comprising a reference voltage component; converting, using an analog to digital converter (ADC), the analog poly-phase signal to a digital poly-phase signal sampled at a first sampling rate; detecting a fundamental frequency of the analog poly-phase signal based on the digital poly-phase signal; determining a second sampling rate, wherein the second sampling rate is based on and tracks the fundamental frequency; resampling the digital poly-phase signal at the second sampling rate; for each cycle of the resampled digital poly-phase signal: transforming the resampled digital poly-phase digital signal to a frequency-domain signal using Fast Fourier Transformation (FFT); calculating a phase angle of the reference voltage component based on the frequency-domain signal; adjusting the resampled digital poly-phase signal by compensating the calculated phase angle; and transforming the adjusted resampled digital poly-phase signal to an updated frequency-domain signal using FFT; and calculating one or more measurements based on the updated frequency-domain signal.
In accordance with another aspect of the disclosure, a device connected to a power distribution network is provided. The device includes sensing circuitry configured to receive an analog poly-phase signal associated with power delivered using alternating current (AC) over the power distribution network, wherein the analog poly-phase signal having at least one current component and at least one voltage component comprising a reference voltage component; a processor configured to execute computer-readable instructions; and a memory configured to store the computer-readable instructions that, when executed by the processor, cause the processor to perform the following operations: converting, using an analog to digital converter (ADC), the analog poly-phase signal to a digital poly-phase signal sampled at a first sampling rate; detecting a fundamental frequency of the analog poly-phase signal based on the digital poly-phase signal; determining a second sampling rate, wherein the second sampling rate is based on and tracks the fundamental frequency; resampling the digital poly-phase signal at the second sampling rate; for each cycle of the resampled digital poly-phase signal: transforming the resampled digital poly-phase signal to a frequency-domain signal using Fast Fourier Transformation (FFT); calculating a phase angle of the reference voltage component based on the frequency-domain signal; adjusting the resampled digital poly-phase signal by compensating the calculated phase angle; and transforming the adjusted resampled digital poly-phase signal to an updated frequency-domain signal using FFT; and calculating one or more measurements based on the updated frequency-domain signal.
In accordance with yet another aspect of the disclosure, an electronic energy meter is provided. The electronic energy meter includes a sensor configured to receive an analog poly-phase signal associated with power delivered using alternating current (AC) over a power distribution network, the analog poly-phase signal having at least one current component and at least one voltage component comprising a reference voltage component; an analog to digital converter (ADC) configured to convert the analog poly-phase signal to a digital poly-phase signal sampled at a first sampling rate; and a power signal processing unit connected to the ADC. The power signal processing unit is configured to: detect a fundamental frequency of the analog poly-phase signal based on the digital poly-phase signal; determine a second sampling rate, wherein the second sampling rate is based on and tracks the fundamental frequency; resample the digital poly-phase signal at the second sampling rate; for each cycle of the resampled digital poly-phase signal: transform the resampled digital poly-phase signal to a frequency-domain signal using Fast Fourier Transformation (FFT); calculate a phase angle of the reference voltage component based on the frequency-domain signal; adjust the resampled digital poly-phase signal by compensating the calculated phase angle; and transform the adjusted resampled digital poly-phase signal to an updated frequency-domain signal using FFT; and calculate one or more measurements based on the updated frequency-domain signal.
These illustrative examples are mentioned not to limit or define the disclosure, but to provide examples to aid understanding thereof. Additional examples and further description are provided in the Detailed Description.
These and other features, aspects, and advantages of the present disclosure are better understood when the following Detailed Description is read with reference to the accompanying drawings, where:
Aspects of the present invention relate to sampling rate conversion techniques for energy metering. In accordance with some aspects of the disclosure, an analog poly-phase signal is received by an ADC, and the analog poly-phase signal has, for example, three voltage components (e.g., phase A line voltage, phase B line voltage, and phase C line voltage) and three current components (e.g., phase A line current, phase B line current, and phase C line current). Among the voltage components and the current components, the phase A line voltage is used as a reference (sometimes referred to as a “reference channel”) in one implementation.
A fundamental frequency detector detects a fundamental frequency (i.e., the line frequency) of the analog poly-phase signal based on the sampled digital poly-phase signal. The output sampling rate of a sampling rate converter (also referred to as a “resampler”) is then determined based on the fundamental frequency. The output sampling rate tracks the fundamental frequency such that the output sampling rate is independent of the ADC sampling rate and immune to the line frequency jitter. The sampling rate converter then resamples the digital poly-phase signal. In one implementation, the resampling operation is based on two signal processing operations, namely an interpolation operation and a decimation operation. During the interpolation operation, the sampling rate is up-converted to a higher sampling rate; during the decimation operation, the higher sampling rate is down-converted to the output sampling rate, which tracks the fundamental frequency, as mentioned above. In one example, the sampling rate converter is implemented by using a poly-phase resampler which includes a poly-phase filter bank. A Fast Fourier Transform (FFT) bank then transforms the resampled poly-phase digital signal to a frequency-domain signal. A metering measurement calculator calculates a phase angle of the reference voltage component (e.g., the phase A line voltage). The calculated phase angle is sent to the sampling rate converter as feedback, and the resampled digital poly-phase signal is adjusted based on the calculated phase angle. In one implementation, the zero-crossing of the reference voltage component is locked to the first sample for each cycle of the resampled digital signal. As such, there is a phase lock loop, and the resampled digital poly-phase signal is phase-locked. After the resampled digital poly-phase signal is phase-locked, the metering measurement calculator can calculate various measurements based on the frequency-domain signal. Details of the aspects mentioned above will be described below with reference to
As mentioned above, the ADC 102 receives and converts the analog poly-phase signal to the digital poly-phase signal, which is sampled at a first sampling rate (also referred to as the “ADC sampling rate”) FADC. In one implementation, the ADC 102 is connected to sensing circuitry, which is configured to receive the analog poly-phase signal k. In one implementation, the ADC 102 is connected to a sensor, which is configured to receive the analog poly-phase signal associated with power delivered using AC. As explained above, the analog poly-phase signal has at least one current component and at least one voltage component, one of which is a reference voltage component (e.g., phase A line voltage). In one example, the ADC sampling rate FADC is 14648 Hz. Other ADC sampling rates may be employed in other examples.
The digital poly-phase signal is further fed to the fundamental frequency detector 106, which detects a fundamental frequency (i.e., the line frequency) FL of the analog poly-phase signal based on the converted digital poly-phase signal. In one implementation, the fundamental frequency detector 106 includes a band-pass filter and a zero-crossing detector, details of which will be described below with reference to
After the fundamental frequency FL is detected, the fundamental frequency FL is fed to the sampling rate converter 108, and a second sampling rate (also referred to as the “output sampling rate”) FS is determined. The output sampling rate FS is based on and tracks the fundamental frequency FL. When the fundamental frequency FL deviates from its nominal value, the output sampling rate FS adjusts proportionally. Thus, the output sampling rate FS is frequency-locked to the fundamental frequency FL. In other words, the power signal processing unit 100 includes a frequency lock loop 122 as shown in
The sampling rate converter 108 also receives the digital poly-phase signal output by the ADC 102 (after being processed by the compensation and adjustment unit 104 in some implementations). The sampling rate converter 108 then resamples the digital poly-phase signal at the output sampling rate FS. Therefore, the digital poly-phase signal is converted from the ADC sampling rate FADC to the output sampling rate FS. The resampling ratio R is FS/FADC. In one implementation, the resampling process carried out by the sampling rate converter 108 includes, among other operations, the interpolation (also referred to as “up-sampling”) operation and the decimation (also referred to as “down-sampling”) operation, as mentioned above. In one implementation, the resampling process carried out by the sampling rate converter 108 is by using a poly-phase resampler having a poly-phase filter bank. Details of the interpolation operation, the decimation operation, and the poly-phase resampler will be described below with reference to
The FFT bank 110 receives and transforms the resampled digital poly-phase signal (after being buffered) to a frequency-domain signal using FFT. In one implementation, the FFT is performed in six channels (i.e., three voltage channels corresponding to three voltage components and three current channels corresponding to three current components) simultaneously. In one implementation, the FFT includes an N-point Discrete Fourier Transform (DFT). Details of the FFT bank and the transformation operations will be described below.
The metering measurement calculator 112 receives the frequency-domain signal and is capable of calculating voltage, current, and/or energy measurements such as DC voltage measurements, DC current measurements, fundamental RMS squared measurements, fundamental phase measurements, fundamental watt measurements, and the like. Among other things, a phase angle of the reference voltage component (e.g., the phase A line voltage) can be calculated. The resampled digital signal is then adjusted by compensating the calculated phase angle. In one implementation, the calculated phase angle is converted to a delta sample. After the adjustment using the calculated phase angle, the zero-crossing of the reference voltage component (e.g., the phase A line voltage) is phase-locked to a fixed location in the output sampling stream, while all other voltage components (e.g., the phase B line voltage and the phase C line voltage) and current components (e.g., the phase A line current, the phase B line current, and the phase C line current) are phase-adjusted along with the reference channel such that all channels are phase-locked together. As such, the power signal processing unit 100 has a phase lock loop 124 as shown in
Subsequently, the adjusted resampled digital poly-phase signal, after being phase-locked, is transformed to an updated frequency-domain signal by the FFT bank 110. Then, the metering measurement calculator 112 can calculate one or more measurements based on the updated frequency-domain signal. Details of the phase lock loop 124 will be described below.
At step 202, an analog poly-phase signal associated with power delivered using AC is received. In some implementations, the analog poly-phase signal has multiple current components and multiple voltage components, one of which is a reference voltage component. At step 204, the analog poly-phase signal is converted to a digital poly-phase signal sampled at the ADC sample rate FADC using the ADC 102.
At step 206, the fundamental frequency FL of the analog poly-phase signal is detected based on the digital poly-phase signal. Details of the detection of the fundamental frequency FL will be described below with reference to
At step 210, the digital poly-phase signal is resampled at the output sampling rate FS. As mentioned above, the resampling operation may include the interpolation operation and the decimation operation in some implementations. In one implementation, the resampling process is implemented by using a poly-phase resampler having a poly-phase filter bank. Details of the interpolation operation, the decimation operation, and the poly-phase resampler will be described below with reference to
For each cycle of the resampled digital poly-phase signal, the resampled digital poly-phase signal is transformed to a frequency-domain signal using FFT at step 212. In one implementation, the FFT includes an N-point Discrete Fourier Transform (DFT). Details of the FFT bank and the transformation operations will be described below. At step 214, a phase angle of the reference voltage component (e.g., the phase A line voltage) is calculated based on the frequency-domain signal. At step 216, the resampled digital poly-phase signal is then adjusted by compensating the calculated phase angle. In one implementation, the calculated phase angle is converted to a delta sample. After the adjustment using the calculated phase angle, the zero-crossing of the reference voltage component (e.g., the phase A line voltage) is phase-locked to a fixed location in the output sampling stream. At step 218, the adjusted resampled digital poly-phase signal, after being phase-locked, is transformed to an updated frequency-domain signal. Details of steps 212, 214, 216, and 218 will be described below.
At step 220, one or more measurements are calculated based on the updated frequency-domain signal. Details of step 220 will be described below.
Zero-crossing detection is very sensitive to noise and waveform distortions. Therefore, it is beneficial to apply the reference voltage component Vref to a band-pass filter before zero-crossing detection. In the example shown in
y
n
=−a
1
y
n−1
−a
2
Y
n−2
+b
0
x
n
+b
1
x
n−1
+b
2
x
n−2 (1)
where: a1 and a2 are coefficients that determine the positions of the poles, and b0, b1, and b2 are coefficients that determine zeros. In one example, the coefficients for each stage are shown in the table below.
Accordingly, the fundamental frequency FL can be calculated based on the two adjacent zero-crossings (step 306 shown in
Once the fundamental frequency FL is detected, the output sampling rate FS is determined (step 208 shown in
In one implementation, the output sampling rate FS is an integer multiple of the fundamental frequency FL. The output sampling rate FS is determined according to the following equation:
N
L
=F
S. (4)
where: N is an integer larger than one. In some implementations, N is a power of 2 (i.e., 2m). In one example, m=7, and the output sampling frequency is 128
A single line cycle is often not an integer multiple of samples, but a number of line cycles may be. Thus, in another implementation, an integer number of samples are specified over a specific number of line cycles. In one example, this condition is met in a 200 millisecond time span. This is accomplished by first finding a number of line cycles in the 200 milliseconds period: NLC=round(0.2
which resides in the interval between 0.1895 milliseconds and 0.2105 milliseconds, given that the line frequency is bounded by the interval between 45 Hz and 65 Hz. In one implementation, the output sampling rate FS can be set according to
In one example, m is 10, and the output sampling rate FS is
In another example, m is 11, and the output sampling rate FS is
The digital poly-phase signal is then resampled at the output sampling rate FS (step 210 as shown in
As explained above, the resampling process may be based on two operations, namely the interpolation operation and the decimation operation. The digital poly-phase signal is first up-sampled by a factor of L. L is an integer greater than one. The up-sampled digital poly-phase signal is then down-sampled by a factor of M. M is chosen according to M=LFADC/FS. Therefore, after the interpolation operation and the decimation operation, the sampling rate of the digital poly-phase signal is the output sampling rate FS.
In one implementation, the interpolation operation involves up-sampling by inserting L-1 zeros between two adjacent samples in the digital poly-phase signal and filtering out, using an image rejection filter, the images of the signal spectrum at integer multiples of the ADC sampling rate FADC. The images result from the sampling process conducted by the ADC 102. In one implementation, the decimation operation involves applying an anti-aliasing filter to the sample stream to prevent aliasing, followed by selecting every Mth sample. Both the image rejection filter and the anti-aliasing filter are low-pass filters and can be implemented as finite impulse response (FIR) filters. Each of them can be designed at the up-sampling frequency LFADC. In one implementation, they can be combined by convolving the two impulse responses together. In one example, the sampling rate converter 108 has one primary 256-tap FIR filter for the interpolation operation and the decimation operation. In one example, the FIR filter used has 0.02 dB of ripple in its passband and contributes virtually no distortion across the spectrum of the digital poly-phase signal. In addition, since the FIR filter (with symmetric kernels) is a linear-phase filter across the spectrum, it attributes no distortion to the phase of the digital poly-phase signal.
As explained above, the up-sampled digital poly-phase signal is then down-sampled by a factor of M. M is chosen according to M=LFADC/FS. In general, M is a floating-point number. Decimation by a non-integer number is challenging because a sample out of the decimator does not necessarily come out at a fixed number of cycles of the ADC clock.
In the process described above, a convolution of the image rejection filter with the up-sampled digital poly-phase signal is needed. However, only a small portion of the convolution is performed on non-zero samples. Due to the nature of the interpolation operation, only one sample out of every L samples is actually multiplied with a filter coefficient. For example, for a 256-tap image rejection filter, 248 filter coefficients are multiplied with zeros, and only eight filter coefficients are multiplied with non-zero values. Performing convolutions on mostly zeros can be improved to increase efficiency. Also, the sum of the multiplication results is further convolved with the anti-aliasing filter, and the result is further decimated. In other words, many samples are convolved but eventually thrown away in the subsequent decimation operation.
Therefore, in another implementation, a poly-phase resampler having a poly-phase filter bank is used to address the above-mentioned challenges of decimation by a non-integer number and provides further efficiency improvement.
The above-mentioned image rejection filter and the anti-aliasing filter are combined into one filter since they are in cascade. A bank of L sub-filters are created from the original FIR filter. In the example of 256-tap FIR filter, when L is 32, 32 sub-filters are created, and each sub-filter has eight taps. In the example shown in
h
0=(B0,B32,B64,B96,B128,B160,B192,B224)
h
1=(B1,B33,B65,B97,B129,B161,B193,B225)
h
2=(B2,B34,B66,B98,B130,B162,B194,B226)
. . .
h
31=(B31,B63,B95,B127,B159,B191,B223,B255). (5)
It should be noted that the original FIR filter is unity gain at the interpolation rate LFADC. The condition for the original FIR filter to be unity gain is defined as: Σi=0255Bi=1. When a sub-filter is applied, it also needs to hold to this condition in order to properly scale the output sample, i.e., to keep the amplitude of the output signal at unity gain. Therefore, each sub-filter hi needs to be normalized by the inverse of the sum of its coefficients as follows:
Each sub-filter hi, in the poly-phase filter bank 814, is offset in time with respect to the interpolation rate LFADC,
i=0, . . . ,31. There are L (32 in this example) interpolated samples per ADC sample. Each hi represents the interpolation function for a particular time (also a particular phase) of the interpolated waveform.
The delay line 804 includes seven delay line shift register 806. A sample xn is clocked out of the ADC 102 and into the delay line 804. A new sample is shifted onto the delay line 804 and the oldest sample is shift off. In the example shown in
The delay line 804 is clocked at the ADC sampling rate FADC, and the output commutator 824 is clocked at the output sampling rate
No part of the sampling rate converter 108 is clocked at the interpolated rate of LFADC. In the example shown in
In addition, the decimation phase pn is also clocked with each ADC sample (i.e., at the ADC sampling rate FADC). For every ADC clock cycle, pn is incremented by 1 modulo M/L (i.e., the re-sampling factor) using the adder 818 and the modulo operator 820, and pn+1 is generated.
As explained above, M/L is often a floating-point number. In one example, M/L=FADC/(128*FL), let FL=50.1 Hz, FADC=14648 Hz, then M/L=2.436533. Accordingly, pn+i can be calculated according to: pn+1=ModM/L (pn+l)=Mod2.436533 (pn+l).
Subsequently, pn and pn+1 enter a comparator 822. If pn+1<pn, the decimation phase has wrapped, and it's time to output a sample (i.e., the switch 824 is closed). The switch 824 switches at the rate of FADC/(M/L). The decimation phase at this instance is smaller than 1. The decimation phase pn+1 explicitly contains the information on which sub-filter hi is to be selected from the poly-phase filter bank 814. By multiplying pn+1 by L and taking the floor, using the multiplier 826 and the floor operator 828, respectively, the sub-filter index hindex is determined.
The sub-filter index hindex is an input into the poly-phase filter bank de-multiplexer 816, which shifts the sub-filter coefficients into the coefficient registers 830. In the example shown in
The comparator 822 also causes the switch 824 to close so that the multiply accumulation is performed on the delay line 804 and the coefficient registers 830. The results of eight taps are added by the adders 812 before being multiplied by the normalizer No to keep the output at unity gain. The falling edge of the current ADC clock opens the switches 824 for the multiplier 826, the floor operator 828, and the poly-phase filter bank 814.
The resampled digital poly-phase signal is transformed to a frequency-domain signal using FFT (step 212 shown in
In one implementation, a real FFT algorithm can be employed, where a real time-domain signal {x0, x1, x2, . . . , xn−1} of length 2m (in some examples, m=7, 10, or 11), and is transformed to the frequency domain {X−k/2, X−k/2+1, X−k/2+2, . . . , X0, X1, . . . , Xk/2−1} which has the same length as time-domain sequence {x}. The value of each element of {X} is a complex number. In other words, real data goes in and complex data comes out of the real FFT algorithm. The signal x(n) is sampled at the ADC sampling rate FADC, and the time represented by each index n in x(n) is n/FADC. On the other hand, the index n of the sequence{X} represents a set of frequencies, kFADC/2m. It should be noted that there are negative indices for the frequency domain sequence {X}. These are complex images of the positive frequency axis. For a real FFT algorithm, only half of the data is unique. Therefore, only half of the data is used.
In one example, the output sampling rate FS is 128*FL. If a 128-point real FFT is performed on a time-domain sequence with this output sampling rate FS, every frequency component of the real FFT is a harmonic of the fundamental frequency FL.
The real FFT algorithm integrates over time, but correlates x(n) during this integration with a particular frequency as follows:
Conventionally, the output of the FFT is scaled by 1/N, however, the results of the real FFT are split between two images, each with half of the total magnitude. Since the output of the real FFT contains N/2 components, it doesn't produce the redundant image out of efficiency. Therefore, it needs to be scaled by 2/N, to account for the missing half. Also, the magnitudes at each frequency bin are in peak magnitudes. To convert the magnitude of each component to RMS, it is scaled by 1/√{square root over (2)}. Therefore, the real FFT scaling used is.
The time-domain data out of the ADC 102 that has been ordered into a six-dimensional vector (corresponding to six channels) as follows:
e
j≡(uk,ik)≡(u1,u2,u3,i1,i2,i3),j=1,2,3, . . . ,6and k=1, . . . ,3 (7)
where: uk≡(Phase-A voltage, Phase-B voltage, Phase-C voltage), and ik≡(Phase-A current, Phase-B current, Phase-C current). The Fourier transform of a buffer of length 2m of ej is as follows:
(B2
This can be shown in the table below as follows:
In one implementation, these 6 Fourier transforms shown in Table 2 are performed within high-performance real-time engine 32-bit microcontrollers such as RX71M. It should be understood that this is not intended to be limiting.
Once the frequency-domain signal is obtained, phase angles between the reference voltage component and other components are calculated based on the frequency-domain signal. Various instantaneous measurements made by the electronic energy meter can be derived by the following operation:
M
ij
=E
i
E
j
* (9)
This represents the complex outer product of E with its complex conjugate. This outer product yields a 6×6 matrix with elements each having 2m−1 frequency components. This is a symmetric matrix, so half of the components are redundant. Various measurements, including (fundamental) phase angles, made by the electronic energy meter can be derived from this matrix. Phase angles between the reference voltage component (e.g., the phase A line voltage) and other components can be calculated as follows:
angle(uphB,uphA)=tan−1im(U2(1)U1*(1))/re(U2(1)U1*(1))[B/A Voltage]
angle(uphC,uphA)=tan−1im(U3(1)U1*(1))/re(U3(1)U1*(1))[C/A Voltage]
angle(uphA,iphA)=tan−1im(U1(1)I1*(1))/re(U1(1)I1*(1))[A Voltage/Current] (10)
angle(uphB,iphB)=tan−1im(U2(1)I2*(1))/re(U2(1)I2*(1))[B Voltage/Current]
angle(uphC,iphC)=tan−1im(U3(1)I3*(1))/re(U3(1)I3*(1))[C Voltage/Current]
The phase angle of the reference voltage component is, therefore, calculated based on the frequency-domain signal (step 214 shown in
The phase lock loop 124 is implemented after Sample-127 enters the waveform data stream. In one implementation, the calculated phase angle is converted to a delta sample □n by multiplying the phase angle by 128/2 □□□□ At this point, the interpolation sample phase Pn is adjusted by this delta sample according to the following:
When the delta sample □n ranges from −1 to 1, the interpolation sample phase Pn is adjusted by the calculated delta sample □n; otherwise, the interpolation sample phase Pn is adjusted by one sample instead of the calculated delta sample □n. As such, the adjustment to Pn is by no more than one sample in the positive or negative direction in any event to avoid a huge jump in the waveform.
The adjusted resampled digital poly-phase signal is transformed to an updated frequency-domain signal using FFT (step 218 shown in
The metering measurement calculator 112 calculates one or more measurements based on the updated frequency-domain signal (step 220 shown in
Some exemplary measurements made by the electronic energy meter are illustrated below. It should be noted that the calculation of other measurements using the matrix Mij is within the scope of the disclosure.
The DC measurements are bin 0 of the FFT set Ej(0). The DC voltages and currents for phase A, phase B, and phase C are as follows:
u
1DC
=E
1(0)A voltage
u
2DC
=E
2(0)B voltage
u
3DC
=E
3(0)C voltage (12)
i
1DC
=E
4(0)A current
i
2DC
=E
5(0)B current
i
3DC
=E
6(0)C current
The fundamental measurements are all contained within bin 1 of the FFT measurement matrix: Mij(1)=Ei(1)Ej*(1). It should be noted that each of the voltages and currents for phase A, phase B, and phase C has its real component and imaginary component in the following form:
U
k
=U
(r)k
+jU
(i)k (13)
I
k
=I
(r)k
+I
(i)k
For instance, the RMS squared of the fundamental components of the voltages and currents are calculated according to:
Fu
rms1
2
=E
1(1)E1*(1)=U1(1)U1*(1)=Ur1(1)Ur1(1)+Ui1(1)Ui1(1)
Fu
rms2
2
=E
2(1)E2*(1)=U2(1)U2*(1)=Ur2(1)Ur2(1)+Ui2(1)Ui2(1)
Fu
rms3
2
=E
3(1)E3*(1)=U3(1)U3*(1)=Ur3(1)Ur3(1)+Ui3(1)Ui3(1) (14)
Fi
rms1
2
=E
4(1)E4*(1)=I1(1)I1*(1))=Ir1(1)Ir1(1)+Ii1(1)Ii1(1)
Fi
rms2
2
=E
5(1)E5*(1)=I2(1)I2*(1))=Ir2(1)Ir2(1)+Ii2(1)Ii2(1)
Fi
rms3
2
=E
6(1)E6(1)=I3(1)I3*(1)=Ir3(1)Ir3(1)+Ii3(1)Ii3(1)
By way of example, the fundamental Watt measurements is computed according to:
FWatt1=re(E1(1)E4*(1))=Ur1(1)Ir1(1)+Ui1(1)Ii1(1)[Phase-A]
FWatt2=re(E2(1)E5*(1))=Ur2(1)Ir2(1)+Ui2(1)Ii2(1)[Phase-B] (15)
FWatt3=re(E3(1)E6(1))=Ur3(1)Ir3(1)+Ui3(1)Ii3(1)[Phase-C]
In another example, the fundamental reactive power is calculated according to:
FVAR1=im(E1(1)E4*(1))=Ui1(1)Ir1(1)−Ur1(1)Ii1(1)[Phase-A]
FVAR2=im(E2(1)E5*(1))=Ui2(1)Ir2(1)−Ur2(1)Ii2(1)[Phase-B] (16)
FVAR3=im(E3(1)E6*(1))=Ui3(1)Ir3(1)−Ur3(1)Ii3(1)[Phase-C]
Example of a Computing System in Some Implementations
Any suitable computing system or group of computing systems can be used for performing the operations described herein. For example,
The depicted example of a computing system 900 includes a processor 902 communicatively coupled to one or more memory devices 904. The processor 902 executes computer-executable program code stored in a memory device 904, accesses information stored in the memory device 904, or both. Examples of the processor 902 include a microprocessor, an application-specific integrated circuit (“ASIC”), a field-programmable gate array (“FPGA”), or any other suitable processing device. The processor 902 can include any number of processing devices, including a single processing device.
A memory device 904 includes any suitable non-transitory computer-readable medium for storing program code 914 (e.g., the code used for various operations of the sampling rate converter 108), program data 916 (e.g., the types of measurement selected to be calculated by the metering measurement calculator 112), or both. A computer-readable medium can include any electronic, optical, magnetic, or other storage devices capable of providing a processor with computer-readable instructions or other program code. Non-limiting examples of a computer-readable medium include a magnetic disk, a memory chip, a ROM, a RAM, an ASIC, optical storage, magnetic tape or other magnetic storage, or any other medium from which a processing device can read instructions. The instructions may include processor-specific instructions generated by a compiler or an interpreter from code written in any suitable computer-programming language, including, for example, C, C++, C#, Visual Basic, Java, Python, Perl, JavaScript, and ActionScript.
The computing system 900 executes program code 914 that configures the processor 902 to perform one or more of the operations described herein. The program code may be resident in the memory device 904 or any suitable computer-readable medium and may be executed by the processor 902 or any other suitable processor.
In some implementations, one or more memory devices 904 stores program data 916 that includes one or more datasets described herein. In some implementations, one or more of data sets, models, and functions are stored in the same memory device (e.g., one of the memory devices 904). In additional or alternative implementations, one or more of the programs, data sets, models, and functions described herein are stored in different memory devices 904 accessible via a data network. One or more buses 906 are also included in the computing system 900. The bus 906 communicatively couples one or more components of a respective one of the computing system 900.
In some implementations, the computing system 900 also includes a network interface device 910. The network interface device 910 includes any device or group of devices suitable for establishing a wired or wireless data connection to one or more data networks. Non-limiting examples of the network interface device 910 include an Ethernet network adapter, a modem, and/or the like. The computing system 900 is able to communicate with one or more other computing devices via a data network using the network interface device 910.
The computing system 900 may also include a number of external or internal devices, such as an input device 920, a presentation device 918, or other input or output devices. For example, the computing system 900 is shown with one or more input/output (“I/O”) interfaces 908. An I/O interface 908 can receive input from input devices or provide output to output devices. An input device 920 can include any device or group of devices suitable for receiving visual, auditory, or other suitable input that controls or affects the operations of the processor 902. Non-limiting examples of the input device 920 include a touchscreen, a mouse, a keyboard, a microphone, a separate mobile computing device, etc. A presentation device 918 can include any device or group of devices suitable for providing visual, auditory, or other suitable sensory output. Non-limiting examples of the presentation device 918 include a touchscreen, a monitor, a speaker, a separate mobile computing device, etc.
Although
General Considerations
Numerous specific details are set forth herein to provide a thorough understanding of the claimed subject matter. However, those skilled in the art will understand that the claimed subject matter may be practiced without these specific details. In other instances, methods, apparatuses, or systems that would be known by one of ordinary skill have not been described in detail so as not to obscure claimed subject matter.
The features discussed herein are not limited to any particular hardware architecture or configuration. A computing device can include any suitable arrangement of components that provide a result conditioned on one or more inputs. Suitable computing devices include multipurpose microprocessor-based computer systems accessing stored software (i.e., computer-readable instructions stored on a memory of the computer system) that programs or configures the computing system from a general-purpose computing apparatus to a specialized computing apparatus implementing one or more aspects of the present subject matter. Any suitable programming, scripting, or other type of language or combinations of languages may be used to implement the teachings contained herein in software to be used in programming or configuring a computing device.
Aspects of the methods disclosed herein may be performed in the operation of such computing devices. The order of the blocks presented in the examples above can be varied; for example, blocks can be re-ordered, combined, and/or broken into sub-blocks. Certain blocks or processes can be performed in parallel.
The use of “adapted to” or “configured to” herein is meant as an open and inclusive language that does not foreclose devices adapted to or configured to perform additional tasks or steps. Additionally, the use of “based on” is meant to be open and inclusive, in that a process, step, calculation, or other action “based on” one or more recited conditions or values may, in practice, be based on additional conditions or values beyond those recited. Headings, lists, and numbering included herein are for ease of explanation only and are not meant to be limiting.
While the present subject matter has been described in detail with respect to specific aspects thereof, it will be appreciated that those skilled in the art, upon attaining an understanding of the foregoing, may readily produce alterations to, variations of, and equivalents to such aspects. Accordingly, it should be understood that the present disclosure has been presented for purposes of example rather than limitation and does not preclude inclusion of such modifications, variations, and/or additions to the present subject matter as would be readily apparent to one of ordinary skill in the art.