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

Revision history [back]

You are aware that this ExportVariableToCSV measure must work in conjunction with the add_output_variable measure right?

What the ExportVariableToCSV does is just to query a time series from the .sql file and dump that into a CSV file. It DOES NOT request an extra Output:Variable to be added to your model.

The add_output_variable does the requesting of the variable.

So if you want to change the reporting frequency, you must do it in both measures.


For eg, to request Site Outdoor Air Wetbulb Temperature at the Timestep level:

  • In add_output_variable, ask for VariableName = Site Outdoor Air Wetbulb Temperature and reporting_frequency = timestep
  • In ExportVariableToCSV, ask for VariableName = Site Outdoor Air Wetbulb Temperature and reporting_frequency = Zone Timestep

If I was using this ExportVariableToCSV measure a lot (I'm not), I would probably just refactor it to also request the output variable to be added to the model, that'd avoid this kind of mistakes.