Abstract
Time delay is a critical and unavoidable problem in real-time hybrid simulation. An accurate and effective compensation method for time delay is necessary for the safety of real-time hybrid simulation and the reliability of test results. Generally, a model-based compensation method can be adopted, which is derived from the identified transfer function by assuming the latter can accurately represent the real plant. However, there must be some differences between the transfer function and the real plant. To facilitate the development of real-time hybrid simulation, we proposed a two-stage feedforward compensation method considering the error between the transfer function identified and the real plant. The compensation strategy proposed in this study was not only based on the transfer function but also introduced an error model as a second-stage compensation into a compensator to realize the synchronization of command and measurement. To verify the efficiency of the proposed method, comparisons in time domain and frequency domain with the feedforward compensator in a model-based feedforward–feedback control method were carried out. Compared with the feedforward compensator, the two-stage method achieved better tracking performance, especially in the high-frequency bandwidth. The test results verified that for a band-limited white noise of 0–30 Hz, the phase lag of the actuation system can be limited to ±5°. Finally, the two-stage method was applied to a real-time hybrid simulation of a two-story frame to illustrate its compensation effect on time delay.
Keywords
Highlights
This article proposed a two-stage time-delay compensation method for real-time hybrid simulation (RTHS) by introducing the error model as the second-stage compensation into the model-based feedforward (FF) compensation method proposed by Phillips et al. (2012a, 2012b). Compared with the FF compensator, the two-stage compensation method achieved a better tracking performance, especially at the high-frequency bandwidth. The performance of the two-stage method was confirmed by experimental results in time domain and frequency domain to indicate the improvement of the compensation effect. The proposed method is applied to an RTHS for a two-story frame to verify its efficiency of time-delay compensation.
1. Introduction
Real-time hybrid simulation (RTHS) is a powerful experimental method for investigating the behaviors of structures under dynamic loads. In RTHS, the component with clear constitutive relationships is modeled as a numerical substructure (NS), and the other component, which responds to the loading rate and/or is difficult to simulate, is treated as a physical substructure (PS). The synchronization of the interface(s) between the NS and PS is realized via loading devices and sensors. Consequently, the displacements calculated by the NS are applied to the PS by loading devices, and the feedback forces of the PS are fed back to the NS through sensors for the next calculation time step.
In recent years, a significant effort has been focused on RTHS test methods. Chen et al. (2009) investigated the stability of, and presented the implementation of, the Chen and Ricles integration algorithm in RTHS. Shao et al. (2010) revealed an RTHS method with PSs excited by shaking tables and auxiliary actuators. Schellenberg et al. (2013) investigated the shaking table hybrid simulation method for testing midlevel seismic isolation systems. For educational and research purpose, an RTHS to investigate the dynamic behavior of a tuned liquid damper (TLD) structure system is implemented with a shake table (Ashasi-Sorkhabi et al., 2015; Malekghasemi et al., 2015). Wang et al. (2016) researched the RTHS of multistory structures installed with the TLD. Zhang et al. (2017) investigated the performance of buildings with interstory isolation by shaking table RTHS techniques.
To achieve a successful RTHS, the synchronization of the interface(s) must be guaranteed in real time. Therefore, the displacement calculated must be accurately applied to the PS in real time. At the same time, the reaction response must be immediately fed back to the NS for the next calculation time step. This synchronization not only imposes a high requirement on loading devices but also requires a compensation algorithm to compensate for the displacement calculated. Without effective compensation, time delays would cause inaccurate testing results and even system instability (Horiuchi et al., 1999).
Generally, time-delay compensation methods can be broadly divided into three categories: error-based, record-based, and model-based methods. First, the so-called error-based method compensates the command by comparing the target with the measured response to achieve synchronization on the interface(s) in RTHS. For instance, Darby et al. (2002) proposed an online delay estimation method to calculate the time delay. In the phase lead compensation (Zhao et al., 2003), velocity feedback compensation with phase adjustment is used to compensate the command signal. Chen and Ricles (2009) combined the inverse compensation method and the actuator control error as a secondary compensation to form a dual compensation scheme. Chen and Ricles (2010) developed an adaptive control law using an error tracking indicator to adapt a compensation parameter and conducted an RTHS test (Chen and Ricles, 2012) of a steel frame with a large-scale magneto-rheological damper. Furthermore, a novel integrated compensation method (Liu et al., 2013), which combined model-based and time-delay online estimation methods, was proposed. A new tracking error compensation strategy (Mirza Hessabi et al., 2016) adopting frequency domain–based error indicators was proposed. Combining the polynomial extrapolation (Horiuchi et al., 1999) and the inverse compensation method (Chen, 2007) with Darby’s online delay estimation method (Darby et al., 2002), Li et al. (2019a, 2019b) proposed two adaptive time delay compensation methods with experimental verification. However, the effectiveness of the error-based method is affected by noise and disturbance in the feedback signal. Moreover, this method adjusts the command when there is a difference between the command and the actual measured response, so it is still a delay regulation. It has good compensation performance for low-frequency components in the command signal, but it is not satisfactory for high-frequency components.
Second, the record-based compensation method tries to predict subsequent displacement according to historical records to compensate for time delays. A polynomial extrapolation method was proposed Horiuchi et al. (1999) to predict the actuator displacement. The efficiency of the extrapolation procedure was demonstrated through a series of real-time tests on models considered to be single-degree-of-freedom structures (Nakashima and Masaoka 1999). Horiuchi and Konno (2001) introduced a new method in which the acceleration was linearly predicted and used to calculate the displacement. Wallace et al. (2005) proposed an adaptive forward prediction compensation method to perform a multi-actuator RTHS. The adaptive time series compensator Chae et al. (2013) developed continuously updates the coefficients of the system transfer function during RTHS. The forward prediction adaptive polynomial-based algorithm was combined with the equivalent force control method to improve the accuracy and stability of RTHS (Zhou et al., 2017). To the authors’ knowledge, the effectiveness of record-based compensation methods depends largely on the prediction algorithm used. And it is impossible to predict the command perfectly, which is the main source of error in such methods.
Finally, in the model-based compensation methods, the transfer function model of a plant is constructed, and its inverse is used to compensate for time delays. Chen (2007) proposed a first-order actuator model in the z-domain and used its inverse model as a compensator. A model-based compensation strategy Carrion et al. (2007) was proposed, which considers the dynamics of the servo-hydraulic equipment in a wide frequency range. In this strategy, the feedforward (FF) controller was realized by inverting the transfer function in series with a low-pass filter to render the controller proper. Phillips et al. (2012a, 2012b) further improved this model-based compensation strategy by using displacement and its several high-order derivatives with respect to time to render the FF controller causal and proper. Phillips et al. (2014) extended this model-based compensation strategy to a multi-metric shaking table control strategy. Chen et al. (2015) further developed the model-based compensation method by applying an adaptive control scheme to the feedforward–feedback (FF–FB) controller. Hayati and Song (2016) proposed a discrete-time compensation method that allows the actuator to track inputs with higher frequency content. An infinite impulse response compensation technique (Stehman and Nakata 2016), which can handle the complex magnitude and phase characteristics caused by the control–structure interaction effect, was proposed. The extended Kalman filter–based adaptive compensator (Strano and Terzo, 2016), instead of the fixed-value parameters, was used to identify the model; the extended Kalman filter estimates the parameters continuously, thereby realizing a more versatile model-based approach. Fermandois Cornejo et al. (2018) proposed a model-based control method with a multi-axial RTHS framework. Therefore, as a general method, the model-based strategy can quickly reveal the dynamic characteristic of the prototype model and has been widely used in many fields (Fermandois Cornejo et al., 2018).
Previous studies shown that the major issue of the model-based compensation strategy lies in obtaining the inverse of a real plant. This inverse is then used to compensate for the target displacement. The compensated command is sent to the plant to achieve interface(s) synchronization. Therefore, the key is to determine the exact transfer function that reflects the plant’s characteristics. However, there must be some differences between the transfer function and the real plant. On the one hand, these differences are caused by the assumption that the nonlinear system is linear. On the other hand, the data obtained and used in the identification process have uncertain noise and disturbance, and the identification method itself will also cause errors.
To further improve the performance of the model-based compensation strategy for RTHS, a two-stage compensation strategy is proposed in this study. In this strategy, the inverse of a real plant is constructed more accurately by considering the error between the transfer function identified and the real plant. For the convenience of readers, this article is organized as follows. First, the theoretical derivation of the two-stage method is introduced. Second, an application of the two-stage method is introduced through an experimental procedure. Third, an evaluation of the two-stage method is carried out in the time and frequency domains. Finally, the two-stage method is applied to an RTHS to verify its efficiency.
2. Two-stage FF method
This section details the proposed process of the new two-stage method. For convenience, the identified transfer function is denoted as
Then, the following relationship is obtained
When the displacement command is compensated for only by the FF controller in the model-based FF–FB control method, the relationship between the input command and measured displacement is
Inserting equation (1) into (2) yields
Thus
Expanding equation (4)
According to equation (6),
After
Then, substituting equation (7) into (4) yields
After simplification
It is found that
Thus, the equality between the input command and output measurement is achieved
In this way, the output of the plant is consistent with the target displacement. The block diagram of the two-stage method is shown in Figure 1. Block diagram of two-stage compensate method.
The difference between the model identified and the real plant has previously not been considered in the general model-based compensation method. In the present study, the performance of the model-based FF compensator is further improved by considering this difference. The experimental results in Section 4 show that the compensation effect of the two-stage method is better than that of the model-based FF compensator without considering the model error,
3. Identification procedure of
To illustrate the identification process of
3.1. Experimental setup
The test facility was an MTS servo-hydraulic system (including a FlexTest 60 controller, 244.41s actuator (Figure 2), 340 L/min servo valve, and 600 L/min hydraulic power unit on 3000 psi). One can find more detailed information about the hydraulic servo system in the manuals provided by MTS company’s official Web site. SpeedGoat was used to calculate the compensated command and interact with the MTS controller in real time. SpeedGoat is a powerful real-time computing and processing machine, which is widely used in rapid control prototyping and hardware-in-the-loop simulation. One also can find details about SpeedGoat on its official Web site. MTS 244.41s actuator.
3.2. Identification of servo-hydraulic system model
In this section, the transfer function of the real plant (servo-hydraulic system) is identified to obtain the FF compensator. The frequency response of the servo-hydraulic plant (Figure 3) can be obtained by exciting the plant with a band-limited white noise (BLWN) of 0–50 Hz. For the frequency response (magnitude and phase) of the real plant, we used the “tfestimate” function in MATLAB to calculate it. For the identification of the system transfer function Frequency response of real plant and identified transfer function.
The identified transfer function,
Rewriting equation (12) into the time domain yields
3.3. Identification of
model
In this section, the identification process and method of Frequency response of transfer function 
It can be seen that the frequency response of
Take the lower envelope (lower bound) points of magnitude and the upper envelope (upper bound) points of phase, which are shown in Figure 5. The envelope points are obtained by calculating the extreme points of the data points once and then calculating the extreme points again of the first-order extreme points obtained. These second-order extreme points are the envelope points.

