Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The data exchange between EnergyPlus and Matlba is working. Instead of using BCVTB I used the EnergyPlus Co-simulation Toolbox.

This how I defined the variable in EnergyPlus.

!-   ===========  ALL OBJECTS IN CLASS: OTHEREQUIPMENT ===========
OtherEquipment,
    BASE-1 OthEq 1,          !- Name
    None,                    !- Fuel Type
    ZN,                      !- Zone or ZoneList Name
    Ref System work sch,     !- Schedule Name
    EquipmentLevel,          !- Design Level Calculation Method
    *,                       !- Design Level {W}
    ,                        !- Power per Zone Floor Area {W/m2}
    ,                        !- Power per Person {W/person}
    ,                        !- Fraction Latent
    ,                        !- Fraction Radiant
    ;                        !- Fraction Lost

!-   ===========  ALL OBJECTS IN CLASS: EXTERNALINTERFACE ===========
ExternalInterface,
    PtolemyServer;           !- Name of External Interface

!-   ===========  ALL OBJECTS IN CLASS: EXTERNALINTERFACE:ACTUATOR ===========
ExternalInterface:Actuator,
    OtherEp,                 !- Name
    BASE-1 OthEq 1,          !- Actuated Component Unique Name
    OtherEquipment,          !- Actuated Component Type
    Power Level,             !- Actuated Component Control Type
    726;                     !- Optional Initial Value

Output:Variable,
    ZoneName,                  !- Key Value
    Zone Air Temperature,      !- Variable Name
    Timestep;                  !- Reporting Frequency

variables.cfg File

<?xml version="1.0" encoding="utf-8"?>    
<!DOCTYPE BCVTB-variables
  SYSTEM "variables.dtd">
<BCVTB-variables><!--INPUT to E+-->
   <variable source="Ptolemy">
      <EnergyPlus actuator="OtherEp"/>
   </variable><!--OUTPUT from E+-->
   <variable source="EnergyPlus">
      <EnergyPlus name="ZoneName" type="Zone Air Temperature"/>
   </variable>

</bcvtb-variables>

The data exchange between EnergyPlus and Matlba is working. Instead of using BCVTB I used the EnergyPlus Co-simulation Toolbox.

This how I defined the variable in EnergyPlus.

!-   ===========  ALL OBJECTS IN CLASS: OTHEREQUIPMENT ===========
OtherEquipment,
    BASE-1 OthEq 1,          !- Name
    None,                    !- Fuel Type
    ZN,                      !- Zone or ZoneList Name
    Ref System work sch,     !- Schedule Name
    EquipmentLevel,          !- Design Level Calculation Method
    *,                       !- Design Level {W}
    ,                        !- Power per Zone Floor Area {W/m2}
    ,                        !- Power per Person {W/person}
    ,                        !- Fraction Latent
    ,                        !- Fraction Radiant
    ;                        !- Fraction Lost

!-   ===========  ALL OBJECTS IN CLASS: EXTERNALINTERFACE ===========
ExternalInterface,
    PtolemyServer;           !- Name of External Interface

!-   ===========  ALL OBJECTS IN CLASS: EXTERNALINTERFACE:ACTUATOR ===========
ExternalInterface:Actuator,
    OtherEp,                 !- Name
    BASE-1 OthEq 1,          !- Actuated Component Unique Name
    OtherEquipment,          !- Actuated Component Type
    Power Level,             !- Actuated Component Control Type
    726;                     !- Optional Initial Value

Output:Variable,
    ZoneName,                  !- Key Value
    Zone Air Temperature,      !- Variable Name
    Timestep;                  !- Reporting Frequency

variables.cfg File

<?xml version="1.0" encoding="utf-8"?>    
<!DOCTYPE BCVTB-variables
  SYSTEM "variables.dtd">
<BCVTB-variables><!--INPUT to E+-->
   <variable source="Ptolemy">
      <EnergyPlus actuator="OtherEp"/>
   </variable><!--OUTPUT from E+-->
    <variable source="EnergyPlus">
       <EnergyPlus name="ZoneName" type="Zone Air Temperature"/>
    </variable>
</BCVTB-variables>

</bcvtb-variables>