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

Incremental updates from an OpenStudio measure

asked 2016-01-19 19:53:50 -0600

Is there a way to provide incremental status update from a measure, i.e., to flush out info/warning/error messages periodically rather than only at the end?

edit retag flag offensive close merge delete

Comments

How are you running the measure? Using Apply Measure Now, the run tab in OS App, run tab in PAT, or running the measure from the command line?

macumber's avatar macumber  ( 2016-01-19 22:12:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2016-01-21 10:09:42 -0600

updated 2016-01-21 10:16:35 -0600

Info, warning, and error messages are displayed in different places depending on how a measure is run. Alternatively, the Ruby puts statement can be used to print to the screen.

Apply Measure Now

  • Info, warning, and error messages are displayed in the dialog window

  • Ruby puts statements are displayed in the Advanced Output window

image description

Always Run Measure

  • Info, warning, and error messages will not be displayed in the Output window of the Run Simulation tab

  • Ruby puts statements will be displayed in the Output window when running a simulation

image description

edit flag offensive delete link more

Comments

But you won't see the puts statement until the "Apply Now" measure is done running though.

Julien Marrec's avatar Julien Marrec  ( 2016-01-21 10:18:58 -0600 )edit

Right. Sorry if I wasn't clear earlier. I want to create a "progress indicator" that would display messages as the measure is running. And this is for the measure, not the simulation, so I can't really use the output window.

__AmirRoth__'s avatar __AmirRoth__  ( 2016-01-21 13:05:42 -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: 2016-01-19 19:53:50 -0600

Seen: 194 times

Last updated: Jan 21 '16