[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TRNSYS-users] User written type using external DLL



Hello everybody,

I want to write a TRNSYS type (Type203) which has to call a function of an
external DLL (netcdf). 
Therefore I have written a test type, which does nothing meaningful. It just
calls a function of the external DLL.

Compiling this type is not a problem, but simulation studio stops with the
following error:

*** Notice at time        :         0.000000
    Generated by Unit     : Not applicable or not available
    Generated by Type     : Not applicable or not available
    TRNSYS Message    199 : 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)
    Reported information  : 0 user DLLs were loaded after searching in
"C:\Trnsys17\UserLib\ReleaseDLLs"
 
*** Fatal Error at time   :         0.000000
    Generated by Unit     : Not applicable or not available
    Generated by Type     :   203
    TRNSYS Message    105 : 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
    Reported information  :  Type203 could not be located in either the
trndll.dll or in an external dll. Please relink theTRNDll.dll including this
Type or make sure that an external DLL in the \UserLib\DebugDLLs and
\UserLib\ReleaseDLLs folders contain the Type.

, though the DLL of the Type (and the external DLL) is located in the
ReleaseDLLs directory.  Furthermore, if I comment the call to the external
DLL out, everything works fine.

Has anyone an idea how to use external DLLs in TRNSYS?

Thanks and best regards 
 Sven

---
Sven Böttcher
Diplom-Informatiker
Wissenschaftlicher Mitarbeiter

Technische Universität Dortmund
Fakultät Architektur und Bauingenieurwesen
Juniorprofessur Energieeffizientes Bauen

Baroper Straße 301
44227 Dortmund

Tel.: 0231 755 5248
Fax: 0231 755 5423

http://www.bauwesen.uni-dortmund.de/eeb/