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

Revision history [back]

Trouble getting sensor variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

Trouble getting sensor variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

Trouble getting sensor variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd and edd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["ch1 plr"]     self.sensors["demand rate"] = self.e.get_variable_handle(state, "Chiller Part Load Ratio", "CH1")
self.e.get_variable_handle(
state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Chiller Part Load Ratio,hourly; Output:Variable,*,Plant Supply Side Cooling Demand Rate,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

    self.sensors["demand rate"] = self.e.get_variable_handle(
 state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd output file are available for the python plugin ...

For example here is what I got in rdd file:

Output:Variable,*,Plant Supply Side Cooling Demand Rate,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

 self.sensors["demand rate"] = self.e.get_variable_handle(
              state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in rdd the *.rdd output file are available for the python plugin ...

For example here is what I got in rdd the *.rdd file:

Output:Variable,*,Plant Supply Side Cooling Demand Rate,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["demand rate"] = self.e.get_variable_handle(
              state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. It seems that all the variables listed in the *.rdd file cannot be handled by PythonPlugin. If I'm right, how can one identify available variables(sensors) for each model? I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in the *.rdd output file are available for the python plugin ...

For example here is what I got in the *.rdd file:

Output:Variable,*,Plant Supply Side Cooling Demand Rate,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["demand rate"] = self.e.get_variable_handle(
              state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. It seems that all the variables listed in the *.rdd file cannot be handled by PythonPlugin. If I'm right, how can one identify available variables(sensors) for each model? I hope that you can help me with this.

P.S.

self.e = self.api.exchange

Trouble getting variable handle in PythonPlugin

I'm having trouble getting some variable handles using PythonPlugin in energyplus. I wonder if all the variables listed in the *.rdd output file are available for the python plugin ...

For example here is what I got in the *.rdd file:

Output:Variable,*,Plant Output:Variable,prm,Plant Supply Side Cooling Demand Rate,hourly; !- HVAC Average []

and here is what I used in my python script to get the handle:

self.sensors["demand rate"] = self.e.get_variable_handle(
              state, "Plant Supply Side Cooling Demand Rate", "prm")

Unfortunately, the API returns -1 value for this variable and some other variables. I can't figure out what's the problem. It seems that all the variables listed in the *.rdd file cannot be handled by PythonPlugin. If I'm right, how can one identify available variables(sensors) for each model? I hope that you can help me with this.

P.S.

self.e = self.api.exchange