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

Revision history [back]

The link you are sharing is not publically accessible. As for your second question; it sounds like your are not requesting enough output variables from the function exchangeDoublesWithSocket. Are you using the following manner of calling this function? [retVal, flaRea, simTimRea,variableFromEPtoMlab ] = exchangeDoublesWithSocket(sockfd, flaWri, length(u), simTimWri, variableFromMlabtoEP);

It sounds like you might not be requesting simTimRea (Current simulation time in read from the socket) and that this values is written to your vector u instead. If this is the case then you should take a look at the Matlab script simulateAndExit which also comes with BCVTB as well as the description in the header of the exchangeDoublesWithSocket function.

The link you are sharing is not publically accessible. As for your second question; it sounds like your are not requesting enough output variables from the function exchangeDoublesWithSocket. Are you using the following manner of calling this function? [retVal, flaRea, simTimRea,variableFromEPtoMlab ] = exchangeDoublesWithSocket(sockfd, flaWri, length(u), simTimWri, variableFromMlabtoEP);

It sounds like you might not be requesting simTimRea (Current simulation time in read from the socket) and that this values is written to your vector u instead. If this is the case then you should take a look at the Matlab script simulateAndExit which also comes with BCVTB as well as the description in the header of the exchangeDoublesWithSocket function.

The link you are sharing is not publically accessible. As for your second question; it sounds like your are not requesting enough output variables from the function exchangeDoublesWithSocket. Are you using the following manner of calling this function? [retVal, flaRea, simTimRea,variableFromEPtoMlab ] = exchangeDoublesWithSocket(sockfd, flaWri, length(u), length(variableFromEPtoMlab), simTimWri, variableFromMlabtoEP);

It sounds like you might not be requesting simTimRea (Current simulation time in read from the socket) and that this values is written to your vector u instead. If this is the case then you should take a look at the Matlab script simulateAndExit which also comes with BCVTB as well as the description in the header of the exchangeDoublesWithSocket function.

The link you are sharing is not publically accessible. As for your second question; it sounds like your are not requesting enough output variables from the function exchangeDoublesWithSocket. Are you using the following manner of calling this function?

[retVal, flaRea, flaRea, simTimRea,variableFromEPtoMlab ] = exchangeDoublesWithSocket(sockfd, flaWri, length(variableFromEPtoMlab), = exchangeDoublesWithSocket(sockfd, flaWri,... length(variableFromEPtoMlab), simTimWri, variableFromMlabtoEP);

It sounds like you might not be requesting simTimRea (Current simulation time in read from the socket) and that this values is written to your vector u instead. If this is the case then you should take a look at the Matlab script simulateAndExit which also comes with BCVTB as well as the description in the header of the exchangeDoublesWithSocket function.