<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<br>Dear all ,<div>I have confronted this error message as i tried to run the Example_Matlab. Note that the Example_MultipleUnits is running completely fine.<br><br><br></div><div><<Error - Type 155 - Message : The M-File did not properly set 'mFileErrorCode' to 0 when it was called.This may indicate that an error</div><div>occured in Matlab while running the M-File. 'mFileErrorCode' was left to 1 by the M-File. You can set ignoreEngineClose to 1 and run the </div><div>'lasterr'command in Matlab to help diagnose the problem. The error occured at info(7)= 0 , info(13) = 0.>></div><div><br></div><div><br></div><div>So I opened the Solarcollector.m in order to inspect any possible errors but i couldn't figure this out,while the 'lasterr' command doesn't return anything. </div><div>Any help would be much appreciated.<br><div><br>Kind Regards,</div><div>Kostas </div><div><br></div><div><br></div><div><br></div><div><br>--Forwarded Message Attachment--<br>From: yualtunbas@gmail.com<br>To: trnsys-users@cae.wisc.edu<br>Date: Tue, 18 Sep 2012 08:12:34 +0300<br>Subject: [TRNSYS-users] Calling Matlab r2007b in Trnsys<br><br><div>Hi,</div>
<div> </div>
<div>I have problems with matlab and trnsys usage. Could you please help me? </div>
<div> </div>
<div>I am using Windows Xp 32 bit. I try to run "Calling Matlab" example via Trnsys r16 with Matlab R2007b. But I receive the following errors:</div>
<div> </div>
<div> </div>
<div>*** Fatal Error at time : 0.000000<br> Generated by Unit : Not applicable or not available<br> Generated by Type : Not applicable or not available<br> Message : 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<br>
<br>*** Fatal Error at time : 3624.000000<br> Generated by Unit : 19<br> Generated by Type : 155<br> TRNSYS Message 105 : A TYPE was called in the TRNSYS input file but was either not linked into trndll.dll or was not found in an external dll. A dummy subroutine was called in its place. Please link the TYPE or remove it from the input file<br>
Reported information : Type 155 was not found. Please make sure that Type155.dll is in the 'Userlib' folder.<br> </div>
<div> </div>
<div>Is the only suiatable Matlab version is 6.5?</div>
<div> </div>
<div>Could you please tell me a solution? Thank you.</div>
Kind Regards.<BR>
Utku Altun<BR></div></div> </div></body>
</html>