Next Article in Journal
Energy Efficiency Assessment of Electric Bicycles
Previous Article in Journal
Smart Grid System Based on Blockchain Technology for Enhancing Trust and Preventing Counterfeiting Issues
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids

Department of Measurement Science, Electronics and Control, Silesian University of Technology, ul. Akademicka 10, 44-100 Gliwice, Poland
*
Author to whom correspondence should be addressed.
Energies 2025, 18(13), 3524; https://doi.org/10.3390/en18133524
Submission received: 20 May 2025 / Revised: 19 June 2025 / Accepted: 2 July 2025 / Published: 3 July 2025

Abstract

This paper presents a proposed error model for the signal errors resulting from delays in the measurement chain. The analysis focuses on the uncertainty budget of the input quantities in the digital signal-processing algorithm, examining the influence of delays in the analog-to-digital processing stage on the uncertainty of these quantities. A classification of delays, based on their properties and the nature of the error signal they generate, is proposed. In addition to the mathematical model and its verification through the Monte Carlo method, the paper discusses potential applications of the proposed analysis method for selected implementations of measurement chains. This method can be utilized for power and energy measurement, power grid fault detection, and the identification of short circuits, among other applications.

1. Introduction

Digital data-processing (D/D) algorithms are used in virtually every measurement chain. They are applied in both static and dynamic reproduction of the measured quantity [1,2,3], spectral analysis of the signal [4,5,6,7], power and energy measurements [8,9], medicine [10,11], diagnostics [12,13], and power grid fault detection [14,15]. The delay phenomena discussed also apply in situations in which the delay occurs due to the time needed for communication between the systems used, as described, among others, in [16]. A common feature of all the above-mentioned applications is a fragment of analog-to-digital (A/D) processing, the task of which is to convert subsequent realizations of the measured quantity s ( t ) , represented by voltage y ( t ) , into subsequent discrete samples x ( i ) .
While the literature often discusses issues related to the properties of the A/D converter in the uncertainty budget of quantity x ( i )  [17,18,19,20], these considerations rarely address the problem of delays occurring in the A/D conversion process. However, this issue is very important in the context of algorithms that process sequences N of successive samples of x ( i ) , such as Wavelet Transform (WT) or Discrete Fourier Transform (DFT) algorithms.
So far, in the literature [21,22,23,24], there have been proposals for a general error model related to such delays. However, these were Polish-language publications of local scope and were not presented in the international literature. The model proposed in the indicated works presents a general outline of how to define the discussed error signal, but does not indicate how to determine its parameters and does not propose a division of the components of this signal due to the nature of their implementation. The indicated division is important due to the analysis of how the discussed error signal is processed by the D/D algorithm used in the measurement chain. Delay problems were also addressed, among others, in [25,26,27,28,29]; however, the considerations and models proposed therein are not directly applicable in the case of using digital signal-processing (DSP) algorithms, as mentioned in previous studies. The methods indicated in the above-mentioned works focus on specific applications, which makes it difficult to use them in general cases by using a different solution of the measurement chain. A similar situation applies to the JCGM Guide [30], as no procedure is indicated therein for estimating the measurement uncertainty in the discussed case.
In analyzing the process of acquiring successive samples of quantity x ( i ) , two main problems can be observed: the process of initiating the measurement and the process of collecting successive samples of quantity y ( t ) . Measurement initiation is usually triggered by the detection of an appropriate condition (e.g., detection of a phenomenon or a signal crossing a set threshold). It can be noted here that the value of the first sample x ( i ) is acquired after a certain time Δ t s . The introduced delay is related, among others, to the phenomenon detection time [26,28] (i.e., the time for performing the measurement examining the phenomenon and for executing the detection algorithm), as well as to the possible concurrent execution of other tasks [31,32] (including task preemption). When the measurement has been initiated and N subsequent values of x ( i ) are being collected, these values should be acquired at constant time intervals T s = 1 f s , where f s is the sampling frequency, constant for all samples. In reality, however, this frequency may fluctuate, causing each sample x ( i ) to be shifted by a time Δ t i , which may differ for each sample. These phenomena are shown in Figure 1.
Taking into account the current state of knowledge and the popularity of digital data-processing algorithms, this paper proposes an error model for the phenomena discussed in the introduction and presented in Figure 1. The proposed model enables analytical determination of the variance of error signals related to delays, eliminating the need for Monte Carlo simulation [3,33,34] and thereby saving the time-consuming effort involved in conducting experiments. In addition to theoretical considerations, the paper includes a description and the results of several experiments verifying the effectiveness of the proposed method, as well as examples of its application in cases involving solutions such as “system-on-chip” [35] and Wavelet Transform algorithms [5].
The paper is divided into five parts: Section 1 contains an overview of the current state of knowledge and the most important assumptions. Section 2 describes the model of delay-related error signals, with derivations for selected dependencies provided in Appendix A. Section 3 presents a description and the results of experiments verifying the effectiveness of the proposed method, while Section 4 discusses its possible applications. Finally, Section 5 provides a summary and the most important conclusions regarding the proposed method.

2. Time-Related Error Model

In analyzing the case presented in Figure 1, it can be observed that delays in processing successive samples of the signal s ( t ) result from two main phenomena:
 
Δ t s , the delay in starting the measurement relative to the time t s , at which the measurement should begin;
 
Δ t i , the difference in the processing time of the i-th signal sample relative to the time expected based on the sampling period T s .
In the first case, the delay may result, for example, from the time required to execute the algorithm responsible for initiating the measurement under specific conditions or from waiting for available resources in the case of multi-task solutions [31,32]. In the second case, the time difference may result from fluctuations in the frequency of the clock running the counter [36], which, in turn, triggers successive measurements in the A/D converter [37].
Assuming that the signal x ( i ) is a discrete representation of s ( t ) , the ideal waveform of x ( i ) can be described by the following equation [38]:
x ˙ i = s i T s + t s ,
where t s is the ideal starting time of the measurement. According to the model in Figure 1, the observed signal x ( i ) , affected by the error signal e x , t ( i ) resulting from the delays discussed above, can be expressed as follows:
x ˜ i = s i T s + t s + Δ t i + Δ t s .
Hence, the error signal e x , t ( i ) can be described by the following equation [30]:
e x , t i = x ˜ i x ˙ i = s i T s + t s + Δ t i + Δ t s s i T s + t s .
From Figure 1, it can be seen that the delay Δ t s is constant for all samples of the signal x ( i ) and is greater than zero. In contrast, the time difference Δ t i may vary across samples and can take both negative and positive values.
By representing the signal s ( t ) as a sum of its harmonics [39], Equations (1) and (2) can be rewritten as follows:
s t = E s , 0 + k = 1 E s , k sin ω s , k t + φ s , k ,
x ˙ i = E s , 0 + k = 1 E s , k sin ω s , k i T s + t s + φ s , k ,
x ˜ i = E s , 0 + k = 1 E s , k sin ω s , k i T s + t s + Δ t i + Δ t s + φ s , k .
Thus, the error signal e x , t , k ( i ) corresponding to the k-th harmonic of the signal x ( i ) with pulsation ω s , k can be written as follows:
e x , t , k i = E s , k sin ω s , k i T s + t s + φ s , k sin ω s , k t + φ s , k .
From Equation (7), it can be seen that the characteristics of the error signal e x , t ( i ) due to delays are closely correlated with the number and properties of the harmonics present in the signal s ( t ) . Additionally, it can be noted that, if s ( t ) contains a constant component, the delay-related phenomena discussed here do not introduce any error in that component.

2.1. Error Signal Related to Measurement Initiation Delay

When considering the nature of the parameter Δ t s , which assumes the same value for all samples of the signal x ( t ) in a single measurement, it can be observed that the error signal e x , t , k ( i ) will have a deterministic component [40,41,42], with a pulsation equal to that of the original harmonic of the signal s ( t ) , and an expected value of zero [39]. This is an important feature because, from the perspective of processing this component using the D/D algorithm, the processing may depend on the value of the pulsation of this harmonic [43].
The zero expected value of this component results from the fact that the “sinus” function is characterized by a zero expected value, regardless of the value of the phase parameter. Assuming the measurement process is repeated many times, the average value of the implementation of the discussed component of the error signal will be zero. Because, for a single measurement window, successive values of the discussed component correspond to successive values of the “sinus” function with pulsation ω s , k , the distribution of these values forms a “U”-shaped pattern [44].
Because, in reality, the initiation delay of the measurement process is always greater than zero, this component will always be characterized by a non-zero variance for each measurement implementation. The value of this variance will be proportional to the delay implementation value Δ t s . For each measurement implementation, the error signal associated with the discussed component will exhibit different variance values. By repeating the measurement multiple times, this value may change across subsequent measurement implementations; therefore, in the subsequent sections of this paper, the expected value of the variance associated with the analyzed component of the error signal will be considered [30].

2.2. Error Signal Related to Sampling Period Fluctuation

The second component of the error signal e x , t , k ( i ) will be a random component [45] with a zero expected value and energy distributed across all pulsation values [39]. For the discussed component, it is proposed to adopt a model in which this component is a non-deterministic signal with a constant power spectral density [46]. The distribution of the realization values of this component will depend on the distribution of the parameter  Δ t i .
Because, for each realization of the A/D converter system, the expected value of the parameter T s should remain invariant, and the realization values Δ t i depend on the fluctuations of this parameter, it can be assumed that the expected value of Δ t i is zero. In practice, this means that the phenomenon in question is not associated with the possibility of a deterministic error signal, as discussed for the parameter Δ t s . However, it should be noted that, if the expected value of Δ t i were non-zero, the deterministic component would be strongly correlated with the component resulting from the parameter Δ t s  [39,47,48].

2.3. Delay-Related Error Signal Variance

By analyzing the case in which the measurement process is repeated many times for different realizations of Δ t i and Δ t t , it can be observed that, regardless of the nature of the error signals introduced by the phenomena related to them, the resultant error signal e x , t , k ( i ) can be described in probabilistic terms [30,38,41,45,49]. It can therefore be assumed that t s U ( , ) s , φ s , k U ( 0 , 2 π ) rad , and t U ( , ) s , where the symbol U denotes the uniform distribution [45]. The values of the realizations of these parameters are thus irrelevant for determining the variance of the error signal e x , t , k ( i ) .
For the adopted assumptions, it can also be noted that, regardless of the nature of the realizations of the parameters Δ t i and Δ t t for a single measurement window, on a global scale, these variables can be treated as two uncorrelated random variables [45]. Based on the nature of the components of the error signal e x , t , k ( i ) , it is therefore proposed to determine the variance of these components analytically, separately for each component. Additionally, due to the completely different nature of the realizations of these components within a single measurement window of the D/D algorithm, it is proposed to disregard any correlation between these components in the considerations. Detailed derivations are not presented in the rest of this chapter; they can be found in Appendix A.
Given the adopted assumptions, a single harmonic of the error signal e x , t , k ( i ) , the pulsation of which is ω s , k , can be described by the following equation:
e x , t , k i = E s , k sin ω s , k i T s + t s + Δ t Σ sin ω s , k i T s + t s = 2 E s , k sin 1 2 ω s , k Δ t Σ cos ω s , k i T s + 1 2 ω s , k Δ t Σ ,
where Δ t Σ = Δ t s + Δ t i is the difference between the ideal and actual times at which the realization value of the quantity s ( t ) is taken.
For the assumption that the e x , t , k ( i ) signal components associated with the parameters Δ t s and Δ t i are not correlated with each other, the variance of a single component e x , , k ( i ) of the signal in question can be determined, regardless of its nature, according to the following equation [39]:
σ x , , k 2 = E e x , , k 2 ( i ) E [ e x , , k ( i ) ] 2 ,
where “∗” denotes the component of the error signal where Δ t s is related to the delay in initiating the measurement process and Δ t i is related to the fluctuation of the sampling period. It can be observed that, for the assumption where t s U ( , ) , regardless of the parameters of the variable Δ t , the expected value of the part related to the “cosine” function is zero, while the root mean square value of this function is 1 2  [39]. For these properties, Equation (9) is transformed into the following form:
σ x , , k 2 = 2 E s , k 2 E sin 2 1 2 ω s , k Δ t = E s , k 2 ( 1 E [ cos ω s , k Δ t ] ) .
Hence, the final value of the variance for the discussed component directly depends on the signal parameters s ( t ) and the distribution parameters of the realization values for the analyzed delay Δ t .
In the case where Δ t U ( a , b ) , one can observe the property where ω s , k Δ t U ( ω s , k a , ω s , k b ) . Hence, the expected value of E [ cos ( ω s , k Δ t ) ] is
E [ cos ( ω s , k Δ t ) ] = sin ω s , k b sin ω s , k a ω s , k b a ,
while the variance of the error signal e x , , k ( i ) related to Δ t for the indicated parameters is described by the following equation:
σ x , , k 2 = E s , k 2 1 sin ω s , k b sin ω s , k a ω s , k b a .
The next case considered in this paper is the scenario where Δ t N ( μ , σ 2 ) , where the symbol N denotes the normal distribution [45]. The expected value of E [ cos ( ω s , k Δ t ) ] is then
E cos ω s , k Δ t = exp 1 2 ω s , k σ 2 cos ω s , k μ .
Therefore, the variance of the error signal e x , , k ( i ) related to Δ t is
σ x , , k 2 = E s , k 2 1 1 + exp 1 2 ω s , k σ 2 cos ω s , k μ .
For the case where Δ t G ( k , θ ) , where G denotes the “Gamma” [45] distribution, the expected value of E [ cos ( ω s , k Δ t ) ] is
E cos ω s , k Δ t = 1 + θ 2 ω s , k 2 k 2 cos k arctan θ ω s , k .
Therefore, for the discussed case, the variance of the error signal e x , , k ( i ) related to Δ t is described by the following equation:
σ x , , k 2 = E s , k 2 1 ( 1 + θ 2 ω s , k 2 ) k 2 cos k arctan θ ω s , k .
Finally, the variance value, denoted as σ x , t 2 , for the error signal e x , t ( i ) , can be estimated using the following equation:
σ x , t 2 = k = 1 σ x , t , k 2 = k = 1 σ x , Δ t s , k 2 + σ x , Δ t i , k 2 ,
where the variance values for each component are determined by the distribution of realizations of the parameters Δ t s and Δ t i , and are calculated according to Equation (10).
As per the previous discussion regarding the nature of the parameter Δ t s , the literature commonly suggests the use of the “Gamma” distribution for modeling the realization values of this parameter [26,29,32,45]. For the component associated with the parameter Δ t i , it is generally assumed that the number of factors influencing its realization is large enough, which justifies the use of the normal distribution [30,36]. Detailed derivations of the dependencies from Equations (11)–(16) can be found in Appendix A.

