[TRNSYS-users] TRNSYS-users Digest, Vol 126, Issue 33

Ali El-Nashar elnashar00 at hotmail.com
Wed Jun 24 23:42:07 PDT 2015


Hi Hsein,

Thank you very much for your email. After checking all the Type155.dll files matching the different Matlab versions in my .\exe\dll folder, I found that the most recent version was that of R2011b. The version of Matlab I’m using is R2014a which does not match any available files. I contacted Trnsys support and David kindly sent me a copy of the right copy of Type155.dll. After replacing the old file with the new, I followed the procedure given in your email and the problem was essentially solved. I can now use Type 155 in my Trnsys 17 projects.

Kind regards

Ali El-Nashar 
From: Hsein Moussawi 
Sent: Tuesday, June 23, 2015 10:34 PM
To: trnsys-users at lists.onebuilding.org 
Subject: Re: [TRNSYS-users] TRNSYS-users Digest, Vol 126, Issue 33 

Hi Ali, 

In fact I faced similar problem while trying to connect the two software. As David said you must check which MATLAB version is supported in your TRNSYS version. If you are using trnsys 17, following the below steps must solve your problem:


  a.. Install MATLAB in your computer with specific MATLAB releases are supported, only the 32-bit versions are supported (to the best of my knowledge, the last supported version is R2012b). 
  b.. Add MATLAB\bin\win32 folder directory to Windows search path. 
  c.. Select a specific (Type 155.DLL) for your MATLAB version from (TRNSYS17\Exe\DLLs) folder. 
  d.. Copy (Type 155.DLL) file to (TRNSYS17\Exe) folder. 
  e.. From (MATLAB\extern\lib\win32\lcc) folder find and copy these files (libeng.lib, libmat.lib, libmex.lib and libmx.lib) to (TRNSYS17\SourceCode\Optional folder). 
  f.. Copy (Type 155.DLL) file to (TRNSYS17\UserLib\ReleaseDLLs) folder. 
  g.. Run MATLAB as an administrator. 
  h.. Finally, write (regmatlabserver) command in MATLAB’s Command Window to register the desired MATLAB session as an automation server.


Hope you find these information useful,
Houssein.









From: trnsys-users-request at lists.onebuilding.org
Subject: TRNSYS-users Digest, Vol 126, Issue 33
To: trnsys-users at lists.onebuilding.org
Date: Tue, 23 Jun 2015 13:07:31 -0700


Send TRNSYS-users mailing list submissions to	trnsys-users at lists.onebuilding.org To subscribe or unsubscribe via the World Wide Web, visit	http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org or, via email, send a message with subject or body 'help' to	trnsys-users-request at lists.onebuilding.org You can reach the person managing the list at	trnsys-users-owner at lists.onebuilding.org When replying, please edit your Subject line so it is more specificthan "Re: Contents of TRNSYS-users digest..."

--Forwarded Message Attachment--
From: d.bradley at tess-inc.com
To: trnsys-users at lists.onebuilding.org
Date: Mon, 22 Jun 2015 15:10:31 -0500
Subject: Re: [TRNSYS-users] Trnsys - Matlab connection

Ali El-Nashar,
  If you are using the most recent TRNSYS release (17.02.0004) then you will find Type155 DLLs for other versions of Matlab located in:

..\Trnsys17\Exe\DLLs\*.zip

Extract the files from the *.zip file corresponding to your version of Matlab and place them into the ..\trnsys17\Exe directory. You can either move or replace the existing files.

If you do not have the most recent release, it would probably be best to contact your distributor and obtain it.

Please be aware that the link between TRNSYS and Matlab only works with the 32-bit version of Matlab and that you need to make sure that you and the SYSTEM user both have full control level access to the computer.
kind regards,
David



On 06/21/2015 04:34, Ali El-Nashar wrote:

  Hello everybody,

  I am trying to make a connection between  TRNSYS 17 and MATLAB (version R2014a).  When running the decks of the two “Calling Matlab” examples, I get this error message : unable to start the MATLAB engine. The version of MATLAB that I’m using apparently does not match Type155.dll installed in my computer.  I’m looking for a copy of an updated version of  Type155.dll that I can use.  Could someone help me ?

  Best regards

  Ali El-Nashar

   

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at 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 at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

--------------------------------------------------------------------------------
_______________________________________________
TRNSYS-users mailing list
TRNSYS-users at lists.onebuilding.org
http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20150625/bbb12f14/attachment-0003.htm>


More information about the TRNSYS-users mailing list