[BLDG-SIM] TRNSYS:Problems in adding a new component using C++

David Bradley bradley at tess-inc.com
Fri Jul 8 13:14:01 PDT 2005


Pedro,
   I am by no means an expert in writing C++ components for TRNSYS but I 
think the problem is in the header file that you need to include in your 
C++ project. The file:

..\Trnsys16\Compilers\Cpp-Mvs2003\Include\trnsys.h

does not include references to all of the TRNSYS utility subroutines that 
are available. You can add a reference to PSYCHROMETRICS following the 
syntax that is shown in the file for communicating between a C++ component 
and the TYPECK subroutine.

If I am incorrect about this, I would appreciate if one of the other TRNSYS 
experts out there would add their thoughts.
Cheers,
   David

At 10:13 AM 7/1/2005, Pedro Rodrigo wrote:
>Hi all:
>
>I'm programming an enthalpy recovery unit in C
>language for adding it to the users components library
>in Trnsys (Trnsys' standard libraries currently only
>have sensible heat recovery modules) . For this
>purpose I need to use the Trnsys function
>PSYCHROMETRICS, which is described in the programmers
>manual.
>I have no problems to compile my new module in my C++
>compiller (Microsoft Visual C++) but when I try to
>execute it in Trnsys Studio an error like this occurs:
>"Address violation at address 00DE02DD in module
>'TRNDLL.DLL'. Read of address 00000002";"An unexpected
>error was encountered and Trnsys will abort".
>Have you used the PSYCHROMETRICS function in your
>modules? Could you explain me what am I doing wrong?
>Thanks in advance,
>Regards,
>
>
>Pedro Manuel Rodrigo Cruz
>University of Jaen, Spain
>
>
>
>______________________________________________
>Renovamos el Correo Yahoo!
>Nuevos servicios, más seguridad
>http://correo.yahoo.es
>
>======================================================
>You received this e-mail because you are subscribed
>to the BLDG-SIM at GARD.COM mailing list.  To unsubscribe
>from this mailing list send a blank message to
>BLDG-SIM-UNSUBSCRIBE at GARD.COM

****************************************************************************************
Thermal Energy System Specialists (TESS), LLC
David BRADLEY                           2916 Marketplace Drive - Suite 104
Partner                                        Madison, WI 53719
Phone: (608) 274-2577 USA
Fax: (608) 278-1475
E-mail: bradley at tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com

"Providing software solutions for today's energy engineering projects"
****************************************************************************************


===========================
You received this e-mail because you are subscribed 
to the BLDG-SIM at GARD.COM mailing list.  To unsubscribe 
from this mailing list send a blank message to 
BLDG-SIM-UNSUBSCRIBE at GARD.COM



More information about the Bldg-sim mailing list