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

E+ and simulink - BCVTB error

asked 2020-04-20 09:44:15 -0500

MPCbro123's avatar

updated 2020-04-20 10:27:04 -0500

Hi, i am incorporating E+ and simulink together on bcvtb to control a FCU unit to achieve the desired setpoint temperature. So i created an On/Off controller in Simulink and i am feedbacking room and setpoint temperature from E+ to simulink in BCVTB. However i encountered an error in simulink which is the incorrect port width/dimensions. The error is as follows: Error using simulateAndExit (line 2)

Error in port widths or dimensions. Output port 1 of 'controllertest3/controller/TSetPoi/Cooling Setpoint ' is a one dimensional vector with 512 elements.

Error using simulateAndExit (line 2) Error in port widths or dimensions. Input port 1 of 'controllertest3/controller/TSetPoi/Sum' is a one dimensional vector with 1 elements. image description image description

image description

It says that the output port and the input port which is essentially the same block has different elements, however my dimensions are all set to inherit. Any help is appreciated.

edit retag flag offensive close merge delete


So your controller is set-up with 512 output variables, right? How many inputs are supposed to be fed to EnergyPlus, all the 512?

Thierry Nouidui's avatar Thierry Nouidui  ( 2020-04-23 08:35:41 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-22 04:30:22 -0500

feilongdang's avatar

Try EnergyPlus Co-simulation Toolbox, it would be easier than BCVTB.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops


Question Tools

1 follower


Asked: 2020-04-20 09:44:15 -0500

Seen: 477 times

Last updated: Apr 22 '20