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

How do I use api.exchange.get_actuator value for a Setpoint Manager?

asked 3 years ago

rd1's avatar

updated 3 years ago

I read the documentation but I dont really understand what the parameters are and I can't find examples that explain it.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 3 years ago

Have you looked at the EnergyPlus example files? Some are using the Python Plugin.

PythonPluginReplaceTraditionalManagers_LargeOffice.py is pretty much doing exactly what you need. The key is that you do not actuate the SetpointManager, you actually use the "System Node Setpoint" "Setpoint Temperature" actuator on the node itself. An alternative if you have a SetpointManager:Scheduled for eg is to actuate the Schedule Value instead.

The key part is:

  1. Get the actuator handle:

    handle = self.api.exchange.get_actuator_handle(
        state,
        "System Node Setpoint",
        "Temperature Setpoint",
        "VAV_5 Supply Equipment Outlet Node"
    )
  2. Set the actuator value to 50C, do that in the on_after_predictor_after_hvac_managers callback for example

    self.api.exchange.set_actuator_value(state, handle, 50)

Study the example files, it should become clear.

Preview: (hide)
link

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 3 years ago

Seen: 369 times

Last updated: Oct 11 '21