Setpoint value with python plugin

Hello everyone,

I want to get the value of setpoint in an EnergyPlus model with the python plugin. I tried this code but it returns -1:

    self.T1_handle = self.api.exchange.get_variable_handle(state, "Zone Thermostat Cooling Setpoint Temperature", "Perimeter_ZN_1")
    T1 = self.api.exchange.get_variable_value(state, self.T1_handle)

Based on this post, the number of inputs is fine I think. When I change the variable_names to others such as "Zone Mean Air Temperature", and "People Occupant Count" It works. But it does not work for "Zone Thermostat Cooling Setpoint Temperature". I found the variable_names from .eso file.

Thanks!

Mostafa Meimand's avatar
217
Mostafa Meimand
asked 2020-12-30 16:58:44 -0500, updated 2020-12-31 14:29:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments