Dear Hilde, I
am in the process of updating our COMIS Web pages for TRNSYS 16 (sorry, it still
takes some time). I have just sent you an email including the updated source
code of type 157, the workspace and the finished DLL in release mode. If
you don't want to bother compiling, just copy Type157_31.dll into Trnsys16\UserLib and all COMIS 3.1 examples should work (if they don't, please tell
me). If
you want to use my compile project, it expects COMIS in \comis32 and Trnsys in
\Trnsys16 (There
is a slight difference in the way the type has to be compiled (like for all
types, you have to add a line like !DEC$ATTRIBUTES
DLLEXPORT :: TYPE157 to you source, to make the type visible). If
any other COMIS user wants it, please just send me an email. Werner -- /
\____ *** 7èmes
Journées TRNSYS francophones : 25-27 Mai 2005 *** -----Message d'origine----- Dear TRNSYS-16 users, I am trying
to implement COMIS 3.1 as an external dll (type 157.dll) in
TRNSYS 16 - I have already used the coupling between TRNSYS 15 and COMIS - but
have some problems. I used CVF 6.6B, followed the
instructions in the manual to create a library of user components (progammer's
guide p.8-114 to 116), added the source code of COMIS
(except COMV-MAI.for) and the coupling file COMV-TRN.for as described
in the coupling package of COMIS 3.1-Trnsys 15.3 and succesfully created
type157.dll in Trnsys16\Userlib. But I failed to run the example of calling
Comis 'rest_comT16_C31.tpf' and got the following warmings and errors: - notice: "Type157.dll"
was found but did not contain any components from the input file. - notice 2: TRNSYS found at least
one user DLL in the UserLib directory. (Note: Only DLL's including Types that
are used in the simulation are loaded) 0 user DLLs were loaded after searching
in "C:\Trnsys16\UserLib" - Fatal Error, Generated by
Type 157: 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 Where did I go wrong? And how can I
solve this problem? best regards, hilde Hilde
Breesch |