Connect EP+ with Matlabe via BCVTB for data exchange

asked 2017-06-06 07:15:35 -0600

nancynanxiaodan's avatar

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/#!top...

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

edit retag flag offensive close merge delete

Comments

1

The BCVTB uses the command line interface command of energyplus to run the IDF file. This interface will at invocation create temporary IDFs files that should be overwritten on subsequent runs. However the interface has a bug which causes it to not overwrite the IDFs. Hence if you run an IDF the first time, change the IDF, and rerun it then no changes will be reflected in the run. You will have to first delete any .epmidf and .epxidf files that might have been generated prior to re-running your IDF.

Could you delete those files and re-run your case.

Thierry Nouidui's avatar Thierry Nouidui  ( 2017-06-20 10:16:37 -0600 )edit
Thierry Nouidui's avatar Thierry Nouidui  ( 2017-06-20 10:17:08 -0600 )edit

Hi Thierry Nouidui, many thanks for your comments. Yes, I realise that issue when I was trying to change the time step in both EP+ and Simulink, I have managed to make the simulation running with simplified version, which means I reduced the variables. However, I am still not sure why I got the error saying too many variables, is there any limits of variables allowed to be exchanged between different simulation engines. Many thanks

nancynanxiaodan's avatar nancynanxiaodan  ( 2017-06-21 12:47:24 -0600 )edit