2.4. The Case of a Non-Zero Expected Value of Sampling Period Fluctuation

When the expected value of the parameter Δ t i is non-zero, it is recommended to modify the method as follows:
Δ t i = Δ t i E Δ t i ,
Δ t s = Δ t s + E Δ t i .
In these assumptions, it is considered that the expected value of Δ t i contributes as an additional component to the average delay value Δ t s . This modification enables the proposed method to be applied directly, eliminating the need to account for the correlation between the deterministic components of the error signal e x , t , k ( i ) .

3. Verification of the Proposed Method

The effectiveness of the proposed method was verified through simulation. For this purpose, a series of experiments was conducted using the Monte Carlo method. Each iteration of the experiment involved generating a vector of N = 1024 samples of size x ( i ) for the ideal case, according to Equation (1), and for the case where there is an error related to delays, according to Equation (2). The time value t s for each iteration of the experiment was randomly selected such that t s U ( 2 π , 2 π ) s .
In the experiments, the measurement chain processed the signal given by Equation (4), where E s , k = { 3 , 2 , 1 } , ω s , k = 2 π · { 13 , 34 , 67 } rad / s , while the phase value φ s , k U ( 0 , 2 π ) rad was randomly selected for each iteration of the experiment. It was assumed that the sampling period in the ideal case was T s = 6.14 × 10 3   s , so the sampling rate was f s = 162.8 Hz. The experiments were performed for different parameters and distributions of the realizations of the quantities Δ t s and Δ t i . For each set of parameters, M = 100,000 iterations were performed, as described in the previous paragraph.
For the obtained values of the signal realization x ( i ) , the subsequent realizations of the error signal e x , t ( i ) were determined according to Equation (3). For all K = N · M obtained samples of the error signal e x , t ( i ) , their variance σ s 2 was calculated using the following equation [30]:
σ s 2 = 1 K 1 i = 0 K 1 e x , t ( i ) 1 K j = 0 K 1 e x , t ( j ) 2 ,
Next, the variance of σ e 2 was estimated according to Equation (17). Then, the relative error in estimating this value was determined [30]:
δ = σ e 2 σ s 2 σ s 2 100 % .
According to the description presented above, the course of a single iteration of the experiment was as follows:
  • Randomize the initial phase t s of the signal x ( i ) , where t s U ( 2 π , 2 π ) s ;
  • Generate a vector N of successive samples of quantity x ˙ ( i ) based on Equation (1);
  • Randomize the value of the quantity Δ t s according to the given parameters of the distribution of this quantity;
  • Randomize a vector of N successive values of the quantity Δ t i according to the given parameters of the distribution of this quantity;
  • Generate a vector of N consecutive samples of the signal x ˜ ( i ) based on Equation (2);
  • Calculate the realization values of the error signal e x , t ( i ) according to Equation (3);
  • Calculate the variance value σ s 2 of the error signal e x , t ( i ) based on Equation (20);
  • Estimate the variance value σ e 2 of the error signal e x , t ( i ) based on Equation (17);
  • Calculate the relative error δ of the estimated variance value σ e 2 based on Equation (21).

3.1. Case of Delay in Initiation of the Measurement Process

In the experiment, it was assumed that parameter Δ t i = 0   s , meaning there was no phenomenon of sampling period fluctuation. The parameters of the quantity Δ t s were dependent on the variant of the experiment. The histograms of all K = N · M realizations of the error signal e x , t ( i ) related to delays are shown in Figure 2a, while the spectrum of an example vector consisting of N realizations of this signal is shown in Figure 2b. This experiment can be recreated for any parameters by running the test_var_1_*.m scripts from the repository [50]. For the discussed experiment, the parameters of the distribution of realization values of the quantity Δ t s were chosen so that the inequality Δ t s > 0   s was satisfied.
Based on the experimental results, it can be seen that the variance of the analyzed error signal was estimated correctly. It is important to note that this value applies to cases where the measurement process is repeated multiple times. For a single iteration of the experiment, the actual variance of the error signal may differ, because it is influenced directly by the nature of the signal. The signal discussed for a single measurement realization is deterministic, and its variance depends directly on the value of the realization of the parameter Δ t s . This phenomenon and the nature of the signal can be observed by analyzing its spectrum, as presented in Figure 2b.

3.2. The Case with Sampling Period Fluctuation

In this variant, it was assumed that there was no delay in the initiation of the measurement process, so Δ t s = 0   s , while the parameters of the quantity Δ t i depended on the variant of the experiment. The histograms of all K = N · M realizations of the error signal e x , t ( i ) associated with delays are shown in Figure 3a, while the spectrum of an example vector consisting of N realizations of this signal is shown in Figure 3b. This experiment can be reproduced with any parameters by running the test_var_2_*.m scripts from the repository [50]. For the discussed experiment, the parameters of the distribution of realization values of the quantity Δ t i were chosen so that the equality E [ Δ t i ] = 0   s was satisfied.
The analysis of the experiment results allowed us to conclude that the parameters of the error signal related to the phenomenon of sampling period fluctuations were estimated correctly. The experiments also confirmed the properties discussed in the previous chapter and the random nature of the analyzed error signal, which can be seen by analyzing the spectrum of this signal presented in Figure 3b. In this case, for a sufficiently large number of N samples of the processed vector of quantities x ( i )  [30], the estimated value of the variance is correct for any realization of the measurement process.

3.3. The Case with Multiple Delay Sources

In the discussed variant, both a delay in the initiation of the measurement process and fluctuations in the sampling period were assumed. The parameters of the quantities Δ t i and Δ t s depended on the variant of the experiment. The histograms of all K = N · M realizations of the error signal e x , t ( i ) related to delays are shown in Figure 4a, while the spectrum of an example vector consisting of N realizations of this signal is shown in Figure 4b. This experiment can be reproduced with any parameters by running the test_var_3_*.m scripts from the repository [50]. For the discussed experiment, the parameters of the distribution of realization values of the quantity Δ t s and Δ t i were chosen to satisfy Δ t s > 0   s and E [ Δ t i ] = 0   s .
For the conducted experiments, the estimated variance of the error signal related to delays coincided with the reference value. This confirms that the assumption made in the previous section regarding the negligible correlation between components of the analyzed error signal is justified. By analyzing the histograms presented in Figure 4b, it can be seen that the discussed error signal contains both deterministic components, whose pulsations correspond to the harmonics of the signal s ( t ) , and a random component, the energy of which is uniformly distributed across the entire spectrum of the error signal.

