I wrote a simple program in EMS for opening and closing the windows of a building in relation to a defined value of internal mean air zone temperature. (example <23 Open Factor=0, >23 OF=1) I'm trying this on a simple building: I have 2 zones and 2 windows, one for each zone. I created 2 temperature sensors and 2 actuators, 1&1 for each window.
I don't know if I'm wrong but, do I have to write a control program for each windows? So 1 program with input actuator and sensors for the 1st window and another one for the second window? I'm asking this because I will extend this to a large building with tons of windows and in this case it could be a bit boring to write one program for each.