01943nas a2200121   4500008004100000245009400041210006900135260002600204520146700230100002001697700001801717856008601735       2008                        eng d00aA Modular Building Controls Virtual Test Bed for the Integration of Heterogeneous Systems0 aModular Building Controls Virtual Test Bed for the Integration o  aBerkeley, CAc08/20083 a<p>This paper describes the Building Controls Virtual Test Bed (BCVTB) that is currently under development at Lawrence Berkeley National Laboratory. An earlier prototype linked EnergyPlus with controls hardware through embedded SPARK models and demonstrated its value in more cost-effective envelope design and improved controls sequences for the San Francisco Federal Building. The BCVTB presented here is a more modular design based on a middleware that we built using Ptolemy II, a modular software environment for design and analysis of heterogeneous systems. Ptolemy II provides a graphical model building environment, synchronizes the exchanged data and visualizes the system evolution during run-time. Our additions to Ptolemy II allow users to couple to Ptolemy II a prototype version of EnergyPlus, MATLAB/Simulink or other simulation programs for data exchange during run-time. In future work we will also implement a BACnet interface that allows coupling BACnet compliant building automation systems to Ptolemy II. We will present the architecture of the BCVTB and explain how users can add their own simulation programs to the BCVTB. We will then present an example application in which the building envelope and the HVAC system was simulated in EnergyPlus, the supervisory control logic was simulated in MATLAB/Simulink and Ptolemy II was used to exchange data during run-time and to provide real-time visualization as the simulation progresses.</p>1 aWetter, Michael1 aHaves, Philip  uhttps://simulationresearch.lbl.gov/publications/modular-building-controls-virtual