First time here? Check our help page!
3

Incremental updates from an OpenStudio measure

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?

__AmirRoth__'s avatar
4.4k
__AmirRoth__
asked 2016-01-19 19:53:50 -0500
edit flag offensive 0 remove flag 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 -0500) edit
add a comment see more comments

1 Answer

4

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

MatthewSteen's avatar
10.1k
MatthewSteen
answered 2016-01-21 10:09:42 -0500, updated 2016-01-21 10:16:35 -0500
edit flag offensive 0 remove flag delete link

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 -0500) 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 -0500) edit
add a comment see more comments