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

Hello,

Please try the following EMS Code in DB EMS, I have tried to configure it to your schedule name. You need to correct the file path. The intention is to use the external schedule file as sensor and then use the internal schedule as the actuator.

EnergyManagementSystem:Sensor,
   Office_Occ1_Ext,
   ExtOfficeOcc1,
   Schedule Value;

EnergyManagementSystem:Actuator,
   Schedule_Value_Office_Occ1,
   Office_Occ1,
   Schedule:Compact,
   Schedule Value;


Schedule:File,
  ExtOfficeOcc1,!- Name
  Any Number,!- ScheduleType
  C:\...\...\loads_example.csv,!- Name of File
  2,!- Column Number
  1,!- Rows to Skip at Top
  8760,!- Number of Hours of Data
  Comma;!- Column Separator


EnergyManagementSystem:ProgramCallingManager,
   Schedule change,
   BeginTimestepBeforePredictor,
   OfficeOcc1Prog;

EnergyManagementSystem:Program,
   OfficeOcc1Prog,
   ! add program code
  Set t = Office_Occ1_Ext,
  Set Schedule_Value_Office_Occ1 = t,
   ;

In this case you can also Simplify your schedule in DB, instead of the detailed one.

 Schedule:Compact,
    Office_Occ1,
    Any Number,
    Through: 12/31,
    For: AllDays,
    Until: 24:00,  0;