<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Ali,<div><br></div><div>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:</div><div><span style="font-size: 12pt;"><br></span></div><div><ul><li><span style="font-size: 12pt;">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).</span></li><li><span style="font-size: 12pt;">Add MATLAB\bin\win32 folder directory to Windows search path.</span></li><li><span style="font-size: 12pt;">Select a specific (Type 155.DLL) for your MATLAB version
from (TRNSYS17\Exe\DLLs) folder.</span></li><li><span style="font-size: 12pt;">Copy (Type 155.DLL) file to (TRNSYS17\Exe) folder.</span></li><li><span style="font-size: 12pt;">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).</span></li><li><span style="font-size: 12pt;">Copy (Type 155.DLL) file to (TRNSYS17\UserLib\ReleaseDLLs)
folder.</span></li><li><span style="font-size: 12pt;">Run MATLAB as an administrator.</span></li><li><span style="font-size: 12pt;">Finally, write (regmatlabserver) command in MATLAB’s
Command Window to register the desired MATLAB session as an automation server.</span></li></ul><br></div><div>Hope you find these information useful,</div><div>Houssein.</div><div><div><p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p>

<p class="MsoNormal"><o:p></o:p></p></div><br><div>From: trnsys-users-request@lists.onebuilding.org<br>Subject: TRNSYS-users Digest, Vol 126, Issue 33<br>To: trnsys-users@lists.onebuilding.org<br>Date: Tue, 23 Jun 2015 13:07:31 -0700<br><br><pre>Send TRNSYS-users mailing list submissions to<br>   trnsys-users@lists.onebuilding.org<br> <br>To subscribe or unsubscribe via the World Wide Web, visit<br>      <a href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a><br> <br>or, via email, send a message with subject or body 'help' to<br>  trnsys-users-request@lists.onebuilding.org<br> <br>You can reach the person managing the list at<br>  trnsys-users-owner@lists.onebuilding.org<br> <br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of TRNSYS-users digest..."<br></pre><br><br>--Forwarded Message Attachment--<br>From: d.bradley@tess-inc.com<br>To: trnsys-users@lists.onebuilding.org<br>Date: Mon, 22 Jun 2015 15:10:31 -0500<br>Subject: Re: [TRNSYS-users] Trnsys - Matlab connection<br><br>
  
    
  
  
    Ali El-Nashar,<br>
      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:<br>
    <br>
    ..\Trnsys17\Exe\DLLs\*.zip<br>
    <br>
    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.<br>
    <br>
    If you do not have the most recent release, it would probably be
    best to contact your distributor and obtain it.<br>
    <br>
    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.<br>
    kind regards,<br>
     David<br>
    <br>
    <br>
    <div class="ecxmoz-cite-prefix">On 06/21/2015 04:34, Ali El-Nashar
      wrote:<br>
    </div>
    <blockquote cite="mid:COL131-DS7B250BD3CDB13B26B2D4BC1A20@phx.gbl">
      <div dir="ltr">
        <div style="FONT-SIZE:12pt;FONT-FAMILY:'Calibri';COLOR:#000000;">
          <div><font face="Times New Roman">Hello everybody,<br>
              <br>
              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 ?<br>
              <br>
              Best regards</font><br>
          </div>
          <div>Ali El-Nashar</div>
        </div>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
TRNSYS-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="ecxmoz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" target="_blank">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <br>
    <pre class="ecxmoz-signature">-- 
***************************
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
<a class="ecxmoz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="ecxmoz-txt-link-freetext" href="http://www.tess-inc.com" target="_blank">http://www.tess-inc.com</a>
<a class="ecxmoz-txt-link-freetext" href="http://www.trnsys.com" target="_blank">http://www.trnsys.com</a></pre></div></div>                                          </div></body>
</html>