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

Re: [TRNSYS-users] New Module with External File



Ken and Yoshihiro,
I wrote an access function recently (I am not sure whether it is part of the most recent TRNSYS release) that returns the full path of the file that is associated with a logical unit number. The call is:

CharacterString = getLUFileName(i)

where i is the integer logical unit associated with the file whose name you want.

Kind regards,
 David


At 07:37 11/22/2006, Yoshihiro Yamaguchi wrote:
Dear Ken,

How are you doing?

As far as I know, there is no way to get a fullpath of external file.
In TRNSYS, FORTRAN logical unit is provided to access an external
file, instead of providing fullpath name.
Since the logical unit cannot be used with C/C++ runtime library,
there is no smart way to handle an external file by C/C++, currently.

This topic has been already discussed in the threads shown below.
https://www.cae.wisc.edu/pipermail/trnsys-users/2005/000694.html
https://www.cae.wisc.edu/pipermail/trnsys-users/2005/000696.html

As Michael sugguested, using labels is easy to pass a filename.

Regards,
Yoshihiro

> Dear all,
>
> I try to make a new TYPE with external data files with TRNSYS 16.1.
>
> I made a tmf project and exported as C++ project.
> But I cannot find the method of getting the pathnames of external files
> in C++ project.
>
> How I get the pathnames of external files in the exported C++ project?
> Or Is it impossible?
>
> Thanks in advance
>
> Ken Hatakeyama
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users@engr.wisc.edu
> https://www.cae.wisc.edu/mailman/listinfo/trnsys-users


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

****************************************************************************************
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@tess-inc.com
Web Pages:  http://www.tess-inc.com     and      http://www.trnsys.com

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