Severe error with External Interface: Error, xml file "variables.cfg" declares variable

asked 7 years ago

TianZhichao's avatar

updated 7 years ago

Hi, I tried to define two variables in E+ idf files to change data with BCVTB using the External Interface class. But it resulted two severe errors.

The External Interface objects show as follows:

ExternalInterface:Actuator,
Space1-1AirTemperature, !- Name
SPACE1-1 Ideal Loads Air System, !- Actuated Component Unique Name
Ideal Loads Air System, !- Actuated Component Type
Air Temperature, !- Actuated Component Control Type
25; !- Optional Initial Value

ExternalInterface:Actuator,
Space1-1Humidity, !- Name
SPACE1-1 Ideal Loads Air System, !- Actuated Component Unique Name
Ideal Loads Air System, !- Actuated Component Type
Air Humidity Ratio, !- Actuated Component Control Type
0.012; !- Optional Initial Value

The variables defined in BCVTB:

<variable source="Ptolemy">
    <EnergyPlus actuator="Space1-1AirTemperature"/>
</variable>
<variable source="Ptolemy">
    <EnergyPlus actuator="Space1-1Humidity"/>
</variable>

Is there something wrong with my definition?

Preview: (hide)

Comments

It may because ExternalInterface:Schedule and ExternalInterface:Acturator can not be used in one idf file. I deleted all ExternalInterface:Schedule objects, then the error message disappeared.

TianZhichao's avatar TianZhichao  ( 7 years ago )

@TianZhichao, does that mean this question should be closed?

Julien Marrec's avatar Julien Marrec  ( 7 years ago )

@TianZhichao: Which version of EnergyPlus are you using?

Thierry Nouidui's avatar Thierry Nouidui  ( 7 years ago )