<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Artemi,<br>
I am supposing that you are using TRNSYS 16. In this case, the usual
procedure for generating new components is as follows:<br>
<br>
1. create a new Proforma in the Studio with all of the correct
parameters, inputs, and outputs. Save the proforma somewhere in the
..\Trnsys16_1\Studio\Proformas\ directory.<br>
2. select "Export as... Fortran" from the File menu. <br>
<br>
this second step does a lot of things. First, it generates a template
of the component code with the correct input / output structure and
saves it as a file called TypeXXX.for (in which XXX is the Type number
that you selected). Second, it generates a Compaq Visual Fortran
workspace with all the settings correct for generating a new external
DLL for use with TRNSYS. If your paths are correct in the Studio, CVF
Fortran will then be launched. Of they aren't you can manually browse
to find the project that was created (TypeXXX.dsw). The workspace will
reference all of the correct TRNSYS files. More complete instructions
can be found in the 08-Programmer's Guide manual.<br>
<br>
>From what you write, it sounds as though you are trying to use the
command line version of the compiler and not its graphical interface. I
would highly recommend using the interface as it provides a great deal
of help in debugging new components.<br>
Kind regards,<br>
David<br>
<br>
<br>
Artemi Spanaki wrote:
<blockquote cite="mid:BAY114-W29C3B0F78A5D58808C0A28C7170@phx.gbl"
type="cite">
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Dear David<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">I try to create a new component in Fortran. I
installed the “Microsoft Visual Studio” a software that contains Compaq
Visual Fortran 6.6. The file “Dfdev.exe” that is set by default in the
directories card of settings (demanded Fortran environment) command is
ok. The problem is the file named “devenv.exe” that is demanded for C++
environment does not exist. I suppose that this is not a problem since
I don’t use C++. <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">The big problem is that the file named
“msdev.exe” for compiler command and the file named “alltrn32.bat” for
linker command do not exist. The software of Compaq Visual Fortran is
not enabled by when simulation studio is running. As a result, when I
try to create the dll file for the new component, I get a number of
errors for the commands of the fortran code that get data from TRNSYS.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Additionally, on the source code of my new
component there is the *.for file for source code file but the
compiling command is empty and gives me the following message: “The
system cannot find the file specified”<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Have you got any idea about how can I solve
this problem? <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Thank you very much.<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Yours sincerely,<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman">Artemi Spanaki<o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
lang="EN-US"><font size="3"><font color="#000000"><font
face="Times New Roman"> <o:p></o:p></font></font></font></span></p>
<RTE_TEXT></RTE_TEXT><br>
<hr>Get news, entertainment and everything you care about at
Live.com. <a moz-do-not-send="true"
href="http://www.live.com/getstarted.aspx%20" target="_new">Check it
out!</a>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users">https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
***********************************************************************
Thermal Energy System Specialists (TESS), LLC
David BRADLEY 22 N. Carroll Street - Suite 370
Partner Madison, WI 53703
USA
P: +1.608.274.2577
F: +1.608.278.1475
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:bradley@tess-inc.com">bradley@tess-inc.com</a>
Web Pages: <a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a> and <a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a>
***********************************************************************</pre>
</body>
</html>