<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Fabio,<br>
There are two parts to getting a Type in an external DLL to load
and run properly. The first is that the dll must be located in the
correct spot, which you have done (thank you for taking the time to
look through the log and list files for related information and for
putting everything in your email). The second part is that the name
of the routines inside the dll must be correctly exported. This is
something that the author of the Type needs to do (in this case
Transsolar). If you recently updated from Trnsys17.1 to Trnsys17.2
then you simply need to ask Transsolar for an updated version of
Type399.<br>
Kind regards,<br>
David<br>
<br>
<br>
<div class="moz-cite-prefix">On 1/12/2015 09:34, Fabio Grossule
wrote:<br>
</div>
<blockquote cite="mid:DUB128-W923825105E3AE7BCA13A15EC430@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><font size="3">Hi TRNSYS-users,</font>
<div><font size="3"><br>
</font></div>
<div><font size="3">I built a model in TRNSYS but when I run the
simulation it doesn't work and I keep on getting the
following error message:</font></div>
<div><font size="3"><br>
</font></div>
<div><b><font size="3">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 Reported information :
Type399 could not be located in either the trndll.dll or
in an external dll. Please relink theTRNDll.dll including
this Type or make sure that an external DLL in the
\UserLib\DebugDLLs and \UserLib\ReleaseDLLs folders
contain the Type.</font></b></div>
<div><b><font size="3"><br>
</font></b></div>
<div><font size="3">The component 399 models phase change
materials (PCM) and it's not included in the standard TRNSYS
libraries.</font></div>
<div><font size="3">I consulted some previous discussion related
to this topic and I did this:</font></div>
<div><font size="3">- I put the .dll file in the <span
style="color: rgb(34, 34, 34); background-color: rgb(255,
255, 255);">\UserLib\DebugDLLs and \UserLib\ReleaseDLLs
folders</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);">- I put the </span><span
style="color: rgb(34, 34, 34); background-color: rgb(255,
255, 255);">sourcecode file .f90 in the TRNSYS folder
Sourcecode/types</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);">But it doesn't work
either.</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font color="#222222" size="3"><span
style="background-color: rgb(255, 255, 255);">I checked
the .log file as well and there is written:</span></font></div>
<div><font color="#222222" size="3"><span
style="background-color: rgb(255, 255, 255);"><b><br>
</b></span></font></div>
<div><font color="#222222" size="3"><span
style="background-color: rgb(255, 255, 255);">
<div style="font-weight: bold;">Notice at time :
0.000000</div>
<div style="font-weight: bold;"> Generated by Unit
: Not applicable or not available</div>
<div style="font-weight: bold;"> Generated by Type
: Not applicable or not available</div>
<div style="font-weight: bold;"> Message
: "Type399.dll" was found but did not contain any
components from the input file.</div>
<div><br>
</div>
<div>So I think that there might be a problem in the deck
file.</div>
</span></font></div>
<div><font color="#222222" size="3"><span
style="background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);">Please, do you have
any suggestions about how to fix the error?</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);">Best regards,</span></font></div>
<div><font size="3"><span style="color: rgb(34, 34, 34);
background-color: rgb(255, 255, 255);">Fabio</span></font></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<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>
<br>
<pre class="moz-signature" cols="72">--
***************************
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="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>