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

Adarsh's profile - activity

2024-03-24 03:47:17 -0500 commented question EMS schedule for Natural Ventilation

Hey @shorowit, I hope you're well. I'm just checking in to see if you were able to go through the IDF file? Have a nice

2024-03-21 08:17:41 -0500 commented question EMS schedule for Natural Ventilation

Hey @shorowit. Natural_Ventilation_Test schedule is used by the ventilation control. Here is a drive link for the IDF al

2024-03-20 09:48:29 -0500 commented question EMS schedule for Natural Ventilation

@shorowit, I use BeginTimestepBeforePredictor for all of the programs.

2024-03-20 03:54:35 -0500 asked a question EMS schedule for Natural Ventilation

EMS schedule for Natural Ventilation Hey everyone, I believe it would be a good idea to have this as a separate questi

2024-03-19 05:29:40 -0500 answered a question Temperature control and CO2 control (EMS SCRIPT) not working together for Natural Ventilation

Hey @shorowit, Thank you for your comment. I have further investigated the script. A schedule control also needed to be

2024-03-14 05:09:44 -0500 marked best answer Temperature control and CO2 control (EMS SCRIPT) not working together for Natural Ventilation

Hello,

I was previously trying to figure out the CO2 EMS code which I was able to get working. Essentially, I want my model to access the Natural Ventilation with the Temperature control and CO2 sensors together. But, the results I've noticed is that with the CO2 EMS script, the temperature control has been disregarded. I've tried to include both temperature control and CO2 sensors in my script but havent had any luck.

CO2 Control

EnergyManagementSystem:Program,
    CO2_Sensor09,            !- Name
    IF EMS_CO2_Sensor07 > 800,  !- Program Line 1
    SET OpenFactor09 = 1.0,  !- Program Line 2
    ELSE,                    !- A4
    SET OpenFactor09 = 0.0,  !- A5
    ENDIF ;

Temp Control

EnergyManagementSystem:Program,
    Temp_Program02,            !- Name
    IF Temperature_Sensor01 > 23,  !- Program Line 1
    SET Temp_OpenFactor01 = 1.0, !- Program Line 2
    ELSE,  !- A4
    SET Temp_OpenFactor01 = 0.0,  !- A5
    ENDIF ;  !- A6

EMS control with both Temperature and CO2. This does not work, maybe due to an error in my EMS sensor script below. I had to seperate the Output variables as it would not work when "Zone Air CO2 Conc" and "Zone Air Mean Temperature" Ran together.

EnergyManagementSystem:Sensor,
    EMS_CO2_Sensor09,        !- Name
    SecondFloorStudy,  !- Output:Variable or Output:Meter Index Key Name
    Zone Air CO2 Concentration;  !- Output:Variable or Output:Meter Name

EnergyManagementSystem:Sensor,
    Temperature_Sensor01,        !- Name
    AtticBedroom-cutout,  !- Output:Variable or Output:Meter Index Key Name
    Zone Mean Air Temperature;  !- Output:Variable or Output:Meter Name

EnergyManagementSystem:Actuator,
    OpenFactor01,            !- Name
    Window_4_Opening,  !- Actuated Component Unique Name
    Zone Ventilation,        !- Actuated Component Type
    Air Exchange Flow Rate;  !- Actuated Component Control Type

EnergyManagementSystem:Program,
    CO2_Sensor09,            !- Name
    IF EMS_CO2_Sensor07 > 800,  !- Program Line 1
    AND Temperature_Sensor07 > 26, !- Program Line 2
    SET OpenFactor09 = 1.0,  !- A4
    ELSE,                    !- A5
    SET OpenFactor09 = 0.0,  !- A6
    ENDIF ;                  !- A7

This is the error I get when I run the above script

1.    ** Severe  ** Errors found parsing EMS Runtime Language program or subroutine = CO2_SENSOR01

Can anyone help me figure out the script that could include both temperature and CO2 control?

Cheers, Adarsh

2024-03-14 05:09:44 -0500 received badge  Scholar (source)
2024-03-14 05:09:34 -0500 commented answer Temperature control and CO2 control (EMS SCRIPT) not working together for Natural Ventilation

Hey @shorowit Thank you ! Following your input, I just had to set an OR function instead of AND and it works out well.

2024-03-13 05:40:20 -0500 asked a question Temperature control and CO2 control (EMS SCRIPT) not working together for Natural Ventilation

Temperature control and CO2 control (EMS SCRIPT) not working together for Natural Ventilation Hello, I was previously

2024-03-11 14:22:49 -0500 received badge  Student (source)
2024-03-11 14:19:55 -0500 edited question CO2 sensors for natural ventilation

CO2 sensors for natural ventilation Hey everyone, I've been using Honeybee to validate my model for the EUI and thermal

2024-03-11 08:00:37 -0500 answered a question CO2 sensors for natural ventilation

An update to my question; I was able to figure out the EMS script for CO2 sensor control. As I am writing the script us

2024-03-09 08:42:56 -0500 asked a question CO2 sensors for natural ventilation

CO2 sensors for natural ventilation Hey everyone, I've been using Honeybee to validate my model for the EUI and thermal