[TRNSYS-users] Debugging TRNSYS using Microsoft Visual Studio 2010

David BRADLEY d.bradley at tess-inc.com
Fri Sep 28 09:24:11 PDT 2012


Sleiman,
   There are a few things that you need to do. First, you need to take a 
copy of the TRNDll out of the ..\Trnsys16\Compilers\Ivf111\TRNDll\Debug\ 
directory and move it into the ..\Trnsys16\Exe directory. In order to 
debug, your DLLs all have to be in debug mode. As soon as you move the 
debug version of TRNDll.dll into the ..\Exe directory, TRNSYS will start 
looking for external DLLs in the ..\Trnsys16\UserLib\DebugDLLs\ 
directory (instead of in the ..\Trnsys16\UserLib\ReleaseDLLs\ directory. 
Next, you need to change your DLL compile/link project from "release 
mode" to "debug mode" using the configuration manager. Last, you need to 
edit your compiler solution's properties. Select "ProjectName 
properties" from the "Project" menu. Select the "debugging" entry under 
"configuration properties" and then enter

c:\Program Files\Trnsys16\Exe\TRNExe.exe

in the "command" window.

There may be some other settings that you need to modify; I am not sure 
how you generated the project that you are using to compile and link 
your DLL.
Kind regards,
  David



On 9/25/2012 04:06, Farah, Sleiman - farsy019 wrote:
>
> Dear all,
>
> I created a component (type165) in TRNSYS 16 under windows 7 using 
> Microsoft Visual Studio 2010. This component (solar collector) is 
> connected to a weather data reader, pump, and hot water storage tank. 
> In the simulation studio, the simulation stalls at a specific time 
> without any error message. I believe that the simulation is not able 
> to converge at that time which is making TRNSYS irresponsive. I have 
> been trying to debug the component, however an error message {Unable 
> to start program 'C:\Program 
> Files\Trnsys16\UserLib\ReleaseDLLs\Type165Lib.dll'} keeps popping up 
> in Microsoft Visual Studio as soon as F5 (debug) is clicked. The file 
> (Type165Lib.dll) do exist in that directory.
>
> Any suggestion how to make the debugging possible is highly appreciated.
>
> Regards,
>
> Sleiman
>
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://mailman.cae.wisc.edu/listinfo/trnsys-users

-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20120928/41e7e7d5/attachment-0005.htm>


More information about the TRNSYS-users mailing list