Lower envelope points of magnitude and upper envelope points of phase.
Fit the envelope points obtained by the curve fitting toolbox in MATLAB to get the fitting curve, which is shown in Figure 6. This fitting curve is regarded as the frequency response of

Fitting the frequency response of
After obtaining the frequency response of
4. Validation results and discussion
To verify the effect of the two-stage method proposed in this article, we compared it with the FF compensator in the model-based FF–FB method. The reasons for not considering the feedback in the model-based FF–FB actuator control are as follows. The two-stage method proposed in this article was developed based on the FF compensator in the model-based FF–FB method. It is more convincing to compare it with the FF compensator, directly. Fermandois Cornejo et al. (2018) mentioned that the linear quadratic Gaussian (LQG) regulator does not offer any reference tracking guarantee, and the FF compensator is the only instrument responsible for the reference tracking in the context of RTHS testing. The FF compensator proposed in this article can be additionally combined with the feedback loop such as that in the LQG method and reduce the tracking error. This concept is shown in Section 5.
4.1. Tracking performance in time domain
To prove the compensation effect of the two-stage algorithm proposed in this study, we first analyzed its effect in the time domain. A root mean square error (RMSE) was used to quantitatively analyze the effect of compensation delay. In addition, the synchronization plot was used to qualitatively evaluate the effects of the two methods. A total of eight conditions were tested, including BLWNs and chirp. In the following results, test cases denoted by “W” and “C” represent BLWN and chirp, respectively. The following numbers indicate the frequency bandwidth of the excitation. For example, W10 indicates that the excitation is 0–10 Hz BLWN.
The expression of the RMSE indicator is as follows
Root mean square error value of feedforward method and two-stage method (%).

