0

How to get the value of a meter using the Python API?

Does anybody have any examples of how to use the Python API of EnergyPlus to get the value of a meter? I cannot figure out how to do it by just reading the documentation.

RafaB's avatar
11
RafaB
asked 2022-06-22 09:07:42 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2022-06-22 18:12:14 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I would like to get the values of heating and cooling EnergyTransfer.

RafaB's avatar RafaB (2022-06-22 09:24:12 -0500) edit
add a comment see more comments

1 Answer

1

You can use get_meter_handle and get_meter_value. They work exactly like get_variable_handle and get_variable_value.

I have a short example here: https://github.com/jmarrec/OpenStudio... (jump to "Use a class instead of globals"), but E+ also ships with multiple examples in the ExampleFiles folder (they all start with PythonPlugin)

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2022-07-11 02:52:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments