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

Exporting results data from Openstudio

asked 9 years ago

claudi.alanis's avatar

updated 9 years ago

Dear openstudio users and energy modeling professionals,

I was wondering if there is a way to export certain data from the simulation results (specifically i am trying to get gas consumption and operative temperature of my thermal zones) to a format that i can import in Matlab (eg. text file, excel file, etc.)? From the temporary folder i can get the eplusout file, but i cannot find a way to open or manipulate that file into a useful format to get the data i am looking for.

Thanks in advance for your replies.

Preview: (hide)

Comments

Yes, from Matlab you can connect to the .sql data file that is an output of the E+ simulation that is run in OS. If you have the database toolbox its a line or two of code. Look for the sql driver that comes packaged with OS, that was key when I did it.

Setting up query that results in vectors of simulation data is a bigger step and takes a bit of thought to sort out correctly. The first step is to get connected though.

I find connecting through the sql database to be a bit more robust and easier when you are changing # of outputs etc. Creating a csv file and importing to ML works too

bryane's avatar bryane  ( 9 years ago )

1 Answer

Sort by » oldest newest most voted
5

answered 9 years ago

updated 9 years ago

You may want to look at this post on Getting CSV From SQL. If you do want to automate this through a measure we have an example measure that exports schedules to a csv file, and there's an answer here which explains its use. While this specific example exports input data from the OSM, you can use the same approach for tabular or time series sql data. You will have to learn how to do the sql queries to find the data you are looking for. A reporting measure can also inject variable requests ahead of the run if you need it.

Preview: (hide)
link

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

3 followers

Stats

Asked: 9 years ago

Seen: 1,807 times

Last updated: Aug 19 '15