Root mean square error values of feedforward and two-stage compensate methods.
The second evaluation indicator is the synchronization plot, which is a qualitative indicator. The synchronization plot for each case is shown in Figure 8. When the BLWN is lower than 10 Hz, the plot is essentially a straight line at an angle of 45°. In other words, there is not much difference in terms of effectiveness between the two methods for BLWNs lower than 10 Hz. For BLWNs above 10 Hz, the coverage areas drawn by the two-stage method are smaller than those drawn by the FF method. These results imply that the effectiveness of the two-stage method is better than that of the FF method when the excitations are above 10 Hz. Synchronization plots of experiment cases.
4.2. Tracking performance in frequency domain
In this section, we evaluate the effects of the two methods from the perspective of frequency domain. The magnitude and phase are shown in Figures 9 and 10, respectively. Magnitude comparison of feedforward and two-stage compensate methods. Phase comparison of feedforward and two-stage compensate methods.

In Figure 9, when the BLWNs are below 10 Hz, the magnitudes of the two methods are approximately one. For BLWNs above 10 Hz, the effect of the two-stage method is better than that of the FF method in terms of magnitude. For instance, for a BLWN of 0–30 Hz, the maximum magnitude response of the FF method is 1.22, whereas that of the two-stage method is 1.15.
In Figure 10, for each case, the phase lag compensated by the two-stage method is distinctly lower than that compensated by the FF method, especially in the high-frequency bandwidth. The phase responses compensated by the two-stage method in every condition are within
5. RTHS of two-story frame
5.1. Division of substructures
After verifying the advantages of the two-stage method proposed in this study, we applied the method to an RTHS of a double-layer frame to confirm its compensation effect on time delay. In the RTHS, the second layer of the frame was selected as the PS, and the bottom layer was the NS, as shown in Figure 11. Division of substructures in real-time hybrid simulation.
The equation of motion (EOM) of the overall structure is shown in equation (16)
The EOM of the entire structure is divided into the NS equation (19) and PS equation (22)
Equation (19) is transformed to obtain equations (20) and (21)
The PS equation is as follows
From the above analysis, the displacement at the bottom of the PS is the absolute displacement at the top of the NS, that is,
5.2. Test setup
In this RTHS, the PS was a steel frame, as shown in Figure 12. After the identification of the structure, the stiffness of the PS was obtained as Physical substructure.
In this RTHS, the CR integral algorithm (Chen and Ricles, 2008) was used to solve the NS. The strain at the bottom of the structure was measured by strain gauges, and the measured data were sent to the national instruments (NIs) real-time data acquisition (DAQ) system. The data between the controller of hydraulic servo system, SpeedGoat, and NI DAQ system were exchanged through the shared memory boards (SCRAMNet) and optical fibers.
The reaction force Block diagram of linear quadratic integral control method.
5.3. Analysis of test results
To verify the compensation performance of the two-stage method proposed in this study, the displacement command calculated by the NS and the measured displacement of the actuator were compared and analyzed.
The left figure in Figure 14 reveals the good overlap achieved between the calculated command and measured displacement. Moreover, it can be seen more clearly in the right figure that the synchronization plot is a 45° oblique line and that the time delay is compensated well. From a quantitative perspective, the RMSE value of the command and measured output was calculated to be 1.87%. The errors between the displacement command and measured output were substantially within ±0.2 mm. In summary, from the above analyses of the test results, it can be proven that the two-stage compensation method is an effective time delay compensation method. Compensated comparison for real-time hybrid simulation.
As the size of PS increases, the effect of time delay compensation might be affected. In the case of using relatively small PS, the impact on the loading system is relatively small. Although the original intention of RTHS is to investigate the physical part that cannot be accurately simulated, its response should be very concerned. To truly reproduce the structural response, RTHS requires the loading system to achieve near real-time loading and thus requires that its loading must not be close to or exceed the performance limit of the loading system (usually far below this limit). Please note that as another very important factor, because of the stability consideration of RTHS, it is still not possible to use a large proportion of the PS. And it is far beyond the scope of this article. Therefore, the effect of the PS–NS proportion on the time delay compensation is not addressed here.
For validation of the proposed method used in RTHS, the absolute displacement responses on top of the NS from the RTHS and the numerical simulation of the entire structure using the EOM were compared in Figure 15. It can be found that the results of the numerical simulation are in good agreement with the results of RTHS. However, there are still some differences between the two results, which are mainly caused by the following aspects. The PS is a flexible structure with installation errors, and its characteristics cannot be described completely by an EOM with reduced degree of freedoms. The feedback force signal of the PS using the NI DAQ system contained environmental noises, and with the system uncertainty, they together caused unavoidable disturbances in the control loop. Absolute displacement response at the top of numerical substructure.

