2

E+ and Matlab Error [closed]

Hi everyone!,

I am trying to performe a co-simulation between E+ and Matlab using the "EnergyPlus Co-simulation Toolbox" and I tried to an output and the error bellow appears.

Error using table (line 335) 'EP_ZONE__Refrigeration_Air_Chiller_System_Total_Compressor_Electric_Energy' is longer than the maximum allowed length for a table variable name.

How can I solve this problem ?

Or is there any way to give a short name to the output?

Zakaria's avatar
902
Zakaria
asked 2023-03-30 08:04:06 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-06-28 07:24:50 -0500
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "the question is answered, right answer was accepted" by Zakaria 2024-01-09 07:29:23 -0500

Comments

add a comment see more comments

1 Answer

1

The mlepMatlab script utilizes the following code to define the variable name using the format EP_ZoneName_VariableNameUsedByEnergyPlus. Instead of using [{'Time'}; ep.outputSigName] as shown in the code below, I replaced it with [{'Time'}; {'VariableName1'};{'VariableName2'};...;{'VariableNameN'}]

Original code :

logTable = table('Size',[0, 1 + ep.nOut],...
'VariableTypes',repmat({'double'},1,1 + ep.nOut),...
'VariableNames',[{'Time'}; ep.outputSigName]);

Modified code :

logTable = table('Size',[0, 1 + ep.nOut],...
'VariableTypes',repmat({'double'},1,1 + ep.nOut),...
'VariableNames',[{'Time'}; {'VariableName1'};{'VariableName2'};...;{'VariableNameN'}];
Zakaria's avatar
902
Zakaria
answered 2023-08-24 02:43:33 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments