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

EMS for night cooling with outdoor air

Caveat: I can spell "EMS", but have very limited familiarity with it. I've pored over the example files and think I've got syntax and organization correct ... but it still doesn't work.

Nonetheless, I think I'm trying to do something fairly simple - turn on a fan when the sun is down and the indoor temp is warmer than the outdoor temp. Simple or not, EnergyPlus tells me it cannot process the line :

"IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4)" in the code below. If you can give me a clue why that is, I'll be grateful.

EnergyManagementSystem:Sensor, OutdoorTemp, Environment, Site Outdoor Air Drybulb Temperature;

EnergyManagementSystem:Sensor, ZoneTemp-RSP4th:RSP, RSP4th:RSP, Zone Mean Air Temperature;

EnergyManagementSystem:Actuator, NightClgActuator, Sched_NightClg, Schedule:Compact, Schedule Value;

EnergyManagementSystem:ProgramCallingManager, NightClg MgmtSys1, BeginTimestepBeforePredictor, NightClgControl1;

EnergyManagementSystem:Program, NightClgControl1, IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4), SET NightClgActuator = 1.0, ELSE, SET NightClgActuator = Null, ENDIF;

EMS for night cooling with outdoor air

Caveat: I can spell "EMS", but have very limited familiarity with it. I've pored over the example files and think I've got syntax and organization correct ... but it still doesn't work.

Nonetheless, I think I'm trying to do something fairly simple - turn on a fan when the sun is down and the indoor temp is warmer than the outdoor temp. Simple or not, EnergyPlus tells me it cannot process the line :

"IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4)" in the code below. If you can give me a clue why that is, I'll be grateful.

EnergyManagementSystem:Sensor, OutdoorTemp, Environment, Site Outdoor Air Drybulb Temperature;

EnergyManagementSystem:Sensor, ZoneTemp-RSP4th:RSP, RSP4th:RSP, Zone Mean Air Temperature;

EnergyManagementSystem:Actuator, NightClgActuator, Sched_NightClg, Schedule:Compact, Schedule Value;

EnergyManagementSystem:ProgramCallingManager, NightClg MgmtSys1, BeginTimestepBeforePredictor, NightClgControl1;

EnergyManagementSystem:Program, NightClgControl1, IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4), SET NightClgActuator = 1.0, ELSE, SET NightClgActuator = Null, ENDIF;

EMS for night cooling with outdoor air

Caveat: I can spell "EMS", but have very limited familiarity with it. I've pored over the example files and think I've got syntax and organization correct ... but it still doesn't work.

Nonetheless, I think I'm trying to do something fairly simple - turn on a fan when the sun is down and the indoor temp is warmer than the outdoor temp. Simple or not, EnergyPlus tells me it cannot process the line :

"IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4)" in the code below. If you can give me a clue why that is, I'll be grateful.

EnergyManagementSystem:Sensor, OutdoorTemp, Environment, Site Outdoor Air Drybulb Temperature;

EnergyManagementSystem:Sensor, ZoneTemp-RSP4th:RSP, RSP4th:RSP, Zone Mean Air Temperature;

EnergyManagementSystem:Actuator, NightClgActuator, Sched_NightClg, Schedule:Compact, Schedule Value;

EnergyManagementSystem:ProgramCallingManager, NightClg MgmtSys1, BeginTimestepBeforePredictor, NightClgControl1;

EnergyManagementSystem:Program, NightClgControl1, IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4), SET NightClgActuator = 1.0, ELSE, SET NightClgActuator = Null, ENDIF;

EMS for night cooling with outdoor air

Caveat: I can spell "EMS", but have very limited familiarity with it. I've pored over the example files and think I've got syntax and organization correct ... but it still doesn't work.

Nonetheless, I think I'm trying to do something fairly simple - turn on a fan when the sun is down and the indoor temp is warmer than the outdoor temp. Simple or not, EnergyPlus tells me it cannot process the line :

"IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4)" in the code below. If you can give me a clue why that is, I'll be grateful.

EnergyManagementSystem:Sensor, OutdoorTemp, Environment, Site Outdoor Air Drybulb Temperature;

EnergyManagementSystem:Sensor, ZoneTemp-RSP4th:RSP, RSP4th:RSP, Zone Mean Air Temperature;

EnergyManagementSystem:Actuator, NightClgActuator, Sched_NightClg, Schedule:Compact, Schedule Value;

EnergyManagementSystem:ProgramCallingManager, NightClg MgmtSys1, BeginTimestepBeforePredictor, NightClgControl1;

EnergyManagementSystem:Program, NightClgControl1, IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4), SET NightClgActuator = 1.0, ELSE, SET NightClgActuator = Null, ENDIF;

EMS for night cooling with outdoor air

Caveat: I can spell "EMS", but have very limited familiarity with it. I've pored over the example files and think I've got syntax and organization correct ... but it still doesn't work.

Nonetheless, I think I'm trying to do something fairly simple - turn on a fan when the sun is down and the indoor temp is warmer than the outdoor temp. Simple or not, EnergyPlus tells me it cannot process the line :

"IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4)" in the code below. If you can give me a clue why that is, I'll be grateful.

EnergyManagementSystem:Sensor, OutdoorTemp, Environment, Site Outdoor Air Drybulb Temperature;

EnergyManagementSystem:Sensor, ZoneTemp-RSP4th:RSP, RSP4th:RSP, Zone Mean Air Temperature;

EnergyManagementSystem:Actuator, NightClgActuator, Sched_NightClg, Schedule:Compact, Schedule Value;

EnergyManagementSystem:ProgramCallingManager, NightClg MgmtSys1, BeginTimestepBeforePredictor, NightClgControl1;

EnergyManagementSystem:Program, NightClgControl1, IF (SunIsUp==0) && (OutdoorTemp<23.9) && (ZoneTemp-RSP4th:RSP>29.4), SET NightClgActuator = 1.0, ELSE, SET NightClgActuator = Null, ENDIF;