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

Re: [TRNSYS-users] TRNSYS ERROR (dll loaded but not found)



Mehdi,

 

Thank you for your prompt response.  The correct type number is used in the proforma window.  The Type number is uniform throughout the Fortran code.  I am using Intel Visual Fortran 2011 XE.  I have a written a number of components that work successfully, I cannot understand what the problem is here.

 

-Aaron

 

From: Mehdi Shahrestani [mailto:mahdishahrestani@yahoo.com]
Sent: Tuesday, July 12, 2011 4:20 PM
To: 'Aaron J. Danenberg'; trnsys-users@cae.wisc.edu
Subject: RE: [TRNSYS-users] TRNSYS ERROR (dll loaded but not found)

 

Aaron

 

Check the following items.

1-Make sure that the type number mentioned in the main windows of proforma is correct (in this case 203)

2- If you copy and modified any exiting code as a new code, make sure in main code (FORTRAN or …) the previous type number is changed to the new number (this case 203)

3- Make sure dll compiling is performed in release mode (if you using CVF )

 

Hope these solve your problem

Mehdi

 

 

 


From: trnsys-users-bounces@cae.wisc.edu [mailto:trnsys-users-bounces@cae.wisc.edu] On Behalf Of Aaron J. Danenberg
Sent: 12 July 2011 21:10
To: trnsys-users@cae.wisc.edu
Subject: [TRNSYS-users] TRNSYS ERROR (dll loaded but not found)

 

I have encountered an error when trying to run a simulation with a user written component.  The list file indicates the Type has been loaded, then later states that the type cannot be found.  See error received below.

 

*** Notice at time        :         0.000000

    Generated by Unit     : Not applicable or not available

    Generated by Type     : Not applicable or not available

    Message               : "Type203.dll" was found but did not contain any components from the input file.

 

There is a Type 203 in the simulation, and then when it is called, it cannot be found.

 

*** Fatal Error at time   :         0.000000

    Generated by Unit     :     2

    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  : Not available

 

The performa uses Type number 203, the dll was written with Type203 on the first line of the code.

 

SUBROUTINE TYPE203 (TIME,XIN,OUT,T,DTDT,PAR,INFO,ICNTRL,*)

 

The dll i stored in the "Release Folder" in the User Lib.  Any ideas on how this is happening?

 

Aaron J. Danenberg

Graduate Research Assistant

Candidate for Master of Mechanical Engineering, September 2011

University of Hartford

Dana Hall 103, Research Laboratory 1

200 Bloomfield Ave.

West Hartford, CT 06117

M: 203 - 610 - 2509