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

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

asked 2022-06-22 09:07:42 -0600

RafaB's avatar

updated 2022-06-22 18:12:14 -0600

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.

edit retag flag offensive close merge delete


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

RafaB's avatar RafaB  ( 2022-06-22 09:24:12 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2022-07-11 02:52:21 -0600

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: (jump to "Use a class instead of globals"), but E+ also ships with multiple examples in the ExampleFiles folder (they all start with PythonPlugin)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2022-06-22 09:07:42 -0600

Seen: 560 times

Last updated: Jul 11 '22