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

Revision history [back]

MLE+ cosimulation. Obtaining outputs without controlling

I am using MLE+ cosimulation tool in order to obtain my building thermal demand. I've been following the examples on the ExternalInterface document, but what I want to implement is slightly different and I'm not able to make it work.

Basically I want to get as an output from the Energyplus simulation the following: Site Outdoor Air Drybulb Temperature Site Direct Solar Radiation Rate per Area Site Diffuse Solar Radiation Rate per Area Zone Ideal Loads Supply Air Total Cooling Energy Zone Ideal Loads Supply Air Total Heating Energy Water Use Connections Plant Hot Water Energy

Then I'll have to add another simulink block, simulating a Heat Pump to translate the thermal demand into an electric demand. This demand will be covered by the grid or the PV pannels depending on availability, that is why I also need the radiation from E+.

So basically I have 6 outputs and no inputs and I keep getting error messages: Error using mlepEncodeRealData (line 28) Not enough arguments: all input arguments are required.

This is because, in this command:

packet = mlepEncodeRealData(vernumber, flag, timevalue, realvalues) Realvalues in BCVTB EXAMPLES nº1 is the setpoint that I now don't have. It sais that realvalues can be an empty vector so I just declare an empty array but this is not working, I am still getting the same error.

Does anybody have an idea on how to do this?I am completely stuck

MLE+ cosimulation. Obtaining outputs without controlling

I am using MLE+ cosimulation tool in order to obtain my building thermal demand. I've been following the examples on the ExternalInterface document, but what I want to implement is slightly different and I'm not able to make it work.

Basically I want to get as an output from the Energyplus simulation the following: Site Outdoor Air Drybulb Temperature Site Direct Solar Radiation Rate per Area Site Diffuse Solar Radiation Rate per Area Zone Ideal Loads Supply Air Total Cooling Energy Zone Ideal Loads Supply Air Total Heating Energy Water Use Connections Plant Hot Water Energy

Then I'll have to add another simulink block, simulating a Heat Pump to translate the thermal demand into an electric demand. This demand will be covered by the grid or the PV pannels depending on availability, that is why I also need the radiation from E+.

So basically I have 6 outputs and no inputs and I keep getting error messages: Error using mlepEncodeRealData (line 28) Not enough arguments: all input arguments are required.

This is because, in this command:

packet = mlepEncodeRealData(vernumber, flag, timevalue, realvalues) Realvalues in BCVTB EXAMPLES nº1 is the setpoint that I now don't have. It sais says in the mlepEncodeRealData description that realvalues can be an empty vector so I just declare an empty array but this is not working, I am still getting the same error.

Does anybody have an idea on how to do this?I am completely stuck