<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="date"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=FR link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Dear Eric,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>The MATLAB DLLs are
linked in dynamically, it is not necessary to update the PROFORMA (updating the
Proforma has no impact on the simulation).<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>You should contact your
TRNSYS distributor in order to obtain the binary version of type155 compatible
with the MATLAB version you use. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Sincerely, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'>Werner<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>De :</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
ericjhwilson@gmail.com [mailto:ericjhwilson@gmail.com] <b><span
style='font-weight:bold'>De la part de</span></b> Eric Wilson<br>
<b><span style='font-weight:bold'>Envoyé :</span></b> lundi <st1:date
Year="2008" Day="22" Month="9" ls="trans" w:st="on">22 septembre 2008</st1:date>
20:01<br>
<b><span style='font-weight:bold'>À :</span></b> trnsys-users@cae.wisc.edu<br>
<b><span style='font-weight:bold'>Objet :</span></b> [TRNSYS-users]
"Unable to start the Matlab Engine" using MATLAB R14Type 155</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
I am using TRNSYS version 16.01.0002 trying to run the "Calling
Matlab" example. I am using Matlab 7.0 (R14), although Matlab 2006
was previously installed on this computer so that might be causing problems.<br>
<br>
I get the error:<br>
"Access violation at address 04ED1457 in module 'libeng.dll'. Read of
address 00000004."<br>
<br>
followed by:<br>
"An unexpected error was encountered and TRNSYS will abort."<br>
<br>
The log file reads "Message: Unable to start the Matlab Engine".<br>
<br>
I opened the Type155.tmf file and noticed that on the "Files" tab the
"Source Code File" path is
".\SourceCode\Types\Type155.f90". However, this file is not
located at that path, but rather at ".\SourceCode\Optional\Type155.f90"<br>
<br>
I tried copying it (and those four .lib files) to the Types directory.
Clicking the "Edit" button will now find the file, but clicking
"Compile Module" still can't find the file in this location.<br>
<br>
I have the Windows search path properly set to "C:\Matlab\bin\win32"<br>
<br>
How do I make sure the routine is linked with the libeng.lib, libmat.lib,
libmex.lib and libmx.lib files?<br>
<br>
I have tried copying these files from the Matlab installation
(C:\Matlab\extern\lib\win32\...) to the "SourceCode\Optional\"
directory. However, there are several versions of each file. How do I
know which folder to get them from (i.e. watcom, microsoft, lcc, digital
borland)? My Fortran compiler is Compaq Visual Fortran 6.6.0 (Microsoft
Visual Studio DF98).<br>
<br>
Do I need to recompile Type155, as suggested by Diego in a previous
message? I assume that this is done by clicking "Compile
Module" on the "Files" tab of Type155.tmf, however I get an
error as mentioned above.<br>
<br>
Thank you in advance for any help or suggestions you can give me.<br>
<br>
Eric Wilson<br>
Building Systems Program<br>
University of Colorado at Boulder<br>
<br>
<br>
<br>
<o:p></o:p></span></font></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
<br>
<br>
************************************************************************************<br>
This footnote confirms that this email message has been scanned by<br>
PineApp Mail-SeCure for the presence of malicious code, vandals & computer
viruses.<br>
************************************************************************************<br>
<br>
<o:p></o:p></span></font></p>
</div>
</body>
</html>
<BR>
<BR>
<BR>
<BR>
************************************************************************************<BR>
This footnote confirms that this email message has been scanned by<BR>
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.<BR>
************************************************************************************<BR>
<BR>
<BR>