The tape
module recorder
object is used to record data from an object. The object must specify the file name, the sampling interval, and the object properties to be sampled.
The tape
module can output CSV files with a single header line using the csv_header_type
module variable using the NAME
option.
Output data can be plotted using the plot
subcommand. The plot
is run when the simulation exits successfully with exit code 0
using the #on_exit
macro.
- Setup the building schedule (see
main.glm@6
). - Import the
tape
module (seemain.glm@16
). - Add the commercial building to
load_1
(seemain.glm@22
). - Add the data recorder to the building (see
main.glm@45
). - Get and load the weather forecast (see
main.glm@54
). - Set the simulation clock (see
main.glm@58
). - Plot the load when the simulation exits successfully (see
main.glm@66
).
- Plot the load of a residential building on load 2.