<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">Just to add to the Maarten's advice. <br><br>Don't do that for all Matlab versions you have in your machine. I did this and took me two days of work to discover that the other version was the registered server. TRNSYS was not be able to open MATLAB engine. <br>So, <br>Do it only for the version that you have the DLL  for  (i.e., TYPE155.DLL). <br><br>regards,<br>Saleh <br><br><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Maarten Sourbron <Maarten.Sourbron@mech.kuleuven.be><br> <b><span style="font-weight: bold;">To:</span></b> "trnsys-users@cae.wisc.edu"
 <trnsys-users@cae.wisc.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, January 16, 2012 8:59 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [TRNSYS-users] Solution to TRNSYS-MATLAB problem<br> </font> </div> <br>
<div id="yiv71210702">


 
 
<style>
<!--
#yiv71210702  
 _filtered #yiv71210702 {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;}
 _filtered #yiv71210702 {font-family:"MS Mincho";panose-1:2 2 6 9 4 2 5 8 3 4;}
 _filtered #yiv71210702 {panose-1:2 2 6 9 4 2 5 8 3 4;}
#yiv71210702  
#yiv71210702 p.yiv71210702MsoNormal, #yiv71210702 li.yiv71210702MsoNormal, #yiv71210702 div.yiv71210702MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman";}
#yiv71210702 a:link, #yiv71210702 span.yiv71210702MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv71210702 a:visited, #yiv71210702 span.yiv71210702MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv71210702 pre
        {margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;font-family:"Courier New";}
#yiv71210702 span.yiv71210702EmailStyle17
        {font-family:Arial;color:windowtext;}
 _filtered #yiv71210702 {margin:70.85pt 70.85pt 70.85pt 70.85pt;}
#yiv71210702 div.yiv71210702Section1
        {}
-->
</style>



<div>

<div class="yiv71210702Section1">

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;">Hi all,</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;">  </span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">It took us quit a while to figure out why the
TRNSYS-MATLAB coupling did not work at some machines, while it did on others.</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">After trying and comparing all possible options,
recompiling the type155-dll, â€¦ the following appears to be the problem:</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">  </span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">Matlab has to be registered as a COM server.  Simply
run the following command in Matlab:</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">  </span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">regmatlabserver</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">  </span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">And it works on all machines…</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">Hopefully this helps to save time </span></font><font face="Wingdings" size="2"><span style="font-size:10.0pt;
font-family:Wingdings;" lang="EN-GB">J</span></font><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial;" lang="EN-GB"></span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">  </span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">Kind regards,</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">Maarten</span></font></div> 

<div class="yiv71210702MsoNormal"><font face="Arial" size="2"><span style="
font-size:10.0pt;font-family:Arial;" lang="EN-GB">  </span></font></div> 

<pre><font face="Times New Roman" size="2"><span style="
font-size:10.0pt;font-family:"Times New Roman";" lang="EN-GB">---<br>
PhD student<br>
Simulation of Thermal Systems Research group<br>
Departement Werktuigkunde-Department of Mechanical Engineering <br>
Katholieke Universiteit Leuven<br>
Celestijnenlaan 300A bus 2421<br>
3001 Heverlee (Leuven)<br>
T : 0032 (0)16 32 28 73<br>
F : 0032 (0)16 32 29 85<br>
E : </span></font><font face="Times New Roman"><span style="font-family:"Times New Roman";"><a rel="nofollow" ymailto="mailto:Maarten.Sourbron@mech.kuleuven.be" target="_blank" href="mailto:Maarten.Sourbron@mech.kuleuven.be"><span lang="EN-GB">Maarten.Sourbron@mech.kuleuven.be</span></a></span></font><span lang="EN-GB"></span></pre><pre><font face="Courier New" size="2"><span style="font-size:10.0pt;" lang="EN-GB"> </span></font><span lang="EN-GB"></span></pre> 

<div class="yiv71210702MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt;" lang="EN-GB">  </span></font></div> 

</div>

</div>


</div><br>_______________________________________________<br>TRNSYS-users mailing list<br><a ymailto="mailto:TRNSYS-users@cae.wisc.edu" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a><br><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users" target="_blank">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><br><br><br> </div> </div>  </div></body></html>