Dear Arno,
yes this is a possibility and works fine. So we have to
change the source from INQUIRE to getLUfileName if we compile with TRNSYS17
Libs. Compiling with TRNSYS 16.1 Libs (using inquire) and working with the
compiled dll (copy it to the UserLib Folder of TRNSYS17) is also possible, but
than you have to install both versions of TRNSYS.
Another confusing thing is that in the source of some
standard types of TRNSYS 17 (in the folder TRNSYS17\SourceCode\Types) still the
INQUIRE command is used.
Actually we can live with that even if it is a little bit
strange.
Thanks
for your advise and best regards,
Hermann Schranzhofer.
_______________________________________________________________ Von: Arno Dentel [mailto:Arno.Dentel@ohm-hochschule.de] Gesendet: Montag, 25. Juli 2011 13:29 An: 'Hermann Schranzhofer'; trnsys-users@cae.wisc.edu Betreff: AW: [TRNSYS-users] inquire in TRNSYS17 Dear
Hermann, have you tried to use the TRNSYS function
getLUfileName(fileID)? Kind regards, Arno 7.4.2.13.
function getLUfileName (i) A character function that returns the name of the file corresponding
to the logical unit i. If the file logical unit number has not been assigned, it
returns an error message. Example Usage INTEGER LU
CHARACTER (len=maxLabelLength) fileName ...
fileName =
getLUfileName(LU) ____________________________________ Arno
Dentel - MEng, Dipl.-Ing.(FH) Forschungsgebiet
Gebäudesysteme ieg
- Institut für Energie und Gebäude Georg-Simon-Ohm-Hochschule
für
angewandte Wissenschaften - Fachhochschule
Nürnberg Keßlerplatz
12 90489
Nürnberg Fon:
+49 - 911 - 5880 1846 Fax:
+49 - 911 - 5880 5846 E-Mail:
arno.dentel@ohm-hochschule.de Web: www.ieg.ohm-hochschule.de P
Be green - please print only when necessary. Von: trnsys-users-bounces@cae.wisc.edu
[mailto:trnsys-users-bounces@cae.wisc.edu] Im Auftrag von Hermann
Schranzhofer Dear all, we have some TRNSYS 16.1
Types and we want to use them with TRNSYS 17. Some of them use the INQUIRE
command to get the filename of a data file. The syntax is: INQUIRE(fileID,
EXIST=flag_exist, OPENED=flag_open,NAME=file_name). This works fine with TRNSYS
16.1 but not with TRNSYS 17. Debugging the code shows that the INQUIRE command
returns an empty character array for file_name. I also did a small example
(see attachment). Can anyone help
me? Thanks and best
regards, Hermann
Schranzhofer. _______________________________________________________________ |
Attachment:
Hermann Schranzhofer.vcf
Description: Binary data