Next Article in Journal
Analysis of Combining SAR and Optical Optimal Parameters to Classify Typhoon-Invasion Lodged Rice: A Case Study Using the Random Forest Method
Next Article in Special Issue
A Low-Cost IoT Sensors Network for Monitoring Three-Phase Induction Motor Mechanical Power Adopting an Indirect Measuring Method
Previous Article in Journal
Swept-Source-Based Chromatic Confocal Microscopy
Previous Article in Special Issue
Methodology for the Accurate Measurement of the Power Dissipated by Braking Rheostats
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Precise Amplitude and Phase Determination Using Resampling Algorithms for Calibrating Sampled Value Instruments

Instrument Transformers and Sensors, Electrical Energy Measuring Techniques, Physikalisch-Technische Bundesanstalt (PTB), 38116 Braunschweig, Germany
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(24), 7345; https://doi.org/10.3390/s20247345
Submission received: 30 September 2020 / Revised: 14 December 2020 / Accepted: 16 December 2020 / Published: 21 December 2020
(This article belongs to the Special Issue Advanced Transducers and Systems for Voltage and Current Measurement)

Abstract

:
Sampling-based calibration systems for calibrating “Sampled Value” (SV)-based instruments for substation automation require synchronised and time-aligned sampling processes. As the signal frequency of the power grid is always asynchronous to the standardised sampling frequencies according to IEC 61869-9, the sampled waveforms of the calibration system and of the SV-based device under test can be resampled to be synchronised and to allow better accuracy in the following measurements based on the Discrete Fourier Transform (DFT) of the resampled waveforms. The paper presents simulations and results for different resampling algorithms. A modified sinc interpolation method with a finite impulse response (FIR) is presented. The deviation of the results for the root mean square (RMS) and phase angle is in the order of 10−8 V/V (or rad) for normalised frequencies of up to 20% of the sampling frequency. No practical degradation in the presence of noise and harmonics could be observed. In addition, laboratory experiments demonstrate the realization of the proposed resampling process in the future SV-based calibration systems for SV-based instrumentation.

1. Introduction

In the field of electrical alternating current (AC) power and energy measurements, several modern measuring systems rely on internal sampling processes from which voltages and currents, their phase angles or their spectra are to be determined. Moreover, some instruments, such as phasor measurement units, are synchronised to a common pulse-per-second (PPS) clock, distributed, e.g., via global navigation satellites, to allow the absolute phase with respect to this clock to be determined [1]. In the European funded metrological research project 17IND06 “FutureGrid II” [2], the research on and realisation of metrological calibration systems for the digital instrumentation in high-voltage substations will be carried out. In such substations, traditional instrument transformers and associated analogue metering and protection devices will be replaced or retrofitted with sampled value (SV)-based [3] digital instrumentation. One important device in such a measurement chain is the merging unit (MU)/the stand-alone merging unit (SAMU) [4] which performs the analogue-to-digital (AD) sampling process of up to four voltage instrument transformers and of up to four current instrument transformers. The SAMU also performs the phase synchronisation between all eight channels by ensuring simultaneous sampling of the internal AD converters, as well as the alignment and time-stamping of the SV to the PPS clock. Typical standardised sampling rates are between 4 kS/s and 15.36 kS/s for AC applications [3]. Figure 1 demonstrates the sampling process based on the standard IEC 61869-9. From a model perspective, it is important to understand that the sampling process, which can be considered mathematically as the generation of an ordered sequence of samples of a continuous signal x(t), at regular, specific instants of time. The amplitude quantisation according to the standard IEC 61869-9 is 10 mV for the voltage sequences and 1 mA for the current sequences.
According to the standard IEC 61869-9, the standard sample rates for the SV-based instruments are presented in Table 1.
A calibration system for such a SAMU must not only provide suitable reference values of voltage and current (e.g., root mean square (RMS) values or the harmonic content of the signals). It must also provide a synchronisation and alignment to the PPS in order to allow calibrating the phase angle between the SAMU voltage and current channels and to further allow calibrating the absolute phase angle of each channel with respect to the PPS. Synchronisation for an accurate determination of the power quality parameters can be achieved by various methods regarding to the different aspects of the calibration system. For instance, in a laboratory environment, the synchronisation of the sampling processes of the reference measuring system is already possible by synchronising the sampling frequency fS to the fundamental frequency f1 of the signal and by starting the sampling process of the reference system with the PPS [1,5,6]. Moreover, the software-based algorithms in the frequency domain have been used to synchronise an asynchronously running sampling to the measured signal for the measuring system [7,8]. Besides this, algorithms related to the Discrete Fourier Transform (DFT) analysis techniques [9,10,11] have been applied for the synchronisation. Furthermore, when the frequency of the digitised signal is not as expected as the frequency based on the sampling clock of the measurement system, a method has been used that relies on a time domain interpolation technique to modify the sampling rate of the captured signal in software [12]. Even in other metrological applications such as ac power standards, at least the synchronisation of fS to f1 can easily be attained in the laboratory environment by the hardware synchronisation of an analogue to digital converter (ADC) internal master clock (e.g., 10 MHz) with the master clock of a signal generator [13,14,15] or of an analogue or digital phase-locked loop (PLL) circuits which provide a synchronised sampling frequency fS which is an integer multiple of the fundamental frequency f1 [8,16,17]. To achieve the synchronisation to the signal frequency and to the PPS, a modified sinc interpolation in the time domain, proposed in this paper, performs a resampling process, where the length of the new dataset is aligned to a maximum possible integer number of the signal period. Therefore, no further windowing is required for the subsequent DFT analysis [18]. Additionally, a phase correction is described, which is required to preserve phase accuracy to the PPS. An advantage is that the resampling based analysis is not only accurate for the power frequency (i.e., the fundamental) but also for the wideband spectral content of the signal.
In this paper, different resampling algorithms for choosing the most suitable algorithm and implementing it in a new calibration system for digital current transformers [19] have been simulated. Resampling algorithms using polynomial interpolations based on a quadratic function and a cubic function are presented in this work for comparison to the resampling algorithm using the modified sinc interpolation [20,21,22]. The attainable accuracy after applying a DFT to a resampled series of sampled values in terms of the RMS error and the error of the absolute phase angle for the fundamental as well as the simulated harmonics is determined. LabView-based software has been developed to conveniently perform the simulations as well as the calculations and statistics and the data transfer. The presented algorithms strongly rely on the precise determination of the fundamental frequency f1 of the (original) series of sampled values. In the presented algorithms, we make use of a LabView functionality for extracting the frequency based on the IEEE-STD-1057 four-parameter sine wave fit algorithm. It is not the intention of the authors to incorporate an extensive mathematical analysis, instead results for each test case are given. For the evaluation of the resampling algorithms, other error sources, typically associated with ADCs such as quantisation errors, or device internal phase displacements such as from the analogue input filtering or the ADC’s internal digital filter are not considered (see Section 3.1). This allows us to exclusively assess the attained accuracy of the resampling algorithm. However, quantisation errors which are due to the number resolution of the SV communication protocol are integrated into the simulation by using a self-developed SV-based generator and receiver (see Section 3.2).

2. Designs and Methods

The designs and methods are divided into two parts: the designs of the resampling algorithms and the application methods for the practical validation of the simulated resampling algorithms.

2.1. Resampling Process and Simulated Algorithms

For the resampling simulation, the generation of a time-discrete waveform (i.e., a sampled signal) is proposed, which covers three components: a fundamental sinusoidal signal, a noise signal (white noise) and a series of sinusoidal signlas to simulate several harmonics. The digitised signal, as a signal sequence u[k], is given by:
u [ k ]   =   2 · U 1 · sin 2 π · f 1 · k · T S + φ 1 + u Noise + m > 1 2 · U m · sin 2 π · f m · k · T S + φ m ,
where k = 0, 1, 2, …, N − 1, k refers to the original sampling value index of the signal sequence, N refers to the original sample number of the signal sequence and TS is the sampling time of the sampling process. U1, f1, and φ1 refer to the RMS voltage, the frequency and the phase angle of the fundamental sinus waveform signal, respectively; uNoise refers to the RMS value of the noise signal that is generated by a white noise random generator with a rectangular distribution, the variable m is an integer which refers to the order of the harmonic series. Um, fm, and φm refer, respectively, to the RMS voltage, the frequency and the phase angle of the mth harmonic sinusoidal. The generated sampling values of the signal sequence, which are mathematically computed from Equation (1), are regarded as the reference sampling values for the resampling process. The Discrete Fourier Transform (DFT) spectra of a signal which is synchronised (a) and not synchronised (b, asynchronous signal) to the sampling frequency are shown in Figure 2.
Theoretically, the sampling values of the sinus waveform signal sequence u[k] are sampled by a sampling period TS (i.e., the sampling rate fS = 1/TS) in a window of the length TW. A waveform with 1 V RMS, 4000 samples/s and a window of 1 s has been generated with a fundamental frequency f1 that is not synchronous to the sampling process. The corresponding asynchronous sampling results in the frequency domain are displayed in Figure 2b as the DFT spectrum showing the RMS-scaled amplitude behaviour. It is obvious that the leakage of the spectrum will lead to inaccurate results for the RMS values as well as for the phase angle (not shown). The idea of the proposed resampling is that the sampling values of the sinus waveform signal sequence u[k] are resampled at a (new) resampling rate fS’ (i.e., the resampling period TS’ = 1/fS’) and that a new window of the length TW’ is calculated which contains an integer multiple of the measured signal period T1 = 1/f1. The synchronised DFT results in the frequency domain are illustrated in Figure 2a showing the amplitude at f1 only and the noise floor from the generated noise signal.

2.1.1. Program structure of the Resampling Process

The program structure of the resampling process, introduced in Figure 3, is mainly made up of five function blocks: the sampling value generator, the frequency determination of the sampling values, the calculation of the resampling parameters, the resampling and the Fast Fourier Transform (FFT) spectrum analysis. The resampling block contains three different resampling algorithms for investigation which are based on a quadratic interpolation function, on a cubic interpolation function and a modified sinc interpolation.
First of all, a set of discrete signal samples u[k] is generated for the simulation according to Equation (1). The generation is realised with the appropriate setup of the sampling parameters (N, TS) and the characteristic signal parameters (U1, f1, φ1, the noise parameter and the additional harmonic parameters). As a result, the sequence of the generated discrete values is sent by the generator. After the digital transmission, the sequence is received for resampling. As the resampling process must be executed by using recognised sampling parameters of the original sequence u[k], such as TS, N and the detected signal frequency, the received sequence u[k] needs to be processed in order to extract these required parameters for the resampling. This is done in the two function blocks between the generator and the resampling, shown in Figure 3, which analyse the discrete sampling samples from the generator. The first block (labelled as “Frequency determination” in Figure 3) determines the fundamental frequency f1′ by using the IEEE-STD-1057 four-parameter sine wave fit algorithm [23] based on the received original sampling sequence u[k]. After that, in the second block (labelled as “Calculation of resampling parameters” in Figure 3), the required parameters for the resampling process are calculated, which refer to the total time window TW’, the number of the samples N’ and the sampling time Ts’. The subsequent calculation of the resampling sequence u’[i] is performed in the block (labelled as “Resampling” in Figure 3).
The selection of the different resampling algorithms subsequently leads to a different number of the samples w that must be at least cut off at the beginning and at the end of the original sampling sequence for the resampling process. This number is set at w = 2 for the quadratic interpolation, w = 3 for the cubic interpolation and w = NF for the modified sinc interpolation. An optional time delay TDel at the beginning of the original sampling sequence is determined by the user. The new resampling parameters can be obtained through:
TW’ = TW − (w · Ts + TDel),
N’ = 2Ceil(Log(N;2)),
Ts= (Nper’/T1)/N’,
where the number of the resampling period Nper’ of the fundamental signal is calculated by Nper’ = Floor(TW’/T1). Further detailed operations of the parameters are presented in Section 2.1.2 and Section 2.1.3. The number of samples N’ was chosen to be a binary number, for which the new sampling rate fS´ = 1/TS´ is higher than the original sampling rate.
Eventually, the FFT spectrum analysis of the resampling values u’[i], where i refers to the resampling value index of the signal sequence, is used for the determination of UDFT(f), which refers to the complex signal parameters of the resampled signal sequence. These results are used for the comparison to the known signal parameters of the generated original signal sequence. The quality of the simulated algorithms is evaluated in terms of the (positive; the use of the positive errors allows logarithmic diagrams to be used) relative amplitude errors |ΔU/U| and the (positive) phase errors |Δφ| that are determined by |ΔU/U| = |[|UDFT(f)| − U1]/U1| for the amplitude evaluation and |Δφ| = |(arg{UDFT(f)} − φ1| for the phase evaluation.

2.1.2. Interpolations Based on a Quadratic and a Cubic Function

The interpolations based on a quadratic and a cubic function principally both match the polynomial interpolation which is applied to find the coefficient of a polynomial function based on given data through the corresponding quadratic and cubic functions. The detailed mathematical analysis of the resampling algorithms based on a quadratic interpolation and a cubic interpolation is presented in Appendix A. Additionally, the detailed determination of the first resampling sample for the sake of a phase correction is explained in Section 2.1.4.

2.1.3. Interpolation Based on a Modified Sinc Function

The interpolations based on a quadratic and a cubic function, introduced in Appendix A, are considered as a simple and basic method for the resampling process. However, the polynomial interpolation is limited by the polynomial degrees. Higher degrees may contribute to more accurate resampling results, but higher degrees can also lead to the undesirable properties in the resampled waveform. Therefore, an interpolation based on a modified FIR-approximated sinc function has been chosen as the interpolation kernel, which in theory [24] can be used in resampling processes where the resampled waveform contains the same information as the original waveform. Thus, calculations of the spectral composition using a DFT lead to exact numerical results.
Generally, a sinc function [25] is expressed as sinc(x) = sin(x)/x. Interpolation based on a sinc function (i.e., the Whittaker–Shannon interpolation formula [26]) is supposed to reconstruct a continuous-time bandlimited function x(t) from a given signal sequence x[k]. The sinc function for the resampling interpolation denotes the normalised sinc function, expressed as sinc(x) = sin(πx)/πx. The generalised sinc interpolation equation is denoted by:
x ( t ) = k = + x [ k ] · sinc t T s k .
The generalised sinc interpolation equation consists of parameters of the signal sequence and parameters of the normalised sinc function. When the x[k] sequence is bandwidth-limited to less than the Nyquist frequency, x(t) is a perfect reconstruction of the original function based on the sampling theorem. Combined with resampling parameters, t/Ts can be replaced through i · Ts’/Ts. The sampling samples of the given signal sequence, x[k] = u[k], are generated according to Equation (1). The resampling value is calculated through the interpolation based on a modified sinc function:
u i = k = 0 N 1 u [ k ] · Intp x ,
where x = i · Ts’/Tsk. The modified interpolation kernel is expressed as follows:
Intp x = A · cos q π N F · x · sinc π · x ,   N F 2 < x < + N F 2 0 ,   otherwise .
According to Equation (7), the sinc function for the resampling process is limited to the maximum window size NF. The truncation is achieved with windowing using a cos function with additional exponents q. The value A, which is usually one, is used for scaling, if required. The detailed composition of the modified interpolation kernel is illustrated in Figure 4. The detailed determination of the first resampling sample is explained in Section 2.1.4.
The use of the window size NF optimises the algorithm, so that only the number of samples in the considered period has to be taken into account. This drastically reduces the number of multiplications, sine and cosine calculations.

2.1.4. Phase Synchronisation

The synchronisation based on Equation (2) considers a user-defined time delay TDel. The time instant t0’of the first resampled value is chosen to be equal to the time instant ti for which tiTDel. In the case of the sinc interpolation method used, the first possible resampled value is located at t0’ = (NF/2 + 1) · Ts. To synchronise the phase of the resampling samples, a phase correction is applied and is based on the time instant t0’ of the first sample u’(0) of the resampling process. The correction is done by calculating 2·π·f·t0’, where f is the corresponding frequency of interest.

2.2. Emulation Scheme of the SV-Based Communication

The emulation scheme, introduced in Figure 5, realise the laboratory implementation of the SV-based communication. A computer (PC) is not guaranteed to receive all the digital data based on the standard IEC 61850-9-2 [27] without problem. Therefore, a microcontroller-based SV receiver box and the corresponding LabView-based program on the PC are especially designed for receiving sampled values from the digital instruments using IEC 61850-9-2 communication protocols. To avoid any loss of sampled values, the SV receiver box offers a time buffer for the digital data processing. In praxis, the sampled values are sent from the SV-based devices, e.g., SAMU/MU (shown as the grey block in Figure 5). For laboratory validation experiments, a microcontroller-based SV generator box and the corresponding LabView-based program on the PC (the blocks in the grey dotted rectangle in Figure 5) are designed as a substitute for the SV-based devices with a 1 mA current resolution and 10 mV voltage resolution. In this case, the signals for the subsequently arranged evaluations from the SV-based devices (e.g., SAMU or digital energy meter) can be generated much simpler and adjusted for any special research requirements.
The method used for this paper is mainly made up of four parts: two LabView-based software programs on the PC blocks and two microcontroller-based hardware blocks (shown as the blue rectangle blocks in Figure 5).
Firstly, the LabView-based software platform on the PC (the left PC block in Figure 5) program the microcontroller of the SV generator box. The software for the SV generator box defines the sampling parameters (N, TS) and the characteristic signal parameters (U1, f1, φ1, the noise parameter and the possible harmonic parameters), which are introduced in Section 2.1.1. Secondly, the programmed SV generator box generates and sends the user-defined sampled values according to the standard IEC 61850-9-2 to the SV receiver box. Thirdly, the SV receiver box receives the sampled values with the user-defined time buffer that is programmed by the LabView-based software platform on the PC (the right PC block in Figure 5). Then, the sampled values are transmitted without any loss from the SV receiver box to the PC. Finally, the received sampled values can be used for the further computations (e.g., for synchronisation by using the designed resampling algorithms).

3. Results and Validation of the Resampling Process

The results and validation are presented through two parts: the simulation results without consideration of any quantization errors due to the standardized SV communication protocol and the results by using the self-developed microcontroller-based SV devices, which are introducing the quantization errors to the sampled values. The resampling process is simulated under a LabView environment.

3.1. Simulation Results

The simulations with the three resampling algorithms are divided into three parts: the general simulations, the simulations of the frequency response and the simulations with the harmonic interactions. The simulation results were firstly saved from the LabView program as the dataset, then analysed and presented in the diagrams. Before the simulations among the three resampling algorithms, the parameters of the interpolation based on a modified sinc function were investigated for a proper setup. As a result, the resampling algorithm of the modified sinc interpolation was set with q = 6 and NF = 40 as a standard setup for the rest of the simulations. The simulations related to the noise influence were investigated with the RMS noise levels UNoise of 1 μV, 10 μV, 100 μV and 1 mV. The results showed that there was no unusual behaviour depending on the different noise levels. With the chosen sampling parameters of fS = 4 kHz and the window TW = 1s (frequency resolution fres = 1/TW), the noise floor in the spectra agrees with the theoretical level of UNoise/√(fS/2) · √(fres). For a noise level of 1 mV, the noise floor is about 20 µV and is evenly distributed across the frequency range up to fS/2.

3.1.1. General Investigation Simulations

General simulations with the three resampling algorithms were executed with a pure sinusoidal waveform without the noise and the harmonic series. In this case, the qualities of the different resampling algorithms were evaluated without any disturbances. The two essential indicators of the algorithm qualities are the relative amplitude errors |ΔU/U| between the sampling sequence and the resampling sequence and the computation time for the calculation of the whole resampling sequence.
Firstly, the resampling results of the different resampling algorithms, shown in Figure 6 with the RMS-scaled amplitude UDFT(f), were simulated with the corresponding standard setups labelled in Figure 6. It is obvious to see from Figure 6a that the resampling results of the modified sinc interpolation are better than the interpolation based on the cubic function. The results of the interpolation based on the cubic function are better than the interpolation based on the quadratic function. All algorithms show no leakage, but a computational noise floor and fragments, which are shown in more detail in Figure 6b. However, the values of the fragments are small enough so that the main results will not be affected.
As a result, the computation time for the calculation of the whole resampling sequence of each resampling algorithm was recorded together with the simulation results in Figure 6. Compared to the fastest algorithm, the interpolation based on the quadratic function (around 1 ms), the interpolation based on the cubic function is only slightly slower. The modified sinc algorithm is on average, 30 times slower (30 ms) than the quadratic algorithm. At a sampling rate of 20 kS/s and a window time of 1 s, the computation time is about 8 ms for the quadratic interpolation, 9 ms (cubic) and 250 ms (sinc).
Nevertheless, the amplitude errors of the modified sinc algorithm are below 10−9 V/V, while the quadratic and the cubic algorithms exhibit errors in the order of 5·10−7 V/V. The phase errors (not shown in Figure 6) of the cubic and sinc interpolation algorithms are well below 10−9 rad, while for the quadratic interpolation, a systematic phase error of about 20 µrad has been observed.
Additionally, signal sequences with different initial phases φ1 between ±180 ° were simulated for the resampling process. As a result, the errors of the quadratic algorithm are below 10−6 for the amplitude errors and in the order of 2·10−5 for the phase errors. The errors of the cubic algorithm and sinc algorithm are below 10−9 for the amplitude errors and below 10−9 for the phase errors.
Further simulations (repetitions up to 1000) with fluctuating (random) parameters of the generated signal sequence (U1, φ1) were executed. Here, U1 ranges from 0.95 to 1.05 V, and φ1 is in the range ±180 °. These results showed that the fluctuating parameters have no significant effect on the accuracy of the resampling algorithms, which means that the computational accuracy of each algorithm does not depend on smaller fluctuations around the “rated” values of the parameters used.

3.1.2. Frequency Response

The simulations of the frequency response concentrate on the algorithm behaviours associated with the various signal frequencies f1. The other parameters of the sampling signal sequence, except f1, were set the same as the signal sequence for simulations in Section 3.1.1, generated with a pure sinusoidal waveform without noise and the harmonic series. Based on the sampling rate fS = 4000 Hz, the resampling process was repeated for each algorithm with different signal frequencies f1 from 4 Hz to almost 2 kHz, which is the Nyquist frequency. The simulation results of the different resampling algorithms are exhibited in Figure 7 with the frequency responses of the relative amplitude errors |ΔU/U| (the diagram above in Figure 7) and of the absolute phase errors |Δφ| (the diagram below in Figure 7). The x-axis of the diagrams is normalised by the ratio of the signal frequency and the resampling frequency f1/fS, which is 0 < f1/fS < 0.5. The absolute phase errors |Δφ|, presented in Figure 7, are synchronised to the sampling signal and corrected with a 90 degree phase displacement owing to the FFT analysis, which extracts the phase angle related to a cosine instead of a sine.
According to Figure 7, it is apparent that the relative amplitude errors |ΔU/U| and the absolute phase errors |Δφ| both have rising trends with increasing frequencies. The ratio f1/fS, ranges from 0.001 to 0.5 and complies with the simulated signal frequency f1, ranging from 4 Hz to 2 kHz.
For the relative amplitude errors, the results of the resampling algorithms based on the quadratic and the cubic interpolations, shown as the orange dots and the blue dots in Figure 7 (above), have almost identical frequency responses with the errors of below 10−10 V/V at 4 Hz. Besides this, the relative amplitude errors are around 0.2 V/V up to a frequency up to 40% of the sampling rate. The relative amplitude errors are increasing with the ratio f1/fS, i.e., the signal frequency f1. In contrast, the relative amplitude errors of the modified sinc algorithm, shown as the red dots in Figure 7 (above), are stably in the range of 10−9 V/V to 10−6 V/V with a frequency up to 40% of the sampling rate. With higher frequencies (>0.4 · fS), even the modified sinc algorithm is no longer accurate for the resampling process.
For the absolute phase errors, the results of the resampling algorithms based on the quadratic interpolations, shown as the orange dots in Figure 7 (below), are below 10−5 rad with a frequency of up to 50 Hz (80 samples per period or f/fS = 0.0125). The absolute phase errors of the resampling algorithms based on the cubic interpolations, shown as the blue dots in Figure 7 (below), are below 10−5 rad with a frequency up to 1 kHz (four samples per period or f/fS = 0.25). The absolute phase errors are increasing with the ratio f1/fS, i.e., the signal frequency f1. In contrast, the absolute phase errors of the modified sinc algorithm, shown as the red dots in Figure 7 (below), are stably in the range from 10−9 rad to 10−6 rad with a frequency of up to 40% of the sampling rate.

3.1.3. Harmonics Interactions

The simulations with the harmonic interactions, which are one of the representative indicators related to the power quality, focus on investigating the algorithm quality under various harmonic interactions. The simulations contain the investigation on the fundamental sinus waveform signal with a single harmonic interaction, the investigation on the fundamental sinus signal with a harmonic series and the investigation on the fundamental sinus signal with a square waveform.
Firstly, the simulation results of the fundamental sinus waveform signal with a swept single harmonic are illustrated in Figure 8. The order of the simulated harmonic signal is 2h + 1, where h is the positive integer number. The amplitude of the simulated harmonic signal is 10% of the amplitude of the fundamental signal.
For the relative amplitude errors, the results of the resampling algorithms based on the quadratic and the cubic interpolations, shown as the orange curves and the blue curves, respectively, in Figure 8 (above), have almost the same errors for both the fundamental signal and the harmonic signal. The relative amplitude errors of the fundamental signal are flat below 10−6 V/V with the order of the harmonic signal from 3 to 21. The relative amplitude errors of the harmonic signal are increased from about 10−4 V/V with the order of the harmonic signal to 10−1 V/V. The relative amplitude errors of the modified sinc algorithm, shown as the red curves in Figure 8 (above), are similar to the quadratic and the cubic algorithms. The relative amplitude errors of the fundamental signal are flat below 10−9 V/V with the order of the harmonic signal from 3 to 21, while the relative amplitude errors of the harmonic signal are below 10−7 V/V.
For the absolute phase errors, except the resampling algorithms based on the quadratic function, the results of the resampling algorithms based on the cubic function and the modified sinc interpolation, shown as the blue curves and the red curves, respectively, in Figure 8 (below), are below 10−5 rad with the order of the harmonic signal from 3 to 21.
Furthermore, the resampling of the fundamental sinus waveform signal with a harmonic series was simulated. The results are almost the same as the resampling of the fundamental sinus waveform signal with a single swept harmonic. The harmonic series is made up of an odd number order of the harmonic signals. All the harmonic signals were set up with a 10% amplitude value of the fundamental sinus waveform signal. The influence of the harmonic interactions on the fundamental sinus waveform signal or on each harmonic signal is slightly higher than the resampling with the single harmonic.
Finally, the resampling of a square waveform, shown in Figure 9, was simulated based on the harmonic series. The order of the simulated harmonic signal is 2h + 1, where h is the positive integer number, whereby a maximum harmonic number of 31 has been used in the simulation. The amplitude of the simulated harmonic signal decreases with 1/(2h + 1) of the amplitude of the fundamental signal.
The corresponding resampling amplitude and phase error of the square waveform signal are displayed in Figure 10.
For the relative amplitude errors, the results of the resampling algorithms based on the quadratic and the cubic interpolations, shown as the orange curves and the blue curves, respectively, in Figure 10 (above), are practically identical. The relative amplitude errors of the square waveform signal range from 10−6 V/V to 0.2 V/V. The relative amplitude errors of the modified sinc algorithm, shown as the red curves in Figure 10 (above), are several orders more accurate than the quadratic and the cubic algorithms. The relative amplitude errors of the fundamental signal are below 10−9 V/V and below 10−4 V/V for the 31st harmonic of square waveform signal.
For the absolute phase errors, except quadratic interpolation, the results of the resampling algorithms based on the cubic function and the modified sinc interpolation, shown as the blue curves and the red curves, respectively, in Figure 10 (below), are below 10−4 rad at all harmonics with their order from 3 to 31.

3.2. Experimental Results Based on the Microcontroller-Based SV Devices

The laboratory experiments were executed according to the emulation of the SV-based communication, shown in Figure 5 in Section 2.2. The developed microcontroller-based SV generator box (shown in Figure 11a) and SV receiver box (shown in Figure 11b) have been developed for the laboratory experiments.
The developed SV generator box (shown in Figure 11a) is a device that sends pre-programmed SV data over ethernet using the IEC 61850-9-2 protocol. The basic module is a 32-bit ARM Cortex-M4 CPU with ethernet and USB port. The SV data can be programmed with a PC using the USB connection. The SV generator box can send three-phase four-wire current and voltage signals at the same time. The programmed current and voltage values and the phase angle can be differently set by the user. The sampling frequencies fS can be set to 4 kS/s, 4.8 kS/s, 12.8 kS/s or 14.4 kS/s according to the standard IEC 61869-9. The developed SV receiver box (shown in Figure 11b) is a device that receives the SV data over ethernet using the IEC 61850-9-2 protocol. The basic module is a 32-bit ARM Cortex-M4 CPU with ethernet and USB port. The SV receiver box gathers all the SV data and provides PC with a time buffer for the SV data processing. The SV data is sent to a PC using the USB connection
According to the simulation results in Section 3.1, the experimental measurements with the developed SV devices are using the modified sinc algorithm for the resampling process. The measurements were processed with three different voltages of U1 = 1 V/100 V/100 kV for comparison. The results are firstly saved from the LabView program as the data set, then analysed and presented in the diagrams. As a result, the experimental measurement based on SV device results are presented as: (i). the difference between the generated signals, set by the PC and the quantized signals, sent by SV generator box, (ii). the spectra composition of the received signals by the SV receiver box and of the resampled signals after applying the modified sinc algorithm.
According to Figure 12, for instance, the results of the signals with U1 = 1 V and U1 = 100 V are presented, which show the difference between the generated signals, set by the PC and the quantized signals, sent by SV generator box in time domain. As a consequence, the signals with various amplitude, U1 = 1 V/100 V/100 kV, have eventually the same rectangular error distribution of ± 5 mV. This quantisation noise, which is due to the prescribed limited number resolution of the SV communication protocol, is independent of the signal amplitude values. Furthermore, the programmed quantization of 10 mV of the SV generator box is valid for acting as a SAMU in the hardware loop. With the chosen sampling parameters of fS = 4 kHz and the window TW = 1s (frequency resolution fres = 1/TW), the noise floor in the spectra agrees with the theoretical level of (UNoise/√3)/√(fS/2) · √(fres). For a noise level of ± 5 mV, the noise floor is about 60 µV and is evenly distributed across the frequency range up to fS/2 (shown in Figure 13).
The full DFT spectra of three received signals by the SV receiver box and the three corresponding resampled signals after applying the modified sinc algorithm are presented in Figure 13. From the comparison of the signals before and after resampling processing, it is obvious to see that the resampled signals by using the modified sinc algorithm (yellow, purple, grey) has no more leakage that exists in the received signals from SV receiver box without resampling processing (green, orange, blue). The noise of the resampled signals of the signals with different RMS values are almost identical by about 60 µV. These noise results in frequency domain (shown in Figure 13) confirm the noise results in time domain (shown in Figure 12). The modified sinc algorithm is valid for the practical situation. Additionally, based on the SV devices, the experimental RMS amplitude values and phase values of the three received signals without resampling processing, the experimental RMS amplitude values and phase values of the three resampled signals by using the modified sinc algorithm as well as the corresponding errors between the signals with and without resampling processing are presented in Table 2.
From Table 2, in the first place it is concluded that, even for the non-realistic case in high-voltage system of 1V, the relative amplitude errors of three different signals with the modified sinc resampling algorithm based on the SV devices are in the order of 10−4 V/V and the absolute phase errors are in the order of 10−4 rad. These results are caused by the data quantization of 10 mV of the SV generator box. Moreover, the error of the frequency determination (+ 1.16 µHz/Hz) is in agreement with the phase error of 180 µrad.
Moreover, the errors with the higher voltages are proportionally better than the errors with the lower voltages, since the 10 mV quantization of the SV generator box has much less influences on the high voltages (e.g., 100 kV) compared to the low voltage (e.g., 1 V). In practical circumstance, for primary voltages above 100 V and primary current above 10 A, the errors due to the quantization of the SV protocol are in the order of 10−6 V/V for the relative amplitude errors and in the order of 10−6 rad for the phase errors.

4. Conclusions

A modified sinc interpolation method with a finite impulse response (FIR) has been presented. The resampling based on the modified sinc algorithm takes the longest computation time, compared to the other two algorithms. The results of the modified sinc resampling algorithm are the most accurate within a normalised bandwidth of up to 40% of fS. Even with strongly distorted waveforms, the amplitude and phase errors of the modified sinc algorithm are well below 10 ppm and μrad with signals of up to 40% of fS. The deviation of the results for the RMS and phase angle is in the order of 10−8 V/V (or rad) for normalised frequencies of up to 20% of the sampling frequency. No practical degradation in the presence of noise and harmonics could be observed.
To sum up, the results of the modified sinc interpolation method with the phase synchronisation were simulated for typical sampling settings of sampled value-based digital instrumentation in high voltage substations. As the simulation results showed, the proposed resampling process allows the synchronisation of the sampled values to PPS with almost mathematically perfect accuracy. In addition, the experimental results based on the microcontroller-based SV devices confirmed that the proposed modified sinc interpolation method works with SV-based instrumentation as well. The simulations and experimental results allow the highly accurate implementation of the proposed resampling process in the future SV-based calibration systems for SV-based instrumentation, such as digital instrument transformers, SAMUs and digital energy meters. As an example, the highest accuracy class of a SAMU is 0.05 [28]. Calibration systems for such a SAMU should be an order of magnitude more accurate. With the modified sinc interpolation method, no practical degradation of the measurement uncertainty through different sampling processes in the device under test (i.e., the SAMU) and the reference (i.e., the calibration system) is to be expected. As a consequence, the modified sinc interpolation method is currently adapted to a calibration platform in the laboratory for the current transformer measuring system. Based on the accurate processing of the digital signal quantities by using the modified sinc resampling algorithm, further power-quality-related calibrations will be accomplished in the future.

Author Contributions

Conceptualisation, E.M. and Y.C.; methodology, M.S.; software, M.S. and S.d.R.; validation, Y.C., E.M. and M.S.; formal analysis, Y.C.; investigation, M.S., E.M. and Y.C.; resources, E.M. and S.d.R.; data curation, M.S.; writing—original draft preparation, Y.C.; writing—review and editing, Y.C.; visualisation, Y.C.; supervision, E.M.; project administration, E.M.; funding acquisition, E.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been partially funded by the European project 17IND06 “FutureGrid II: Metrology for the next-generation digital substation instrumentation”.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Appendix A

Appendix A supplements Section 2.1. The detailed operations of the resampling algorithms based on the quadratic interpolation and the cubic interpolation are presented.

Appendix A.1. Quadratic Interpolation

Referring to the resampling algorithm of this work, the interpolation based on a quadratic function deals with the coefficient derivation of a quadratic function from three sampling samples of the given signal sequence u[k]. With the selection of the first sample for one resampling process, the following three samples are determined sequentially with its next two samples and are expressed as (t0, u[t0]), (t1, u[t1]), (t2, u[t2]). The initial quadratic function for the interpolation is assumed as follows:
P(t) = a0 + a1t+ a2t2.
The detailed resampling calculation of the interpolation based on a quadratic function is illustrated in Figure A1. The ith resampling process deals with three given sampling samples: one nearest sampling sample before the resampling sample and two nearest sampling samples after the resampling sample. The detailed determination of the first resampling sample (position 0 in Figure A1) is explained in Section 2.1.4.
Figure A1. Detailed figure for calculating sample(s) based on a quadratic interpolation. The signals are simulated with parameters of fS = 500 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0 grad, and TDel = 0.005 s without any noise or any harmonics. The blue dashed curve with the black crosses represents the waveform of the sampling signal sequence. The three blue dots represent the selected sampling samples for the resampling process. The purple dotted curve represents the determined quadratic function. The red dots represent two resampling samples.
Figure A1. Detailed figure for calculating sample(s) based on a quadratic interpolation. The signals are simulated with parameters of fS = 500 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0 grad, and TDel = 0.005 s without any noise or any harmonics. The blue dashed curve with the black crosses represents the waveform of the sampling signal sequence. The three blue dots represent the selected sampling samples for the resampling process. The purple dotted curve represents the determined quadratic function. The red dots represent two resampling samples.
Sensors 20 07345 g0a1
The resampling process, for instance, the ith resampling sample shown in Figure A1, explains one of the N’ resampling processes under the circumstance with the given parameters. The process is divided into four parts. Firstly, the position of the resampling sample (position 1 in Figure A1) is determined by the index i. Secondly, the three sequential sampling samples (the three blue dots in Figure A1) are selected from the sampling signal sequence. The resampling sample should be, as designed, located between the first and second sampling samples. Thirdly, the quadratic function (the purple dotted curve in Figure A1) for the interpolation is acquired through the three sampling samples. Finally, the resampling value is calculated through the quadratic function.
For a simpler and faster calculation, the origin of the coordinate system is moved to the first original sampling sample and the x-axis is normalised to TS. The new quadratic function P’(t’) in the auxiliary coordinate system for the resampling process is defined as follows:
P’(t’) = a0′ + a1′t’+ a2′(t’)2,
where t’ is the normalised time (tk·TS)/TS. With the three sequential original sampling samples in the auxiliary coordinate system (0, u(0)), (1, u(1)), (2, u(2)), the quadratic function is determined with the coefficient matrix a :
a = 1 0 0 3 2 2 1 2 1 2 1 1 2 · u ,
where u = u 0 u 1 u 2 .

Appendix A.2. Cubic Interpolation

Referring to the resampling algorithm of this work, the interpolation based on a cubic function deals with the coefficient derivation of a cubic function from four sampling samples of the given signal sequence u[k], generated according to Equation (1). With the selection of the first sample for one resampling process, the following three samples are determined sequentially with the next three samples, expressed as (t0, u[t0]), (t1, u[t1]), (t2, u[t2]), (t3, u[t3]). The initial quadratic function for the interpolation is assumed as follows:
P(t) = b0 + b1t+ b2t2+ b3t3.
The detailed resamples calculation of the interpolation based on a cubic function is illustrated in Figure A2. The ith resampling process deals with four given sampling samples: the two nearest sampling samples before the resampling sample and the two nearest sampling samples after the resampling sample. The detailed determination of the first resampling sample (position 0 in Figure A2) is explained in Section 2.1.4.
Figure A2. Detailed figure for calculating sample(s) based on a cubic interpolation. The signals are simulated with parameters of fS = 500 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, and TDel = 0.003 s without the noise and the harmonic series. The blue dashed curve with the black crosses represents the waveform of the sampling sequence. The four blue dots represent the selected original samples for the resampling process. The green dotted curve represents the determined cubic function. The red dots represent the samples after the resampling process.
Figure A2. Detailed figure for calculating sample(s) based on a cubic interpolation. The signals are simulated with parameters of fS = 500 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, and TDel = 0.003 s without the noise and the harmonic series. The blue dashed curve with the black crosses represents the waveform of the sampling sequence. The four blue dots represent the selected original samples for the resampling process. The green dotted curve represents the determined cubic function. The red dots represent the samples after the resampling process.
Sensors 20 07345 g0a2
Similar to the quadratic resampling process, the ith resampling sample shown in Figure A2, explains one of the N’ resampling processes under the circumstance with the given parameters based on cubic interpolation. The process is divided into four parts. Firstly, the position of the resampling sample (position 1 in Figure A2) is determined by the index i. Secondly, the four sequential sampling samples (the four blue dots in Figure A2) are selected from the sampling signal sequence. The resampling values should be, as designed, located between the second and third sampling samples. Thirdly, the cubic function (the purple dotted curve in Figure A2) for the interpolation is acquired through the four sampling samples. Finally, the resampling value is calculated through the cubic function. To allow simpler and faster calculations, the origin of the coordinate system is moved to the first original sample and the x-axis is normalised to TS. The new cubic function P’(t’) in the auxiliary coordinate system for the resampling process is defined as follows:
P’(t’) = b0′ + b1′t’+ b2′(t’)2+ b3′(t’)3,
where t’ is the normalised time (tk·TS)/TS. With the four sequential samples in the auxiliary coordinate system (0, u(0)), (1, u(1)), (2, u(2), (3, u(3)), the cubic function is determined with the coefficient matrix b :
b = 1 0 11 6 3 0 0 3 2 1 3 1 5 2 1 6 1 2 2 1 2 1 2 1 6 · u ,
where u = u 0 u 1 u 2 u 3 .

References

  1. Wilson, R.E. PMUs [phasor Measurement Unit]; IEEE: New York, NY, USA, 1994; Volume 13, pp. 26–28. [Google Scholar] [CrossRef]
  2. FutureGrid II—Metrology for the Next-Generation Digital Substation Instrumentation. Available online: https://projectsites.vtt.fi/sites/FutureGrid2/ (accessed on 28 September 2020).
  3. IEC 61869-9:2016 Instrument Transformers—Part 9: Digital Interface for Instrument Transformers; International Standardization Organization: Geneva, Switzerland, 2016.
  4. Cipolletta, G.; Delle Femine, A.; Gallo, D.; Landi, C.; Luiso, M. Design Approach for a Stand Alone Merging Unit. In Proceedings of the 16thIMEKO TC10 Conference, Berlin, Germany, 3–4 September 2019. [Google Scholar]
  5. Djokic, B.; Parks, H. Development of a system for the calibration of digital bridges for non-conventional instrument transformers. In Proceedings of the 2016 Conference on Precision Electromagnetic Measurements (CPEM 2016), Ottawa, ON, Canada, 10–15 July 2016; pp. 1–2. [Google Scholar] [CrossRef]
  6. Mohns, E.; Mortara, A.; Cayci, H.; Houtzager, E.; Fricke, S.; Agustoni, M.; Ayhan, B. Calibration of Commercial Test Sets for Non-Conventional Instrument Transformers. In Proceedings of the IEEE International Workshop on Applied Measurements for Power Systems, AMPS 2017, Liverpool, UK, 20–22 September 2017. [Google Scholar] [CrossRef]
  7. Mohns, E.; Roeissle, G.; Fricke, S.; Pauling, F.; An, A.C. Current Transformer Standard Measuring System for Power Frequencies. IEEE Trans. Instrum. Meas. 2017, 66, 1433–1440. [Google Scholar] [CrossRef]
  8. Overney, F.; Mortara, A. Synchronization of Sampling-Based Measuring Systesm. IEEE Trans. Instrum. Meas. 2014, 63, 89–95. [Google Scholar] [CrossRef]
  9. Fu, Z.; Wang, J.; Ou, Y.; Zhou, G.; Bai, F.; Zhao, X. The VPF harmonic analysis algorithm based on Quasi-synchronous DFT. Open Electr. Electron. Eng. J. 2017, 11, 114–124. [Google Scholar] [CrossRef] [Green Version]
  10. Štremfelj, J.; Agrez, D. Nonparametric Estimation of Power Quantities in the Frequency Domain Using Rife-Vincent Windows. IEEE Trans. Instrum. Meas. 2013, 63, 2171–2184. [Google Scholar] [CrossRef]
  11. Orallo, C.M.; Carugati, I.; Maestri, S.; Donato, P.G.; Carrica, D.; Benedetti, M. Harmonics Measurement with a Modulated Sliding Discrete Fourier Transform Algorithm. IEEE Trans. Instrum. Meas. 2014, 63, 781–793. [Google Scholar] [CrossRef]
  12. Clarkson, P.; Wright, P. Evaluation of an asynchronous sampling correction technique suitable for power quality measurements. In Proceedings of the IEEE Trans. XIX IMEKO World Congress Fundamental and Applied Metrology, Lisbon, Portugal, 6–12 September 2009. [Google Scholar]
  13. Clark, F.J.J.; Stockton, J.R. Principles and theory of wattmeters operating on basis of regularly spaced sample pairs. J. Phys. E Sci. Instrum. 1982, 15, 645–652. [Google Scholar] [CrossRef]
  14. Ramm, G.; Moser, H.; Braun, A. A New Scheme for Generating and Measuring Active, Reactive, and Apparent Power at Power Frequencies with Uncertainties of 2.5·10−6. IEEE Trans. Instrum. Meas. 1999, 48, 422–426. [Google Scholar] [CrossRef]
  15. Ihlenfeld, W.G.K. Traceability of AC Voltage Ratios and AC Power by Synchronous Digital Synthesis and Sampling; PTB-Bericht, E76; Physikalisch-Technische Bundesanstalt: Braunschweig, Germany, 2001. [Google Scholar]
  16. Svensson, S. Power Measurement Techniques for Non-Sinusoidal Conditions—The Significance of Harmonics for the Measurement of Power and other AC Quantities. Ph.D. Thesis, Chalmers University of Technology, Göteborg, Sweden, 1999. [Google Scholar]
  17. Ihlenfeld, W.G.K.; Seckelmann, M. Simple Algorithm for Sampling Synchronization of ADCs. IEEE Trans. Instrum. Meas. 2009, 58, 781–785. [Google Scholar] [CrossRef]
  18. Chugani, M.; Samant, A.; Cerna, M. LabVIEW Signal Processing; Prentice Hall: Upper Saddle River, NJ, USA, 1998; pp. 97–110. [Google Scholar]
  19. Chen, Y.; Mohns, E.; Badura, H.; Räther, P.; Luiso, M. Setup and Characterisation of Reference Current-to-Voltage Transformers for Wideband Current Transformers Calibration up to 2 Ka. In Proceedings of the 2019 IEEE 10th International Workshop on Applied Measurements for Power Systems (AMPS), Aachen, Germany, 25–27 September 2019; pp. 1–6. [Google Scholar] [CrossRef]
  20. Duda, K.; Barczentewicz, S. Interpolated DFT for Windows. IEEE Trans. Instrum. Meas. 2014, 63, 754–760. [Google Scholar] [CrossRef]
  21. Dodgson, N.A. Quadratic interpolation for image resampling. IEEE Trans. Instrum. Meas. 1997, 6, 1322–1326. [Google Scholar] [CrossRef] [PubMed]
  22. Hamila, R.; Gunnarsson, G.; Renfors, M. New design approach for polynomial-based interpolation. In Proceedings of the 1999 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing (PACRIM 1999), Victoria, BC, Canada, 22–24 August 1999; pp. 544–547. [Google Scholar] [CrossRef]
  23. Handel, P. Properties of the IEEE-STD-1057 four-parameter sine wave fit algorithm. IEEE Trans. Instrum. Meas. 2000, 49, 1189–1193. [Google Scholar] [CrossRef]
  24. Oppenheim, A.V.; Schafer, R.W.; Buck, J.R. Zeitdiskrete Signalverarbeitung, 2nd ed.; MunPearson Studium: Munich, Germany, 2004; pp. 206–238. [Google Scholar]
  25. Sinc Function. Available online: https://en.wikipedia.org/wiki/Sinc_function (accessed on 28 September 2020).
  26. Whittaker–Shannon Interpolation Formula. Available online: https://en.wikipedia.org/wiki/Whittaker–Shannon_interpolation_formula (accessed on 28 September 2020).
  27. IEC 61850-9-2:2011 Communication Networks and Systems in Substations–Part 9-2: Specific Communication Service Mapping (SCSM)–Sampled Values over ISO/IEC 8802-3; International Electrotechnical Commission: Geneva, Switzerland, 2011.
  28. IEC 61869-13:2019 Instrument transformers–Part 13: Standalone Merging Unit; International Standardization Organization: Geneva, Switzerland, 2019.
Figure 1. Principle scheme of the sampling process for the SV-based devices according to standard IEC 61869-9. For illustration purpose, a non-standardized sample rate of 500 S/s (10 samples per period at 50 Hz) is applied.
Figure 1. Principle scheme of the sampling process for the SV-based devices according to standard IEC 61869-9. For illustration purpose, a non-standardized sample rate of 500 S/s (10 samples per period at 50 Hz) is applied.
Sensors 20 07345 g001
Figure 2. Discrete Fourier Transform (DFT) spectra of the synchronous signal; (b) The DFT spectra of the asynchronous signal. The signals are given for fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0 ° and uNoise = 1 mV without harmonics.
Figure 2. Discrete Fourier Transform (DFT) spectra of the synchronous signal; (b) The DFT spectra of the asynchronous signal. The signals are given for fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0 ° and uNoise = 1 mV without harmonics.
Sensors 20 07345 g002
Figure 3. Scheme of the resampling process.
Figure 3. Scheme of the resampling process.
Sensors 20 07345 g003
Figure 4. The composition of the interpolation kernel Intp(x) (green curve) can be seen by the pure sync function (red) and the modifying cosq function (blue curve) for NF = 40 and q = 6.
Figure 4. The composition of the interpolation kernel Intp(x) (green curve) can be seen by the pure sync function (red) and the modifying cosq function (blue curve) for NF = 40 and q = 6.
Sensors 20 07345 g004
Figure 5. Emulation scheme of the SV-based communication.
Figure 5. Emulation scheme of the SV-based communication.
Sensors 20 07345 g005
Figure 6. (a) Full DFT spectra of the resampled signals by using the quadratic interpolation (orange), the cubic interpolation (blue) and the modified sinc interpolation (red). (b) Detailed DFT spectra of the resampled signals to see the fragments of each interpolation (quadratic, cubic, sinc). The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, and φ1 = 0° without any noise or harmonics.
Figure 6. (a) Full DFT spectra of the resampled signals by using the quadratic interpolation (orange), the cubic interpolation (blue) and the modified sinc interpolation (red). (b) Detailed DFT spectra of the resampled signals to see the fragments of each interpolation (quadratic, cubic, sinc). The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, and φ1 = 0° without any noise or harmonics.
Sensors 20 07345 g006
Figure 7. Frequency responses of the quadratic, the cubic and the modified sinc interpolations. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, and φ1 = 0° without noise and the harmonic series. The orange dots represent the results of the interpolation based on the quadratic function. The blue dots represent the results of the interpolation based on the cubic function. The red dots represent the results of the modified sinc interpolation.
Figure 7. Frequency responses of the quadratic, the cubic and the modified sinc interpolations. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, and φ1 = 0° without noise and the harmonic series. The orange dots represent the results of the interpolation based on the quadratic function. The blue dots represent the results of the interpolation based on the cubic function. The red dots represent the results of the modified sinc interpolation.
Sensors 20 07345 g007
Figure 8. The resampling amplitude and phase error of the fundamental sinus waveform signal with a single harmonic. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 0.1U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 10, without noise signal. The orange curves represent the results of the interpolation based on the quadratic function. The blue curves represent the results of the interpolation based on the cubic function. The red curves represent the results of the modified sinc interpolation.
Figure 8. The resampling amplitude and phase error of the fundamental sinus waveform signal with a single harmonic. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 0.1U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 10, without noise signal. The orange curves represent the results of the interpolation based on the quadratic function. The blue curves represent the results of the interpolation based on the cubic function. The red curves represent the results of the modified sinc interpolation.
Sensors 20 07345 g008aSensors 20 07345 g008b
Figure 9. The generated square waveform at 50.1 Hz based on the harmonic series. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 1/(2h + 1)·U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 15, without noise signal.
Figure 9. The generated square waveform at 50.1 Hz based on the harmonic series. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 1/(2h + 1)·U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 15, without noise signal.
Sensors 20 07345 g009
Figure 10. The resampling amplitude and phase error of a square waveform signal. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 1/(2h + 1)·U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 15, without noise signal. The orange curves represent the results of the interpolation based on the quadratic function. The blue curves represent the results of the interpolation based on the cubic function. The red curves represent the results of the modified.
Figure 10. The resampling amplitude and phase error of a square waveform signal. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, U1 = 1 V, f1 = 50.1 Hz, φ1 = 0°, UH = 1/(2h + 1)·U1, fH = (2h + 1)·f1, and φH = 0°, where h is an integer and h = 0, 1, 2, …, 15, without noise signal. The orange curves represent the results of the interpolation based on the quadratic function. The blue curves represent the results of the interpolation based on the cubic function. The red curves represent the results of the modified.
Sensors 20 07345 g010aSensors 20 07345 g010b
Figure 11. (a) Photo of the microcontroller-based SV generator box with additional port information. (b) Photo of the microcontroller-based SV receiver box with additional port information.
Figure 11. (a) Photo of the microcontroller-based SV generator box with additional port information. (b) Photo of the microcontroller-based SV receiver box with additional port information.
Sensors 20 07345 g011
Figure 12. The difference between the generated signals, set by the PC and the quantized signals, sent by SV generator box (green: U1 = 1 V, orange: U1 = 100 V) in time domain. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0 ° with different RMS values of the amplitude U1 = 1 V/100 V, without noise and harmonics.
Figure 12. The difference between the generated signals, set by the PC and the quantized signals, sent by SV generator box (green: U1 = 1 V, orange: U1 = 100 V) in time domain. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0 ° with different RMS values of the amplitude U1 = 1 V/100 V, without noise and harmonics.
Sensors 20 07345 g012
Figure 13. Full DFT spectra of three received signals from SV receiver box without resampling processing (green: U1 = 1 V, orange: U1 = 100 V, blue: U1 = 100 kV) and the three corresponding resampled signals by using the modified sinc algorithm (yellow U1 = 1 V, purple: U1 = 100 V, grey: U1 = 100 kV). The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0° with different RMS values of the amplitude U1 = 1 V/100 V/100 kV, without the noise and the harmonic series. The modified sinc algorithm are simulated with parameters of q = 6 and NF = 40.
Figure 13. Full DFT spectra of three received signals from SV receiver box without resampling processing (green: U1 = 1 V, orange: U1 = 100 V, blue: U1 = 100 kV) and the three corresponding resampled signals by using the modified sinc algorithm (yellow U1 = 1 V, purple: U1 = 100 V, grey: U1 = 100 kV). The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0° with different RMS values of the amplitude U1 = 1 V/100 V/100 kV, without the noise and the harmonic series. The modified sinc algorithm are simulated with parameters of q = 6 and NF = 40.
Sensors 20 07345 g013
Table 1. The standard sample rates for the SV-based instruments according to the standard IEC 61869-9 [3]. The marked sample rates (*) are preferred for digital interface to instrument transformers.
Table 1. The standard sample rates for the SV-based instruments according to the standard IEC 61869-9 [3]. The marked sample rates (*) are preferred for digital interface to instrument transformers.
Sample Rate
in Hz
ASDU
Per Frame
Publishing Rate
Frame/s
Frequency
in Hz
40001400050
48001480050/60
4800 *2240050/60
57601576060
12,8008160050
14,400 *6240050/60
15,3608192060
96,000 *196,000wideband
Table 2. Experimental SV device-based amplitude and phase values of the three received signals without resampling processing and of the three resampled signals by using the modified sinc algorithm as well as the three corresponding errors between the signals with and without resampling processing. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0 ° with different RMS values of the amplitude U1 = 1 V/100 V/100 kV, without the noise and the harmonic series. The modified sinc algorithm are simulated with parameters of q = 6 and NF = 40.
Table 2. Experimental SV device-based amplitude and phase values of the three received signals without resampling processing and of the three resampled signals by using the modified sinc algorithm as well as the three corresponding errors between the signals with and without resampling processing. The signals are simulated with parameters of fS = 4000 Hz, TW = 1 s, f1 = 50.1 Hz, and φ1 = 0 ° with different RMS values of the amplitude U1 = 1 V/100 V/100 kV, without the noise and the harmonic series. The modified sinc algorithm are simulated with parameters of q = 6 and NF = 40.
U1
in V
Φ1
In Rad
f1
in Hz
UDFT(f1)
in V
φDFT(f1)
in Rad
(UDFT(f1) − U1)/U1
in %
φDFT(f1) − φ1
in Crad
1050.1000589.998 × 10−11.77 × 10−4−0.0200.018
100050.1000011.000 × 1021.56 × 10−60.0000.000
100,000050.1000001.000 × 1052.13 × 10−90.0000.000
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Chen, Y.; Mohns, E.; Seckelmann, M.; de Rose, S. Precise Amplitude and Phase Determination Using Resampling Algorithms for Calibrating Sampled Value Instruments. Sensors 2020, 20, 7345. https://doi.org/10.3390/s20247345

AMA Style

Chen Y, Mohns E, Seckelmann M, de Rose S. Precise Amplitude and Phase Determination Using Resampling Algorithms for Calibrating Sampled Value Instruments. Sensors. 2020; 20(24):7345. https://doi.org/10.3390/s20247345

Chicago/Turabian Style

Chen, Yeying, Enrico Mohns, Michael Seckelmann, and Soeren de Rose. 2020. "Precise Amplitude and Phase Determination Using Resampling Algorithms for Calibrating Sampled Value Instruments" Sensors 20, no. 24: 7345. https://doi.org/10.3390/s20247345

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop