Artemi, I am supposing that you are using TRNSYS 16. In this case, the usual procedure for generating new components is as follows: 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. 2. select "Export as... Fortran" from the File menu. 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. >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. Kind regards, David Artemi Spanaki wrote:
-- *********************************************************************** 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: bradley@tess-inc.com Web Pages: http://www.tess-inc.com and http://www.trnsys.com *********************************************************************** |