3.4. Experiments Conclusions

The results of the conducted experiments confirm the effectiveness of the proposed method and the adopted assumptions. Although the variance of each component of the error signal resulting from delays is estimated using Equation (9) regardless of the nature of the components, it is necessary to analyze each component separately. This necessity results from the differing nature of the realizations of subsequent values of the discussed signal fragments. While this is irrelevant from the perspective of the uncertainty budget of the input quantity of the D/D algorithm, the nature of the realization of the error signal must be considered for its output quantities, due to the algorithm’s varying impact on different types of processed error signals [43].
A huge advantage of the proposed method is that it does not require Monte Carlo simulation to be applied. On the PC used in the experiments, using an AMD Ryzen 7 5800X processor, manufactured by Advanced Micro Devices, Inc., Santa Clara, CA, USA, Debian GNU/Linux 13 operating system maintained by The Debian Project, Heidelberg, Germany with Linux kernel 6.12.30-amd64 maintained by The Linux Foundation, San Francisco, CA, USA, and GNU Octave program version 9.4.0 maintained by The GNU Project and Free Software Foundation, Boston, MA, USA, for the experiment described in Section 3.3, determining the variance value took up to 3.5 × 10−5 s. When using the Monte Carlo method, for 100,000 iterations, this time was about 12 s. Table 1 summarizes the experimental results for selected parameters Δ t s and Δ t i .

4. Example Applications of the Proposed Method

The proposed method can be applied in both cases where a single input quantity, x ( i ) , is processed and situations where a vector consisting of N subsequent input quantities is processed. This flexibility means that the uncertainty budget associated with the discussed delays can be estimated in various scenarios, including the use of Wavelet Transform algorithms [4,5,6,51,52,53], multiplicative algorithms for measuring power and energy [8,9], real-time systems [31,32], and the analysis of the metrological properties of measurement chains made in “system-on-chip” technology [35]. The general algorithm for using the discussed method is shown in Figure 5.
A common use case for a “system-on-chip” solution is a measurement chain based on a single microcontroller, in which a built-in A/D converter with an integrated sample-and-hold system is used [37]. This solution provides the possibility of D/D processing using built-in “DSP” instructions [54], which makes it an attractive choice due to its low cost and high capabilities. These advantages are especially appealing to designers of measurement chains. An example of the implementation of the discussed solution is the measurement chain described in [41,43]. The application of the proposed method for estimating the variance of the error signal resulting from delays in the analyzed case focuses on selecting model parameters for the quantities Δ t s and Δ t i .
In the case of the measurement process initiation delay parameter, it is necessary to determine which properties of the measurement chain influence the Δ t s value, particularly relating to the following:
  • Whether the measurement chain performs multiple tasks that might be mutually exclusive;
  • The typical execution time of the algorithm responsible for detecting the phenomenon that initiates the measurement process;
  • The nature of the distribution of the measurement process initiation delay time;
  • Whether the S/H system continues to track the input signal after the initiation of A/D processing or whether tracking is performed continuously without interruption.
For the quantity in question, the expected value largely depends on whether the S/H system continuously tracks the input voltage when the A/D processing is not yet active. In practice, this depends on the design of the measurement chain’s software, the hardware capabilities of the microcontroller, and the number of input signals being processed. Most available solutions, such as the one described in [55], offer only one built-in A/D converter with a multiplexed input, which means that simultaneous tracking of multiple input voltages is not feasible. In such a case, the expected value of the parameter Δ t s will increase by the duration of the tracking time, different from a solution where the tracking process is continuous.
For the parameter Δ t i , related to fluctuations in the sampling period, the following factors should be analyzed:
  • How the processing of subsequent samples from the A/D converter input is initiated;
  • The resolution and stability of the clock signal used to measure the sampling time.
In the analyzed case, the method of triggering the A/D converter will have a significant impact on the parameters of the Δ t i quantity. In solutions similar to [55], there is the possibility of automatic triggering using an internal hardware counter, which is clocked by the system clock. Such a solution ensures very high stability of the A/D converter trigger frequency. For example, according to the datasheet [55], the maximum error value of the clock signal period does not exceed 200ns at a clock frequency of 100MHz. Since the presented datasheet [55] only indicates the limiting value of the clock signal period deviation, it is proposed in this case to follow the guide [30] and assume a uniform distribution of the realization values of the quantity Δ t i . In the discussed case, the variance value associated with this signal should be determined according to Equation (12), assuming Δ t i U ( 200 , 200 ) ns . As shown in [41], for the case discussed, the error signal component related to the analyzed issue is characterized by a negligibly small variance compared to other error signals. However, this situation may differ significantly when the A/D converter is triggered solely in a programmatic manner, as is the case with the platform [56].
The final step of the applied method is to determine how the analyzed error signals related to delays are transferred to the output of the applied D/D algorithm. To achieve this, it is important to understand the transfer function of this algorithm, and such an analysis has been presented in [43], among others. It should be noted that the analyzed error signal is always characterized by a zero expected value and a symmetrical distribution of realization values. This means that the expanded uncertainty associated with subsequent components of this signal can be determined according to the method described in [30], while the resultant expanded uncertainty for this signal can be determined using the methods described in [33,57,58,59,60,61,62,63].
In cases where Wavelet Transform algorithms are applied within the measurement chain—as is the case, for example, with certain short-circuit detection methods [15] and power grid failure detection techniques [14]—the influence of these algorithms on the error signals discussed in this study must be taken into account. For the analysis of the stochastic (non-deterministic) component of the error signal, related to Δ t i , the method presented in [64] can be employed to calculate the variance of the output error signal. For the deterministic component, related to Δ t s , the approach proposed in [43] is applicable.

5. Conclusions

This article presents a method for determining the variance of error signals associated with typical delays occurring during A/D processing. The proposed method allows for analytical estimation of the variance parameter of the analyzed error signal, and its results match those obtained by the Monte Carlo method [33]. Therefore, using the proposed method has much lower computational complexity compared to performing simulations. The most important achievements of this work include the following:
  • Proposing a uniform and universal model of error signals related to delays;
  • Indication of an analytical method for determining the variance value of the discussed error signals for selected parameters of the distribution of delay realizations;
  • Indication of the component properties of the error signal related to delays, important from the point of view of analyzing the impact of the D/D processing algorithm on these signals;
  • Indication of possible sources and genesis for the discussed error signals;
  • Verification of the effectiveness of the proposed method in relation to the Monte Carlo method.