The results of RTHS and numerical simulation further proved the performance of the time-delay compensation method proposed in this article. By comparing the results, there is a more thorough understanding for the effect of the new compensation method on the accuracy of RTHS technology.
6. Conclusions
Based on the model-based FF–FB control method, we proposed in this study a new two-stage method for RTHS. The two-stage method introduced the error between the model identified and the real plant into the compensator to enhance the compensation performance. Moreover, we performed a comparative analysis of two different methods to confirm the effectiveness of the two-stage method. Furthermore, the efficacy of the proposed method was proved by an RTHS of a frame. Compared with the model-based FF compensator, the two-stage method can achieve improved time-delay compensation performance, especially in the high-frequency bandwidth. This point was confirmed by comparing the results of the two methods both in the time domain and frequency domain. The results of the RTHS proved that the two-stage method can effectively control the tracking error to achieve good tracking performance. The proposed method additionally provided a new idea for the model-based time-delay compensation method. By considering the difference between the identified model and the real plant, the model-based compensation method can be further modified and improved to achieve enhanced compensation performance.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The authors appreciate anonymous reviewers for critical reading of the manuscript and for offering many useful suggestions that led to significant improvement of the paper. The supports for this research provided by the National Key R & D Program of China (grant nos. 2018YFC1504306 and 2016YFC0701108) and the National Natural Science Foundation of China (grant nos. 51427901 and 51678407) also acknowledged.
