[TRNSYS-users] Creating new component

Mäkinen Janne janne.makinen at aalto.fi
Thu Nov 29 00:50:13 PST 2012


I was able to make .dll file using TRNSYS manual example and what you told, but should I move that .dll file from ..\Trnsys17\Compilers\Ivf11x\MyType\Release to ..\Trnsys17\UserLib\ReleaseDLLs\?

Compiling didnt give any errors and allso TRNSYS does not give any errors for the simulation but that new component does not seem to work. I am using Equa + my own type to test it (like getting started manual does):
Equa: time*2
my own type: Out1=Inp1+Par1

Result is that every timestep Out1 = 0

Is there something else that I should do while compiling that file?

On another topic, is it possible to use own subroutine within Type?


Lähettäjä: David BRADLEY [d.bradley at tess-inc.com]
Lähetetty: 26. marraskuuta 2012 23:25
Vastaanottaja: Mäkinen Janne
Cc: trnsys-users at cae.wisc.edu
Aihe: Re: [TRNSYS-users] Creating new component

  The Intel compiler used to be able to convert a *.dsp file (which was the project format for Compaq's Fortran compiler) to its own *.sln format. It doesn't seem to be able to do so anymore. Open the ..\Trnsys17\Compilers\Ivf11x\Ivf11x.sln file. In it, there should be a MyType project. Right click that project and add the skeleton code that was created by the Studio.
Kind regards,

On 11/22/2012 07:21, Mäkinen Janne wrote:


I am trying to create a new component by using Intel Visual Fortran Composer XE 2011 with Microsoft Visual Studio 2008. I followed the instructions described in Chapter 1.8 in the getting stated manual to generate the new component; however the project workspace generated by TRNSYS has an extension .dsp and I am unable to open this project file. When I try to open the .dsp file with Microsoft Visual Studio, I am asked if I want to convert the file into a Visual C++ project file, which generates a .ncb and a .vcproj files. When I try to build the project compailer creates .sln file and I obtain the following two errors(Build log as attachment file):

Error LNK2001: unresolved external symbol__DllMainCRTStartup at 12
Fatal error LNK1120: 1 unresolved externals

Is that compiler supposed to convert that .dsp file into visual C++ project? Could there be problems with some settings or that project file or am I perhaps doing something wrong?

Thank you,


TRNSYS-users mailing list
TRNSYS-users at cae.wisc.edu<mailto:TRNSYS-users at cae.wisc.edu>

Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

d.bradley at tess-inc.com<mailto:d.bradley at tess-inc.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20121129/0e096e2a/attachment-0001.htm>

More information about the TRNSYS-users mailing list