1. Introduction
Power electronic (PE) systems are extensively used in key applications like renewable energy integration, where control design is crucial to meeting performance goals [
1]. Traditional PE controller design typically relies on iterative trial-and-error processes [
2] involving repeated modeling, parameter tuning, and experimental validation. This approach often suffers from long development cycles, high resource consumption, and a strong dependence on expert experience, making it increasingly incompatible with the modern demand for low-cost and highly efficient optimization. Thus, an effective CDA tool is urgently needed to meet two crucial requirements: (1) the capacity to converge toward the global optimum while quickly exploring enormous design spaces (DSs); (2) the capacity to guarantee system resilience, stability, and transient performance under dynamic operating circumstances and manufacturing tolerances.
In power electronic inverter systems, grid-following inverters (GFL) and grid-forming inverters (GFM) are the two primary types widely adopted [
3]. GFL inverters regulate the AC side current by tracking the phase angle of the grid voltage through a phase-locked loop (PLL) [
4]. It enables distortion-free control and ripple-free signal acquisition from PWM-modulated current signals with relative ease. In contrast, GFM inverters directly control the voltage on the AC side and emulate a voltage source by establishing synchronization via frequency droop mechanisms [
5]. Both distortion-free, ripple-free signal acquisition and aliasing-free control present difficulties for voltage feedback control in GFM. The study in [
6] highlights that although optimizing the sampling instants of capacitor voltage can improve dynamic performance to some extent, voltage feedback signals still suffer from distortion, especially under high-
Q filter conditions. In order to eliminate spectral aliasing, reference [
7] suggests a compromise solution through the use of filters with lower resonance frequencies. Although this method successfully reduces aliasing, it introduces new stability issues for the system. Therefore, in-depth research on the automated design of voltage feedback control systems for GFM is of great significance.
For complex control systems, parameter optimization is necessary to guarantee stable and efficient operation in real-world conditions [
8]. Effective optimization significantly enhances system stability, dynamic response speed and control accuracy while reducing energy consumption and improving system robustness [
9]. Traditional controller parameter tuning methods rely on mathematical modeling of the system. Circuit-level simulation tools such as SPICE and their accelerated variants are often employed for high-fidelity transient analysis, but they are computationally intensive and unsuitable for real-time tuning in complex systems. To overcome simulation bottlenecks, simplified behavior-based models and surrogate modeling techniques are sometimes used, though at the expense of accuracy. Furthermore, real-time simulators are becoming the standard validation tool due to the significant difficulties in simulating complex systems for extended periods of time in an offline setting [
10]. Recent studies have addressed aliasing phenomena in HIL simulations caused by inaccurate duty-cycle detection in high-frequency converters. For example, the work in [
11] proposed an improved oversampling strategy to prevent aliasing oscillations and enhance simulation accuracy without increasing model complexity. However, such studies focus on signal-level aliasing within digital HIL simulation models, rather than on voltage feedback distortion in power hardware-in-the-loop (PHIL) systems. In contrast, the present study investigates aliasing and ripple effects arising from the physical sampling and reconstruction process in voltage-feedback PHIL environments, where real switching actions and hardware delays are directly involved. To enable real-time parameter adjustment and ensure safe high-voltage operation, a PHIL experimental platform was developed for this study.
However, the automated controller design for this system presents two significant obstacles. On the one hand, constructing an appropriate objective function is essential for optimizing system performance. Integral-based performance indices, including ITSE and ITAE, are widely used as objective functions in current studies [
12]. However, these approaches often lead to severe overshoot during the optimization process. Although some research [
13] has attempted to mitigate this issue by incorporating an overshoot term into the objective function, significant ripple components in the step response signal hinder the accurate identification of overshoot and settling time. To address this problem, a dynamic fidelity-based ripple-free output signal acquisition scheme is proposed to ensure the accurate extraction of step response metrics, which will be detailed in
Section 4. On the other hand, since the objective function incorporates step response metrics, time-domain evaluation must be conducted using PHIL. However, this process introduces aliasing distortion, which negatively impacts the accurate extraction of step response indicators. To address this issue, this study proposes a low-latency, distortion-free control scheme, which will be detailed in
Section 3. The two proposed solutions ensure reliable extraction of step response features for constructing the objective function, thereby enhancing the effectiveness of controller parameter optimization.
In digital control systems, an inherent time delay exists due to analog-to-digital (AD) conversion, digital processor computation, and pulse-width modulation (PWM) generation [
14]. Such delays introduce phase lag [
15] into the converter’s control loop, thereby reducing the phase margin (PM) and control bandwidth, ultimately degrading overall control performance [
16,
17]. Traditional solutions to this delay, caused by sampling and computation, are based on compensation algorithms such as state observers [
18,
19], predictors based on inverter models [
20], and modified PWM techniques [
21]. In recent years, thanks to significant advancements in DSP and microcontroller computing power, the time required for AD conversion and computation has been greatly reduced. As an alternative solution, the control delay can be further mitigated by shifting the sampling instant of the state variables closer to the duty-cycle update time [
22]. In this study, this sampling instant adjustment strategy is adopted to effectively reduce the overall computation delay and improve the transient response of the inverter system.
The main contributions of this paper are summarized as follows:
- (1)
A scaled-down inverter hardware is developed for time-domain response solving and addresses the conflicting demands of accuracy, computational efficiency, and modeling cost encountered in simulation-based methods.
- (2)
The sideband aliasing regularity of sampling the capacitor voltage and the mechanism of harmonic cancellation are analyzed. Aliasing-free sampling is achieved via 90° phase-shifted anti-aliasing filters in conjunction with synchronous sampling, while the decoupled sampling strategy ensures high dynamic performance. It addresses the aliasing distortion problem in conventional synchronous sampling schemes.
- (3)
Four acquisition filtering schemes are compared with FFT filtering, which offers the highest dynamic fidelity but exhibits severe distortions near the window boundaries. Oversampling combined with the MAF method achieves dynamics closest to the FFT benchmark while avoiding such distortions. This scheme suppresses high-frequency ripple while preserving dynamic fidelity, enabling accurate extraction of step response metrics.
- (4)
Given that the objective function incorporates step response metrics, the above schemes are integrated to enable efficient and accurate time-domain response evaluation on the PHIL testbed, providing a reliable basis for controller parameter optimization experiments.
This paper adopts a six-part structure.
Section 2 is a review of CDA methods;
Section 3 introduces the low-latency, distortion-free control scheme;
Section 4 introduces the dynamic fidelity-based ripple-free output signal acquisition scheme;
Section 5 experimentally verifies the effectiveness of the CDA method; finally,
Section 6 summarizes the entire paper.
4. Dynamic Fidelity-Based Ripple-Free Output Signal Acquisition Scheme
When the resonance frequency of the LC filter is relatively high, the ripple amplitude in the system’s output signal increases significantly. As a result, the step response curve obtained through synchronous rotating frame transformation exhibits significant ripple, making it difficult to accurately extract key performance indicators such as overshoot and settling time. It will affect the construction of the objective function of the parameter optimization algorithm and reduce the effectiveness of parameter optimization. To address this issue, a ripple-free output signal acquisition scheme must be designed to meet the following constraints. There is no aliasing distortion in the feedback signal, thorough suppression of ripple, and the dynamic characteristics are faithfully preserved.
In the field of signal processing, filters are generally categorized as analog or digital. Analog filters operate directly on continuous-time signals, whereas digital filters require the input signal to be converted into digital format using an analog-to-digital converter (ADC) prior to processing. After digital filtering, the signal is typically converted back to analog form via a digital-to-analog converter (DAC) [
45]. To avoid aliasing distortion in digital filtering, oversampling is required before filtering. In this study, an 8× oversampling rate is adopted to ensure alias-free signal acquisition. Additionally, selecting a sampling phase with reduced harmonic components further enhances the filtering performance. For analog filtering, downsampling must be performed after filtering to ensure complete suppression of ripple. Similarly, an appropriate sampling phase with low harmonic content is selected to optimize the filtering effect. Through these measures, both digital and analog filtering approaches are capable of generating a ripple-free and distortion-free step reference waveform, which serves as a reliable foundation for subsequent controller parameter optimization.
In this study, three digital filtering methods and two analog filters were selected and designed to suppress ripple. The digital filtering approaches include time-domain moving average filtering, frequency-domain windowed FFT filtering, and the phase-shifting synchronous sampling technique proposed in the previous text. For analog filtering, Butterworth and Gaussian filters were designed based on attenuation characteristics of the sideband signal of the moving average filter. Then, by comparing the ripple suppression capability, cost, and dynamic response characteristics, the filter method with the best overall performance is ultimately selected as the final ripple filtering solution.
The FFT analysis is performed using 8000 sampling points within a 0–0.01 s acquisition window. An oversampling factor of 8× or 16× is applied for the moving-average and other digital filtering methods. It should be noted that FFT-based filtering is used solely as an offline benchmark for evaluating dynamic-response fidelity and is not intended for online implementation. Other digital filtering approaches are compared against the FFT results to identify which method best approximates the high-fidelity step response while remaining suitable for real-time application.
4.1. Moving Average Digital Filtering
The moving average filtering method is a widely used digital signal processing technique in data analysis. Its core principle is to replace each sample with the average of multiple samples within a defined window, thereby reducing the influence of random noise or high-frequency components on the signal. The mathematical expression of the moving average filter is given by:
where
is the filtered output value,
is the current sample of the input signal,
N is the window size, and
k denotes the position index of the current window. The moving average filter (MAF) achieves varying degrees of noise reduction while preserving the overall signal trend by adjusting the window size. It features a simple algorithmic structure and high computational efficiency. In this study, an 8× oversampling rate is employed; accordingly, the sliding window size is set to 8. Furthermore, when the sampling phase is set to
, the amplitudes of the harmonic components are significantly reduced. As shown in
Figure 12, the upper group of three curves represents the output signals under three different conditions: without filtering, with MAF filtering at a sampling phase of
, and with MAF filtering at a sampling phase of
.
4.2. FFT Digital Filtering
FFT digital filtering is a frequency-domain filtering technique that involves transforming the signal from the time domain to the frequency domain, applying filtering based on a specified cutoff frequency, and then converting the signal back to the time domain. This approach enables efficient signal filtering through frequency-domain operations and is widely used in the field of signal processing.
As illustrated in
Figure 13, the system exhibits a smooth and distortion-free step response in the middle of the period, whereas distortions are evident at the initial and final stages.
4.3. Phase-Shift Synchronous Sampling Digital Filtering
Based on the previous discussions, an effective and straightforward approach to achieve aliasing-free and distortion-free ripple suppression is to apply a phase-shifting filter before sampling, which introduces a phase shift of
to the sideband harmonic components, followed by synchronous sampling. This method ensures distortion-free low-frequency components and suppresses the introduction of high-frequency ripple. The detailed formulas and underlying principles were introduced earlier. As illustrated in
Figure 14, the proposed method yields a distortion-free step response in the system.
4.4. Butterworth and Gaussian Analog Filtering
The voltage feedback system in the designed LC grid-forming inverter operates with both the switching frequency and the sampling frequency set to 20 kHz. The step signal is obtained by transforming the three-phase output voltages into the synchronous rotating reference frame (dq transformation). The dq-frame step response is obtained after filtering, where filtering has effectively removed the switching-frequency components and harmonics. Therefore, these components have negligible effect on the dq-frame step response. However, the presence of sideband components significantly affects signal acquisition quality. To address this, analog filters can be designed to match the sideband attenuation capability of the moving average filter. Specifically, the moving average filter attenuates the second-order harmonic at 19.95 kHz from
dB to
dB, and the third-order harmonic at 19.90 kHz from
dB to
dB. Based on this sideband suppression profile, Butterworth and Gaussian analog filters were designed accordingly. The sideband attenuation performance near 20 kHz for the moving average filter and the designed analog filters is shown in
Figure 15.
The Butterworth filter is a classical Infinite Impulse Response (IIR) filter commonly used in applications where ripple in the passband and stopband is unacceptable. Its primary advantage lies in its maximally flat magnitude response across all frequency ranges, characterized by a gain of unity in the passband and zero in the stopband. It has a roll-off of −20 dB per decade per pole, and its phase response becomes more nonlinear as the filter order rises [
46]. The transfer function corresponding to the Butterworth filter is defined as [
45]:
where
n is the order of the filter. The Gaussian analog filter, based on the Gaussian function, is characterized by a smooth transition band in the frequency domain and a time-domain response free from ringing effects. In this study, both Butterworth and Gaussian low-pass analog filters were designed with three different orders: 2nd, 4th, and 6th.
Figure 16 provides the amplitude and phase response curves for the implemented Butterworth and Gaussian filters.
Given that the sampling frequency is 20 kHz, the decimation rate after analog filtering is also configured to 20 kHz. Furthermore, setting the sampling phase to
significantly attenuates the harmonic content in the system. As shown in
Figure 17,
Figure 18 and
Figure 19, this results in a ripple-free step response.
4.5. Comparison of Filtering Effects
Figure 20 compares the filtering performance of five methods applied to the voltage-feedback system. Since FFT–IFFT processing introduces inherent delays and boundary distortions, it is used solely as an offline benchmark, rather than as an option for online filtering. The other digital filtering methods are assessed based on how closely their dynamic responses approximate this high-fidelity FFT benchmark while remaining feasible for real-time implementation. After comprehensive comparison, the MAF method is selected as the ripple-suppression scheme because it achieves dynamics closest to the FFT benchmark, avoids boundary distortions, and offers good cost-performance, simplicity, and practicality. This enables accurate extraction of step-response metrics for objective-function construction and supports subsequent controller-parameter optimization.