[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TRNSYS-users] Type155 with different versions of Matlab



Hi and thanks to both for the feedback.

I have kept my other version of 64-bit Matlab but I removed it from the path, and only kept the Matlab 2012b in that path.

Now the example Calling_Matlab does work well. I also suggest for Windows 7 users to be careful with the Windows path: in the environment variables dialogue box, there are two variables called ‘Path’, and it is the system one that should be changed.

Best,

Thibault

 

 

From: David BRADLEY [mailto:d.bradley@tess-inc.com]
Sent: Tuesday, February 27, 2018 15:47
To: TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>
Cc: Thibault Péan <tpean@irec.cat>
Subject: Re: [TRNSYS-users] Type155 with different versions of Matlab

 

Thibault,

 All of Simon's comments are relevant. Two other important notes

- make sure that your user account and the built-in SYSTEM account both have administrator access on the computer.

- make sure that the path to Matlab's bin\win32 directory in the Windows environment path is the only reference to Matlab that appears in the path. Sometimes users have found problems if both Matlab 64-bit and Matlab 32-bit are referenced in the path.

kind regards,

 David

 

 

On 02/27/2018 06:21, Thibault Péan via TRNSYS-users wrote:

Dear TRNSYS users,

I am trying to call Matlab from TRNSYS using the Type155.

I am using TRNSYS 17.02.0004, and Matlab 2016a (64-bit), on Windows 7 64-bit machine. It seems that with TRNSYS 17 it is not possible to call a 64-bit version of Matlab, therefore I followed the following steps:

1.       Install Matlab 2012b 32-bit (a version for which the configured Type155 is available)

2.       Extracted the Type155.dll for Matlab2012b, from the folder “C:\Trnsys17\Exe\DLLs”, and copied the file in “C:\Trnsys17\Exe”

3.       Added the folder “C:\Program Files (x86)\MATLAB\R2012b\bin\win32” to Windows search path

I got these insights from a conversation on this topic here: https://www.researchgate.net/post/Problem_calling_matlab_with_TRNSYS_17

However, I still can’t get it to work, and I get the error: “Your input file uses Type 155 (Calling Matlab). "Type155.dll" was found but could not be loaded. Please make sure that a supported version of Matlab is installed and that Matlab's "bin\win32" folder is on Windows' search path”

Am I missing something? Anything to do with the .lib files? Or should I try a different version of Matlab than the 2012b?

I also saw that if I upgrade to TRNSYS 18, the compatibility with 64-bit versions of Matlab is supported, so I might as well try that (but I am a bit scared that my existing projects in TRNSYS 17 will crash in TRNSYS 18…). The conversation was here:

http://lists.onebuilding.org/htdig.cgi/trnsys-users-onebuilding.org/2017-May/029030.html

Thanks, any help would be welcome.

Best regards,

 

Thibault Péan

PhD Candidate

INCITE – Innovative Controls For Renewable Source Integration Into Smart Energy Systems

IREC – Catalonia Institute for Energy Research

UPC – Polytechnic University of Catalonia

Descripción:
                        C:\Users\tpean\Desktop\logo.png

 

 

 




_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org



-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA
 
P:+1.608.274.2577
F:+1.608.278.1475
d.bradley@tess-inc.com
 
http://www.tess-inc.com
http://www.trnsys.com