[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: writing your own component
- Date: Mon, 03 Mar 2003 17:28:35 +0100
- Date: Mon, 3 Mar 2003 11:26:15 -0600
- From: Werner Keilholz <werner@xxxxxxx>
- Subject: Re: writing your own component
Ruut Brandsma wrote:
Dear reader,
I plan to make a greenhouse component in Trnsys. I studied chapter 2 and 3
of the reference manual and I also studied the description of type 61
(calling external DLL). Could you tell me what the disadvantages are of
calling an external DLL instead of making a component with Fortran.
With kind regards,
Dear Ruut,
Using a DLL is rather considered as an advantage, in that you can
use other programming languages than FORTRAN (C, C++, ...
anything that can produce a DLL).
The only disadvantage I see in type 61 is that it is currently limited
to one TYPE. If you want to make more than one component,
you'd have to use a parameter to indicate a sort of 'sub-type'
(and then use it in your program to decide which function to
call).
TRNSYS 16 will be even more flexible as far as the DLL
architecture is concerned, since it will allow as many DLLs
as you want simultaneously, containing as many types as
you wish each... So I'd say, DLL is the future ... (2004 ?).
Werner
--
/ \____ Werner Keilholz, Software Development Group Leader
\____/ CSTB Sophia Antipolis, SAIL
/ \____ s-mail: BP 209, 06904 SOPHIA ANTIPOLIS, F R A N C E
\____/ phone: +33 (0)4 93 95 67 00 -- fax: +33 (0)4 93 95 67 33
/ \____ Mailto:werner@cstb.fr
\____/ http://evl.cstb.fr/english/team/WK/werner.htm
Don't miss the 5th European and French TRNSYS meeting
http://software.cstb.fr/events/5th_TRNSYS_meeting.pdf