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

Revision history [back]

click to hide/show revision 1
initial version

Connect EP+ with Matlabe via BCVTB for data exchange

Hi All,

Many thanks for looking at my question. I am trying to link EP+ with control signal sending from Matlab via BCVTB.

I could not share my file here, the same question I've posted here with all my files:

https://groups.google.com/forum/#!topic/bcvtb/G23v8ADMWsM

In EP+ there is a house model, which the heating system is controlled by the Matlab by the active occupants.(when occupants >=1, start the heating), this part is running ok. I could observe the results and it makes sense.

And then am trying to add another control: in each time step, the power consumption in house (variable: facility total electric power demand) will send from EP+ to Matlab via BCVTB and in matlab, the Matpower will be used based on the power consumption sent from EP+, the results from Matpower will determine the schedule value which will send back to EP+.

This is the whole idea of what I am trying to achieve.

When I am running the whole model, in matlab it gave the error say: too many variables. and after running the BCVTB, the error saying: FOR INPUT STRING:" r 2"

I am not quite sure what I am doing wrong here.

Many thanks for any tips!

Nancy