Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during installing the toolbox #9

Open
Zakio12 opened this issue Mar 13, 2023 · 2 comments
Open

Errors during installing the toolbox #9

Zakio12 opened this issue Mar 13, 2023 · 2 comments

Comments

@Zakio12
Copy link

Zakio12 commented Mar 13, 2023

Dear Dostal,
I am trying to use the EnergyPlus Co-simulation Toolbox and when I run the setupMlep.m and choose the energyplus path I get the following error.
I would appreciate your help.
Thanks you.
PS: I use E+ V9.0 and Matlab R2015a


setupMlep
Error: File: mlepSO.m Line: 568 Column: 19
The input character is not valid in MATLAB statements or expressions.
Error in setupMlep (line 60)
versionEnergyPlus = mlep.getEPversion(iddPath);


@Zakio12
Copy link
Author

Zakio12 commented Feb 5, 2024

I have used another version of Matlab and the toolbox is running fine if I choose output variables with short names. However, when I choose a variable with a long name, the error below appears.

Error using table (line 335)
'EP_ZN__Refrigeration_Air_Chiller_System_Total_Compressor_Electric_Energy'
is longer than the maximum allowed length for a
table variable name.
Error in mlepMatlab_example (line 41)
logTable = table('Size',[0, 1 + ep.nOut],...

@Zakio12
Copy link
Author

Zakio12 commented Feb 5, 2024

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've simply 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'}];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant