Hello TRNSYS community,
Since I've had some problems compiling my own trnsys
component, I tried to follow the "Getting Started"
instructions and do the example of the self made type (yes, I
probably should have done that from the beggining...). But I'm
having some problems again.
I followed all the steps, except for the compiling part. I
don't have Compaq Visual Fortran 6.6,but instead I have
Microsoft Visual Studio 2015 and Intel Fortran Compiler 17.
So, I created the component in the Studio, saved the
proforma with the parameter "Mult", the two inputs...etc. And
then I exported to fortran.
Then, I opened the MVS 2015 and followed the instructions
of the "Programmers Guide", opening the sample IVF 11x and
working from there. I rebuilt the TRNDLL in Release mode.
Then, I added my type, Type 291, to the MyType folder, copied
and pasted the FORTRAN squeleton that was made by the TRNSYS
Studio. I finished the code adding the output calculation.
Then I clicked on built.
The "Mytype.dll" was created in UserLib/ReleaseDLL's. So, I
opened the TRNSYS studio, made the same project that is
indicated in "Getting started" and ran the simulation.
I get the following error:
Fatal Error at time : 0.000000
Generated by Unit : Not applicable or not
available
Generated by Type : 291
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 : Type291 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.
What did I wrong?
Thanks in advance, kind regards
Javier Vega Benavente