The conducted studies show that the nature of the components of the analyzed error signal is different; hence, despite the uniform method of determining their variance, these components should be analyzed separately. The component associated with the delay in initiating the measurement process on the scale of a single implementation is deterministic, while the component related to sampling period fluctuations is random for each realization.
In the case of a single measurement window, the distribution of the error signal component related to the measurement initiation delay has a “sine” function distribution (the shape of the letter “U”) [44]. On a global scale, however, the distribution of this signal fragment depends on the distribution of the delay parameter. For the component related to sampling period fluctuations, the distribution of its value is identical for each realization of the measurement process (assuming a sufficiently large number of input quantities of the D/D algorithm [30]), and its shape depends on the parameters of this delay-related quantity.
The proposed method provides a very universal tool for analyzing parameters of error signals related to delays and for determining their impact on the uncertainty budget of D/D processing algorithms. Unlike the methods and approaches proposed in [25,26,27,28,29], this method offers a universal and unified approach to the problem, thus complementing the recommendations presented in [30]. Its analytical nature also allows application in cases with different realizations of delay values than those proposed in that study.
It should be emphasized that, for all discussed potential applications of the method presented in this study, the development of an uncertainty budget for the output quantities of the applied measurement chain is of critical importance. In applications related to the detection of the analyzed phenomenon, understanding the potential margin of error is essential. Similarly, in cases involving the estimation of output quantities, such as energy, it is crucial to assess the discrepancy between the obtained and the true value. Due to the time-consuming nature of Monte Carlo simulations and the lack of appropriate analytical error models, this aspect is often neglected. The authors therefore hope that the proposed method will find practical applications across various domains.
Analyzing this work, one can also notice a significant disadvantage of the proposed method: the necessity for analytical determination of the content of Equation (10). The discussed situation concerns the case in which the distribution of the realization of the quantity Δ t s or Δ t i is an atypical distribution for which it is not possible to apply any of the models described in the work. However, the analysis of works such as [21,22,23,24,25,26,27,28,29] allows us to assume that, in typical cases, the proposed models can be successfully applied.
All experiments described in this paper can be independently reproduced for any parameters of the Δ t s and Δ t i quantities. The GNU Octave scripts (version 9.4.0 [65]) prepared for this purpose are publicly available in the repository [50].

Author Contributions

Data curation, Ł.D.; formal analysis, M.K. and J.R.; funding acquisition, M.K.; investigation, Ł.D.; methodology, M.K. and Ł.D.; project administration, M.K.; resources, Ł.D.; software, Ł.D.; supervision, J.R.; validation, M.K. and J.R.; writing—original draft, Ł.D.; writing—review and editing, M.K. and J.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by the Rector of Silesian University of Technology, grant number 05/020/RGJ25/0094.

Data Availability Statement

All data related to the simulation experiments supporting the conclusions of this article can be replicated using the scripts provided on GitHub [50].

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following symbols and abbreviations are used in this manuscript:
List of Symbols
s ( t ) Measurement chain input quantity
y ( t ) Voltage representation of the s ( t )
x ( i ) Digital representation of the s ( t )
NNumber of input quantities of the used DSP algorithm
T s Sampling period
f s Sampling frequency
t s Initiation of the measurement process in the ideal situation
Δ t s Delay of the measurement process initiation
Δ t i The difference in the processing time of the i-th x ( i ) signal sample
a ˙ ( t ) Course of the a quantity in the ideal case
a ˜ ( t ) Course of the a quantity in the real case
e a , b ( t ) Error signal of the a quantity caused by phenomenon b
E a , k Amplitude of the k-th harmonic of the a signal
φ a , k Phase of the k-th harmonic of the a signal
ω a , k Pulsation of the k-th harmonic of the a signal
σ a 2 Variance of the a signal
Abbreviations
A/AAnalog-to-analog
A/DAnalog-to-digital converter
D/DDigital-to-digital
DFTDiscrete Fourier Transform
DSPDigital signal processing
S/HSample-and-hold
WTWavelet Transform

Appendix A

Below are the derivations for the dependencies described in Equations (11)–(16). For clarity, it is assumed that the variance of the signal is determined as follows:
y = A sin ω t + δ + φ sin ω t + φ = 2 A sin 1 2 ω δ cos ω t + φ + 1 2 ω δ ,
where ω corresponds to the constant pulsation of this signal (equivalent to the quantity ω s , k ), φ corresponds to the constant phase shift (equivalent to the quantity φ s , k ), and the symbol δ denotes the time difference between the ideal and real cases (equivalent to the quantities Δ t i and Δ t s ). By definition [39,45], the variance of the signal presented in Equation (A1) is as follows:
σ y 2 = E y 2 E y 2 .
Hence, the square of this signal is given by the following:
y 2 = 4 A 2 sin 2 1 2 ω δ cos 2 ω t + φ + 1 2 ω δ .
First, we consider the contribution of the variable t to the expression E t [ y 2 ] . Assuming that this variable can take any values from the range t U ( , ) , we obtain the following:
E t y 2 = 4 A 2 sin 2 1 2 ω δ E t cos 2 ω t + φ + 1 2 ω δ = 2 A 2 sin 2 1 2 ω δ ,
which follows from the property that E [ cos 2 ( α ) ] = 1 2 for α U ( , ) . Then, taking into account the quantity δ , one obtains the following:
E y 2 = E δ 2 A 2 sin 2 1 2 ω δ = 2 A 2 E δ sin 2 1 2 ω δ .
Finally, we calculate the value of the expression E t [ y ] :
E t [ y ] = 2 A sin 1 2 ω δ E t cos ω t + φ + 1 2 ω δ = 0 ,
which follows from the property that E [ cos ( α ) ] = 0 for α U ( , ) . Finally, we obtain the following:
σ y 2 = 2 A 2 E δ sin 2 1 2 ω δ .

Appendix A.1. The Case with Uniform Distribution

For Equation (A7), assuming δ U ( a , b ) , we obtain the following:
E d sin 2 1 2 ω δ = 1 b a a b sin 2 1 2 ω δ d δ ,
where, by substituting sin 2 ( α ) = 1 2 ( 1 cos ( 2 α ) ) , we obtain
E d = 1 b a a b 1 cos ω δ 2 d δ = 1 2 b a a b 1 cos ω δ d δ .
Therefore, calculating
a b 1 cos ω δ d δ = b a 1 ω sin ω b sin ω a ,
we obtain the following:
E d sin 2 1 2 ω δ = 1 2 sin ω b sin ω a 2 ω b a .
Hence, finally,
σ y 2 = A 2 1 sin ω b sin ω a ω b a .

Appendix A.2. The Case of Normal Distribution

For Equation (A7), assuming that δ N ( μ , σ 2 ) and substituting sin 2 ( α ) = 1 2 ( 1 cos ( 2 α ) ) , we obtain the following:
σ y 2 = A 2 1 E d cos ω δ .
Hence,
E cos ω δ = 1 2 π σ 2 cos ω δ exp ( δ μ ) 2 2 σ 2 d δ .
Further, for simplicity, by substituting x = δ μ , we obtain
E cos ω δ = 1 2 π σ 2 cos ω x + μ exp x 2 2 σ 2 d x ,
where, after expansion
cos ω x + μ = cos ω x + ω μ = cos ω x cos ω μ sin ω x sin ω μ ,
we obtain
E cos ω δ = cos ω μ 1 2 π σ 2 cos ω x exp x 2 2 σ 2 d x sin ω μ 1 2 π σ 2 sin ω x exp x 2 2 σ 2 d x ,
while knowing that [66]
cos k x exp x 2 2 σ 2 d x = 2 π σ 2 exp 1 2 σ 2 k 2 .
sin k x exp x 2 2 σ 2 d x = 0 ,
After substituting k = ω into the above dependencies, we obtain the following:
cos ω x 1 2 π σ 2 exp x 2 2 σ 2 d x = exp 1 2 ω 2 σ 2 ,
sin ω x 1 2 π σ 2 exp x 2 2 σ 2 d x = 0 .
Therefore,
E δ cos ω δ = cos ω μ exp 1 2 ω 2 σ 2 .
Hence, finally,
σ y 2 = A 2 1 cos ω μ exp 1 2 ω 2 σ 2 .

