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

RE: [TRNSYS-users] debugging in studio



Dear Kyle, 

Although the Studio will help you set up a new TYPE, it is not meant for
debugging TYPES. 

Once you start to develop algorithms, you should use your usual development
environment for debugging - it is much more powerful for this than the
Studio ever could be. Also, different programming languages will use
different environments (remember that you can now make types in C++, Excel
or Visual Basic).

For example, if you are using FORTRAN, open the .dsw file (the Workspace
generated by the Studio) in your FORTRAN environment (such as Compaq Visual
FORTRAN or Intel FORTRAN), change the project type to 'Debug' (under
'Build/Set active configuration) and run (hit F5). 

If you are asked for the 'EXE for debug session', browse to 
.\Trnsys16\Exe\TRNExe.exe 

TRNSYS will ask you for the deck to run (specify the one you made with the
Studio). 

Now if your TYPE crashes, FORTRAN will normally show you the exact line
where it happened, all variables with their values, etc.

Werner 


-----Message d'origine-----
De : trnsys-users-bounces@engr.wisc.edu
[mailto:trnsys-users-bounces@engr.wisc.edu] De la part de Benne, Kyle
Envoyé : mardi 21 juin 2005 01:45
À : trnsys-users@engr.wisc.edu
Objet : [TRNSYS-users] debugging in studio


When running a new type in the studio I receive a runtime error: M6201:
MATH :Domain error.  I believe this could be due to division by zero or
something along those lines.  Is there a resource that describes the error
messages and are there debug tools available in the studio?  The
documentation seems limited on debugging in the studio so if anyone can
point me in the right direction I would appreciate it.

Thank You,

Kyle Benne
NREL Summer Intern

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@engr.wisc.edu
https://www.cae.wisc.edu/mailman/listinfo/trnsys-users