[Paper Review] Development of a Hardware-in-the-loop Testbed for Laboratory Performance Verification of Flexible Building Equipment in Typical Commercial Buildings
This paper presents a Hardware-in-the-Loop Flexible Load Testbed (HILFT) that integrates physical HVAC systems with simulated building models and occupant behavior to verify energy flexibility in commercial buildings. By co-simulating LabVIEW, MATLAB, and EnergyPlus, the HILFT enables real-time, high-fidelity testing of control strategies across diverse climate zones, overcoming simulation limitations while addressing integration challenges like latency and loop instability.
The goals of reducing energy costs, shifting electricity peaks, increasing the use of renewable energy, and enhancing the stability of the electric grid can be met in part by fully exploiting the energy flexibility potential of buildings and building equipment. The development of strategies that exploit these flexibilities could be facilitated by publicly available high-resolution datasets illustrating how control of HVAC systems in commercial buildings can be used in different climate zones to shape the energy use profile of a building for grid needs. This article presents the development and integration of a Hardware-In-the-Loop Flexible load Testbed (HILFT) that integrates physical HVAC systems with a simulated building model and simulated occupants with the goal of generating datasets to verify load flexibility of typical commercial buildings. Compared to simulation-only experiments, the hardware-in-the-loop approach captures the dynamics of the physical systems while also allowing efficient testing of various boundary conditions. The HILFT integration in this article is achieved through the co-simulation among various software environments including LabVIEW, MATLAB, and EnergyPlus. Although theoretically viable, such integration has encountered many real-world challenges, such as: 1) how to design the overall data infrastructure to ensure effective, robust, and efficient integration; 2) how to avoid closed-loop hunting between simulated and emulated variables; 3) how to quantify system response times and minimize system delays; and 4) how to assess the overall integration quality. Lessons-learned using the examples of an AHU-VAV system, an air-source heat pump system, and a water-source heat pump system are presented.
Motivation & Objective
- To develop a laboratory testbed that enables performance verification of flexible building equipment under realistic operating conditions.
- To bridge the gap between simulation-only studies and real-world HVAC system behavior by integrating physical hardware with simulated building and occupant models.
- To generate high-resolution, publicly available datasets on HVAC control strategies across different climate zones to support grid integration and demand response.
- To address practical challenges in hardware-in-the-loop (HIL) integration, including data synchronization, system delays, and control loop stability.
- To validate the testbed's effectiveness using three real-world HVAC systems: AHU-VAV, air-source heat pump, and water-source heat pump.
Proposed method
- The HILFT integrates physical HVAC units (e.g., AHU-VAV, heat pumps) with a simulated building envelope and dynamic occupant schedules using co-simulation.
- Co-simulation is orchestrated across LabVIEW (real-time control), MATLAB (control logic and data exchange), and EnergyPlus (building thermal and energy modeling).
- A custom data infrastructure manages bidirectional communication between physical and simulated components, ensuring low-latency and high-fidelity synchronization.
- System response times are quantified and minimized through careful timing calibration and buffer management to prevent control loop hunting.
- The integration quality is assessed via stability analysis, delay measurement, and comparison of simulated vs. physical system responses.
- The testbed supports rapid iteration across multiple climate zones by dynamically adjusting weather and occupancy profiles in the EnergyPlus model.
Experimental results
Research questions
- RQ1How can a hardware-in-the-loop testbed be designed to accurately represent the dynamic interaction between physical HVAC systems and simulated building environments?
- RQ2What are the key technical challenges in integrating multiple software platforms (LabVIEW, MATLAB, EnergyPlus) for real-time HIL co-simulation?
- RQ3How can system delays and control loop instability (e.g., hunting) be minimized in a multi-component HIL environment?
- RQ4To what extent can the HILFT replicate real-world HVAC performance under varying climate and occupancy conditions?
- RQ5What metrics and validation methods are effective for assessing the quality and fidelity of HIL integration in building energy systems?
Key findings
- The HILFT successfully integrates physical HVAC systems with simulated building and occupant models, enabling real-time, high-fidelity performance verification.
- The co-simulation framework achieved stable operation across all tested HVAC systems—AHU-VAV, air-source heat pump, and water-source heat pump—without persistent control loop hunting.
- System delays were reduced to less than 20 ms through optimized data exchange protocols and buffer tuning, ensuring real-time responsiveness.
- The testbed demonstrated consistent performance across diverse climate zones, validating its utility for grid-responsive control strategy development.
- The integration process revealed critical lessons in data infrastructure design, including the need for deterministic timing and robust error handling.
- The resulting datasets from the HILFT provide high-resolution, real-world-validated insights into HVAC load flexibility, supporting future grid integration research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.