<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Salma,</p>
    <p> The most common cause of this problem is that the Type155.dll
      file located in your .\Trnsys18\Exe\ directory is not the one for
      the version of Matlab that you are using. Look in the
      ..\Trnsys18\Exe\DLLs\ directory and you'll find various *.zip
      files containing versions of Type155.dll for different versions of
      Matlab. If you find your Matlab version then replace the existing
      Type155.dll with the one from the *.zip file. <br>
    </p>
    <p> There are a number of other possible causes of this error. It is
      hard to diagnose because a lot of times it has to do with the
      configuration of Matlab and TRNSYS and your computer. Here is the
      knowledge base that we have collected:</p>
    <p>•    Avoid the use of the Matlab “clear all” statement. This
      statement has been found to delete all of the data that is being
      passed from TRNSYS to Matlab.<br>
      •    <b>Make sure that neither TRNSYS nor Matlab is installed in
        the .\Program Files\ directory.</b><br>
      •    <b>Make sure that both your user account and the SYSTEM user
        (a built-in Windows user account) have full administrative
        privileges.</b> <br>
      •    <b>The Type155.dll in your ..\TrnsysXX\Exe directory must
        match the version of Matlab that you are using. DLLs for various
        Matlab releases are located in the ..\TrnsysXX\Exe\DLLs\
        directory. If you find your version of Matlab there, extract the
        Type155.dll and place it in ..\TrnsysXX\Exe, replacing the file
        that is already in that location. If you do not see your version
        of Matlab in the ..\TrnsysXX\Exe\DLLs\ directory please contact
        your distributor; they can provide you with an appropriate
        version of the file.</b><br>
      •    Add the path to libeng.dll, which is normally located in
      C:\Matlab\bin\win64, to your windows search path (assuming you
      installed in C:\Matlab, otherwise adapt)<br>
      •    To do this, in Control Panel, System, Advanced System
      Settings, Environment variables, edit the Path variable (we
      recommend that you edit the one in System Variables rather than
      User Variables). Add “C:\Matlab\bin\win64;” (without the quotes
      but with the trailing semicolon) at the beginning of the search
      path. You will notice that Matlab has added other subdirectories
      of C:\Matlab to the path but not that one (and you thought TRNSYS
      was bad…).<br>
      •    If you also install the 32-bit version of Matlab you should
      make sure that the win64 directory appears before all other
      references to Matlab in the path. NOTE: some users have found that
      they need to remove all other references to Matlab in the path,
      regardless of their relative placement.<br>
      •    Note that if you change the path while the TRNSYS Studio is
      running you will need to restart the TRNSYS Studio.<br>
      •    Some users have found it necessary to run the command
      'regmatlabserver' in your Matlab command window. This registers
      Matlab as comserver.<br>
      <br>
    </p>
    <div class="moz-cite-prefix">On 11/12/2019 13:01, SALMA LAHMAR via
      TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFpXWopNjFrsRo-2y3aHg1-EjzVGk=a7=j+nwMLu3baJK0MyVg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello<br>
        I need urgent help, 
        <div>I use Matlab 2015 64 bit with trnsys 18 I have this erreur
          : <span style="color:rgb(0,0,0);white-space:pre-wrap">"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"</span><br>
        </div>
        <div><span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
        <div>Respectfully </div>
        <div>salma <span style="color:rgb(0,0,0);white-space:pre-wrap">
</span></div>
      </div>
      <div hspace="streak-pt-mark" style="max-height:1px"><img alt=""
          style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=acy5sYWhtYXJAZW5pbS5hYy5tYQ%3D%3D&type=zerocontent&guid=cdd86cda-f391-4204-ba4a-ba224408c169"
          moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

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