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 2021-10-08 04:25:13 -0600

rd1's avatar

updated 2021-10-08 16:54:01 -0600

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-10-11 03:39:08 -0600

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.

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

Training Workshops

Careers

Question Tools

2 followers

Stats

Asked: 2021-10-08 04:25:13 -0600

Seen: 302 times

Last updated: Oct 11 '21