Appendix A.3. The Case of the Gamma Distribution

For δ G ( k , θ ) , where G denotes the “Gamma” distribution, in Equation (A7), after substituting sin 2 ( α ) = 1 2 ( 1 cos ( 2 α ) ) , we obtain
E cos ω δ = 0 cos ω x f δ x d x ,
where
f δ x = 1 Γ k θ k x k 1 e x θ
is the probability density function of the Gamma distribution, and the characteristic function ϕ ( ω ) of the “Gamma” distribution is described by the following equation [67]:
ϕ ω = E e i ω δ = ( 1 i θ ω ) k ,
where, in the analyzed case, the real part of this function is important. Therefore,
E cos ω δ = ϕ ω = 1 i θ ω k ,
where [68]
1 i θ ω = R e i α ,
R = 1 + θ 2 ω 2 ,
α = arctan θ ω ,
1 i θ ω k = R k e i k α ,
1 i θ ω k = 1 + θ 2 ω 2 k 2 cos k arctan θ ω .
Hence, finally,
σ y 2 = A 2 1 1 + θ 2 ω s , k 2 k 2 cos k arctan θ ω s , k .

References

  1. Agarwal, S.; Sharma, S.; Rahman, M.H.; Vranckx, S.; Maiheu, B.; Blyth, L.; Janssen, S.; Gargava, P.; Shukla, V.K.; Batra, S.; et al. Air quality forecasting using artificial neural networks with real time dynamic error correction in highly polluted regions. Sci. Total Environ. 2020, 735, 139454. [Google Scholar] [CrossRef] [PubMed]
  2. Volosnikov, A.S. Measurement System Based on Nonrecursive Filters with the Optimal Correction of the Dynamic Measurement Error. Meas. Tech. 2023, 65, 720–728. [Google Scholar] [CrossRef]
  3. Roj, J. Estimation of the artificial neural network uncertainty used for measurand reconstruction in a sampling transducer. IET Sci. Meas. Technol. 2014, 8, 23–29. [Google Scholar] [CrossRef]
  4. Mallat, S. A Wavelet Tour of Signal Processing, 3rd ed.; Academic Press: Cambridge, MA, USA, 2008. [Google Scholar]
  5. Addison, P.S. The Illustrated Wavelet Transform Handbook: Introductory Theory and Applications in Science, Engineering, Medicine and Finance, 2nd ed.; CRC Press: Boca Raton, FL, USA, 2017. [Google Scholar]
  6. Akujuobi, C.M. Wavelets and Wavelet Transform Systems and Their Applications; Springer: Berlin/Heidelberg, Germany, 2022. [Google Scholar]
  7. Durak, L.; Arikan, O. Short-time Fourier transform: Two fundamental properties and an optimal implementation. IEEE Trans. Signal Process. 2003, 51, 1231–1242. [Google Scholar] [CrossRef]
  8. Alegria, F. Using digital methods in active power measurement. Acta IMEKO 2023, 12, 1–8. [Google Scholar] [CrossRef]
  9. Pandey, S. Analog Multiplier Based Single Phase Power Measurement. J. Electr. Electron. Syst. 2016, 5, 2332-0796. [Google Scholar] [CrossRef]
  10. Unser, M.; Aldroubi, A. A review of wavelets in biomedical applications. Proc. IEEE 1996, 84, 626–638. [Google Scholar] [CrossRef]
  11. Hasan, O. Automatic detection of epileptic seizures in EEG using discrete wavelet transform and approximate entropy. Expert Syst. Appl. 2009, 36, 2027–2036. [Google Scholar] [CrossRef]
  12. Yan, R.; Gao, R.X.; Chen, X. Wavelets for fault diagnosis of rotary machines: A review with applications. Signal Process. 2014, 96, 1–15. [Google Scholar] [CrossRef]
  13. Siddique, M.F.; Ahmad, Z.; Ullah, N.; Kim, J. A Hybrid Deep Learning Approach: Integrating Short-Time Fourier Transform and Continuous Wavelet Transform for Improved Pipeline Leak Detection. Sensors 2023, 23, 8079. [Google Scholar] [CrossRef]
  14. Liu, Z.; Zhao, Z.; Huang, G.; Wang, F.; Wang, P.; Liang, J. Power Grid Faults Diagnosis Based on Improved Synchrosqueezing Wavelet Transform and ConvNeXt-v2 Network. Electronics 2025, 14, 388. [Google Scholar] [CrossRef]
  15. Altaie, A.S.; Abderrahim, M.; Alkhazraji, A.A. Transmission Line Fault Classification Based on the Combination of Scaled Wavelet Scalograms and CNNs Using a One-Side Sensor for Data Collection. Sensors 2024, 24, 2124. [Google Scholar] [CrossRef] [PubMed]
  16. Yan, S.; Gu, Z.; Park, J.H.; Xie, X.; Sun, W. Distributed Cooperative Voltage Control of Networked Islanded Microgrid via Proportional-Integral Observer. IEEE Trans. Smart Grid 2024, 15, 5981–5991. [Google Scholar] [CrossRef]
  17. STMicroelectronics. Application Note AN1636; STMicroelectronics: Geneva, Switzerland, 2003; Available online: https://www.st.com/resource/en/application_note/an1636-understanding-and-minimising-adc-conversion-errors-stmicroelectronics.pdf (accessed on 30 May 2025).
  18. Arpaia, P.; Baccigalupi, C.; Martino, M. Metrological characterization of high-performance delta-sigma ADCs. In Proceedings of the 2018 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Houston, TX, USA, 14–17 May 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 1–6. [Google Scholar] [CrossRef]
  19. Topór-Kaminski, T.; Jakubiec, J. Uncertainty modelling method of data series processing algorithms. In Proceedings of the 10th International Symposium on Development in Digital Measuring Instrumentation and 3rd Workshop on ADC Modelling and Testing, IMEKO, Naples, Italy, 17–18 September 1998; Volume 2, pp. 631–636. [Google Scholar]
  20. Baker, B.C. Optimize Your SAR ADC Design; Texas Instruments Inc.: Dallas, TX, USA, 2019. [Google Scholar]
  21. Jakubiec, J. Błędy i Niepewności Danych w Systemie Pomiarowo-Sterującym; Wydawnictwo Politechniki Śląskiej: Gliwice, Poland, 2010. (In Polish) [Google Scholar]
  22. Wymysło, M. Badanie związków między błędami opóźnień a innymi błędami w systemie pomiarowo-sterującym w oparciu o definicję współczynnika korelacji. Przegląd Elektrotechniczny 2016, 92, 217–220. (In Polish) [Google Scholar] [CrossRef]
  23. Wymysło, M. Współbieżna realizacja zadań programowych jako przyczyna powstawania opóźnień w systemie pomiarowo-sterującym. Zesz. Nauk. Wydział Elektrotechniki Autom. Politech. Gdańskiej 2016, 49, 129–132. (In Polish) [Google Scholar]
  24. Wymysło, M.; Jakubiec, J. Przedziałowa postać wyniku pomiaru jako podstawa wyrażania niedokładności w systemach pomiarowo-sterujących. Zesz. Nauk. WydziałU Elektrotechniki Autom. Politech. Gdańskiej 2018, 59, 73–78. (In Polish) [Google Scholar] [CrossRef]
  25. Zakharov, I.P.; Vodotyka, S.V.; Shevchenko, E.N. Methods, Models, and Budgets for Estimation of Measurement Uncertainty During Calibration. Meas. Tech. 2011, 54, 387–399. [Google Scholar] [CrossRef]
  26. Rovera, G.D.; Siccardi, M.; Römisch, S.; Abgrall, M. Time Delay Measurements: Estimation of the Error Budget. Metrologia 2019, 56, 035004. [Google Scholar] [CrossRef]
  27. Huang, Z.G.; Qiao, C.J.; Ma, C.; Zhao, S. The Analysis and Correction of Time-Delay in the Precise Acoustic Measurement System. Appl. Mech. Mater. 2013, 333–335, 236–242. [Google Scholar] [CrossRef]
  28. Choi, M.; Choi, J.; Chung, W.K. State estimation with delayed measurements incorporating time-delay uncertainty. IET Control Theory Appl. 2012, 6, 2351–2361. [Google Scholar] [CrossRef]
  29. Tarasov, V.N. Mathematical Model of Delay Based on a System with Gamma Distribution. Phys. Wave Process. Radio Syst. 2021, 24, 62–67. [Google Scholar] [CrossRef]
  30. Joint Committee for Guides in Metrology. Evaluation of Measurement Data—Guide to the Expression of Uncertainty in Measurement; JCGM: Sèvres, France, 2008; Available online: https://www.bipm.org/documents/20126/2071204/JCGM_100_2008_E.pdf (accessed on 30 May 2025).
  31. Laplante, P.A. The certainty of uncertainty in real-time systems. IEEE Instrum. Meas. Mag. 2004, 7, 44–50. [Google Scholar] [CrossRef]
  32. Bandyszak, T.; Weyer, T.; Daun, M. Uncertainty Theories for Real-Time Systems. In Handbook of Real-Time Computing; Tian, Y., Levy, D.C., Eds.; Springer Nature: Berlin/Heidelberg, Germany, 2022; pp. 99–132. [Google Scholar]
  33. Joint Committee for Guides in Metrology. Evaluation of Measurement Data—Propagation of Distributions Using a Monte Carlo Method; JCGM: Sèvres, France, 2008; Available online: https://www.bipm.org/documents/20126/2071204/JCGM_101_2008_E.pdf (accessed on 30 May 2025).
  34. Janssen, H. Monte-Carlo based uncertainty analysis: Sampling efficiency and sampling convergence. Reliab. Eng. Syst. Saf. 2013, 109, 123–132. [Google Scholar] [CrossRef]
  35. Saleh, R.; Wilton, S.; Mirabbasi, S.; Hu, A.; Greenstreet, M.; Lemieux, G.; Pande, P.P.; Grecu, C.; Ivanov, A. System-on-chip. Proc. IEEE 2006, 94, 1050–1069. [Google Scholar] [CrossRef]
  36. Renesas Electronics Corporation. Application Note AN-815—Understanding Jitter Units; Renesas Electronics Corporation: Tokyo, Japan, 2020; Available online: https://www.renesas.com/en/document/apn/815-understanding-jitter-units (accessed on 30 May 2025).
  37. Reay, D.S. Digital Signal Processing Using the ARM Cortex M4; John Wiley & Sons: Hoboken, NJ, USA, 2015. [Google Scholar]
  38. Jakubiec, J.; Roj, J. Error Analysis of Analytical and Neural Real-Time Reconstruction of Analog Signals; Wydawnictwo Politechniki Śląskiej: Gliwice, Poland, 2024. [Google Scholar] [CrossRef]
  39. Oppenheim, A.V.; Willsky, A.S.; Nawab, S.H. Signals & Systems, 2nd ed.; Pearson: London, UK, 2013. [Google Scholar]
  40. Ruhm, K.H. Deterministic, Nondeterministic Signals; Institute for Dynamic Systems and Control: Zurich, Switzerland, 2008. [Google Scholar]
  41. Kampik, M.; Roj, J.; Dróżdż, L. Error Model of a Measurement Chain Containing the Discrete Wavelet Transform Algorithm. Appl. Sci. 2024, 14, 3461. [Google Scholar] [CrossRef]
  42. Dróżdż, L.; Roj, J. Origin and properties of own error signals of the discrete wavelet transform algorithms. Int. J. Electron. Telecommun. 2024, 70, 643–648. [Google Scholar] [CrossRef]
  43. Kampik, M.; Roj, J.; Dróżdż, L. Estimation of the resultant expanded uncertainty of the output quantities of the measurement chain using the discrete wavelet transform algorithm. Appl. Sci. 2024, 14, 3691. [Google Scholar] [CrossRef]
  44. Horalek, V. Analysis of basic probability distributions, their properties and use in determining type B evaluation of measurement uncertainties. Measurement 2013, 46, 16–23. [Google Scholar] [CrossRef]
  45. Grimmett, G.; Stirzaker, D. Probability and Random Processes, 4th ed.; Oxford University Press: Oxford, UK, 2020. [Google Scholar]
  46. Kuo, H.H. White Noise Distribution Theory; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar] [CrossRef]
  47. Oppenheim, A.V.; Schafer, R.W. Discrete-Time Signal Processing, 3rd ed.; Pearson: London, UK, 2009. [Google Scholar]
  48. Proakis, J.G.; Manolakis, D.G. Digital Signal Processing: Principles, Algorithms and Applications, 5th ed.; Pearson: London, UK, 2021. [Google Scholar]
  49. Jakubiec, J.; Konopka, K. The error based model of a single measurement result in uncertainty calculation of the mean value of series. In Proceedings of the Problems and Progress in Metrology: PPM’15, Gliwice, Poland, 7–10 June 2015; Volume 20, pp. 75–78. [Google Scholar]
  50. Dróżdż, L. Time Related Error Parameters Estimation Example on GitHub. 2025. Available online: https://github.com/Kuszki/Octave-Uncertainty-TREU-Example (accessed on 30 May 2025).
  51. Ahmad, K.A. Wavelet Packets and Their Statistical Applications; Springer: Singapore, 2018. [Google Scholar]
  52. Averbuch, A.Z.; Neittaanmäki, P.; Zheludev, V.A. Spline and Spline Wavelet Methods with Applications to Signal and Image Processing; Springer: Berlin/Heidelberg, Germany, 2019; Volume 3. [Google Scholar]
  53. Wang, J. On Spline Wavelets. In Wavelets and Splines; Chen, G., Lai, M.-J., Eds.; Nashboro Press: Des Peres, MO, USA, 2006; pp. 456–483. [Google Scholar]
  54. ARM Limited. CMSIS-DSP—Embedded Compute library for Cortex-M and Cortex-A. 2024. Available online: https://arm-software.github.io/CMSIS-DSP (accessed on 30 May 2025).
  55. STMicroelectronics. Datasheet DS10314; STMicroelectronics: Geneva, Switzerland, 2017; Available online: https://www.st.com/resource/en/datasheet/stm32f411ce.pdf (accessed on 30 May 2025).
  56. Atmel. ATmega32/L Datasheet; Atmel: San Jose, CA, USA, 2011; Available online: https://ww1.microchip.com/downloads/en/DeviceDoc/doc2503.pdf (accessed on 30 May 2025).
  57. Kampik, M.; Roj, J.; Dróżdż, L. A Method for Estimating the Resultant Expanded Uncertainty Value Based on Interval Arithmetic. Appl. Sci. 2024, 14, 7334. [Google Scholar] [CrossRef]
  58. Koliander, G.; El-Laham, Y.; Djurić, P.M.; Hlawatsch, F. Fusion of probability density functions. Proc. IEEE 2022, 110, 404–453. [Google Scholar] [CrossRef]
  59. Zhang, Z.; Wang, J.; Jiang, C.; Huang, Z.L. A new uncertainty propagation method considering multimodal probability density functions. Struct. Multidiscip. Optim. 2019, 60, 1983–1999. [Google Scholar] [CrossRef]
  60. Dieck, R.H. Measurement Uncertainty: Methods and Applications; ISA: Singapore, 2017. [Google Scholar]
  61. Yang, L.; Guo, Y. Combining pre-and post-model information in the uncertainty quantification of non-deterministic models using an extended Bayesian melding approach. Inf. Sci. 2019, 502, 146–163. [Google Scholar] [CrossRef]
  62. Urbanski, M.K.; Wąsowski, J. Fuzzy approach to the theory of measurement inexactness. Measurement 2003, 34, 67–74. [Google Scholar] [CrossRef]
  63. Dróżdż, L. Reductive Interval Arithmetic Method Application Example on GitHub. 2024. Available online: https://github.com/Kuszki/Octave-Uncertainty-RIA-Example (accessed on 30 May 2025).
  64. Roj, J.; Dróżdż, L. Propagation of Random Errors by the Discrete Wavelet Transform Algorithm. Electronics 2021, 10, 764. [Google Scholar] [CrossRef]
  65. Eaton, J.W. GNU Octave Official Website. 2024. Available online: https://octave.org (accessed on 30 May 2025).
  66. Osgood, B. The Fourier Transform and Its Applications; Stanford University: Stanford, CA, USA, 2007. [Google Scholar]
  67. Tassaddiq, A.; Qadir, A. Fourier Transform and Distributional Representation of the Generalized Gamma Function with Some Applications. Appl. Math. Comput. 2011, 218, 1084–1088. [Google Scholar] [CrossRef]
  68. Chaudhry, M.A.; Qadir, A. Fourier Transform and Distributional Representation of the Gamma Function Leading to Some New Identities. Int. J. Math. Math. Sci. 2004, 2004, 2091–2096. [Google Scholar] [CrossRef]
