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

How to use "Schedule: File" object in EnergyPlus?

asked 2018-02-16 14:02:08 -0600

surajtalele's avatar

I am trying to use the "Schedule: File" object in energyplus. But, when I add path to locate the .csv file after running the simulation It shows me a severe error. The error is that EnergyPlus cannot locate the file.

Can someone guide me to how to provide the path of the .csv file in "Schedule: File" object?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2018-02-16 14:34:14 -0600

The File Name input field of the Schedule:File object can either be a simple or full path. For example, if you have the IDF and CSV files saved in different folders like the following folder structure:

  • C:\Projects
    • EnergyPlus
      • project.idf
    • Schedule
      • schedule.csv

Then the input can be set to "..\Schedule\schedule.csv" for a simple path of where the CSV is saved in relation to where the IDF is saved, or "C:\Projects\Schedule\schedule.csv" for a full path to the CSV. According to the Input/Output Reference, use full path for best results.

If you have this entered correctly, then there are a few rules that could be causing you an issue:

  • File name must be <= 100 characters
  • File name must not include commas or an exclamation point
  • If using RunEPlus.bat to run EnergyPlus from the command line, a relative path or a simple file name may work if RunEPlus.bat is run from the folder that contains EnergyPlus.exe (e.g. C:\EnergyPlusv8-8-0)
edit flag offensive delete link more

Comments

Great!! It worked.... I guess I was providing the path incorrectly!! Thank you so much Aaron....

surajtalele's avatar surajtalele  ( 2018-02-16 15:02:04 -0600 )edit

Is there any specific format, I need to add data in the .csv file?

divsood04's avatar divsood04  ( 2021-10-22 06:22:15 -0600 )edit

@divsood04 if you define the schedule in a CSV file, there is no special formatting needed. The important thing is that values are separated by commas, which a CSV file does automatically. The important thing is making sure the Schedule:File object has inputs to account for column headers and other information to read the CSV file's data correctly for the EnergyPlus model.

Aaron Boranian's avatar Aaron Boranian  ( 2021-10-22 08:29:36 -0600 )edit

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2018-02-16 14:02:08 -0600

Seen: 1,370 times

Last updated: Feb 16 '18