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

Can ems lookup schedule values before or after the current timestep?

asked 2016-06-13 03:02:42 -0600

Can an ems program look forward/backwards in a predefined schedule. E.g. It's 09:30h and I want a sensor to sense the schedule value at 10:30h? For looking back this seems to be possible with a trend variable but I was wondering if there is another option.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-06-13 05:38:48 -0600

Chandan Sharma's avatar

Using Table:OneIndependentVariable, hourly data sets of yearly schedule can be specified in EnergyPlus idf. If all of the 8760 data sets are not allowed in single Table:OneIndependentVariable object, then 8760 can be broken down in three or more sets and specified in separate objects (e.g. three separate data sets objects for simulation hour ranges of (1-2920), (2921-5840), and (5841-8760)). Then using EnergyManagementSystem:CurveOrTableIndexVariable, the data can be accessed for any future hour of simulation.

edit flag offensive delete link more

answered 2016-06-13 03:09:55 -0600

Just a workaround:

Are your schedules repeating in some kind of way? (every day, every week?) In this case you could use a trend variable to look back at a past timestep where it would be the same as in the future. Reading this last sentence out loud suggests an example might be in order: If your schedule is just a repeating daily pattern, you could look at 10h30 yesterday to get the value of 10h30 today.

edit flag offensive delete link more


@Julien, nice idea that I'll keep in mind for other simulations, but the schedule values don't follow a fixed pattern. The schedule is a yearly schedule that is composed of weekly schedules that are composed of different daily schedules.

BBel's avatar BBel  ( 2016-06-13 03:43:17 -0600 )edit

I've looked at the doc, can't seem to find a way to look into the future... I fear your only option might be to create another schedule where you shift the values forward and use this shifted one to look into "the future"... (See the Excel spreadsheet EMIT from RMI or OpenStudio API to shift the schedule)

Julien Marrec's avatar Julien Marrec  ( 2016-06-13 04:16:14 -0600 )edit

Thanks for looking into this. I'll have a look at the spreadsheet.

BBel's avatar BBel  ( 2016-06-13 04:35:35 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2016-06-13 03:02:42 -0600

Seen: 185 times

Last updated: Jun 13 '16