Figure 1. The phenomenon of delays during analog-to-digital conversion. The red line indicates the start of the measurement t s in the ideal situation, the blue lines indicate the sampling time for a constant sampling period T s , and the rising edges indicate the actual sampling time.
Figure 1. The phenomenon of delays during analog-to-digital conversion. The red line indicates the start of the measurement t s in the ideal situation, the blue lines indicate the sampling time for a constant sampling period T s , and the rising edges indicate the actual sampling time.
Energies 18 03524 g001
Figure 2. Experimental results in the case of a delay in the initiation of the measurement process.
Figure 2. Experimental results in the case of a delay in the initiation of the measurement process.
Energies 18 03524 g002
Figure 3. Experimental results in the case of sampling period fluctuations.
Figure 3. Experimental results in the case of sampling period fluctuations.
Energies 18 03524 g003
Figure 4. Experimental results in the case of delayed measurement process initiation and sampling period fluctuations.
Figure 4. Experimental results in the case of delayed measurement process initiation and sampling period fluctuations.
Energies 18 03524 g004
Figure 5. Block diagram of the application of the proposed method for determining the variance values of delay-related error signals.
Figure 5. Block diagram of the application of the proposed method for determining the variance values of delay-related error signals.
Energies 18 03524 g005
Table 1. Summary of selected experimental results using M = 100,000 experiment iterations and N = 1024 samples of the quantity x ( i ) in the case using the Monte Carlo method.
Table 1. Summary of selected experimental results using M = 100,000 experiment iterations and N = 1024 samples of the quantity x ( i ) in the case using the Monte Carlo method.
Experiment ParametersError (21),Compute Time, s
Δ t s Δ t i δ Equation (17) Monte Carlo
U ( 7.5 × 10 5   s , 1.7 × 10 4   s ) 0   s 0.081.9 × 10−510
N ( 1.1 × 10 4   s , 4.6 × 10 10   s 2 ) 0   s 0.171.8 × 10−510
G ( 1.75 , 8.7 × 10 5   s ) 0   s 0.281.8 × 10−510
0   s U ( 8.7 × 10 5   s , 8.7 × 10 5   s ) −0.011.9 × 10−511
0   s N ( 0.0   s , 5.1 × 10 9   s 2 ) 0.011.7 × 10−512
G ( 1.75 , 3.7 × 10 5   s ) N ( 0.0   s , 6.6 × 10 9   s 2 ) 0.083.4 × 10−513
G ( 1.75 , 3.7 × 10 5   s ) U ( 1.7 × 10 4   s , 1.7 × 10 4   s ) −0.073.5 × 10−511
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kampik, M.; Dróżdż, Ł.; Roj, J. A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids. Energies 2025, 18, 3524. https://doi.org/10.3390/en18133524

AMA Style

Kampik M, Dróżdż Ł, Roj J. A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids. Energies. 2025; 18(13):3524. https://doi.org/10.3390/en18133524

Chicago/Turabian Style

Kampik, Marian, Łukasz Dróżdż, and Jerzy Roj. 2025. "A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids" Energies 18, no. 13: 3524. https://doi.org/10.3390/en18133524

APA Style

Kampik, M., Dróżdż, Ł., & Roj, J. (2025). A Method for Modeling Time Delay-Related Measurement Errors, Applicable in Power and Energy Monitoring and in Fault Detection Algorithms for Energy Grids. Energies, 18(13), 3524. https://doi.org/10.3390/en18133524

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