Writing CO2 sensors into the Window Opening Component

Hey @TrevorFedyna,

I hope you’re well!
Thanks to your suggestion about EMS code, I was finally able to figure out the setup. Now my model runs with both CO2 setpoints and temperature control.
I only needed to write a script which includes both these controls.

The script goes something like this;

EnergyManagementSystem:Program,
    CO2_Sensor10,            !- Name
    IF (EMS_CO2_Sensor08 > 1000) || (Temperature_Sensor08 >= 23),  !- Program Line 1
	SET OpenFactor10 = 1.0, !- Program Line 2
    ELSE,  !- A4
    SET OpenFactor10 = 0.0,  !- A5
    ENDIF;  !- A6

Thanks and Cheers,
Adarsh

2 Likes