<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16430"><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
font-family: Cambria Math;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 70.85pt 70.85pt 70.85pt 70.85pt; }
P.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt
}
LI.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt
}
DIV.MsoNormal {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
PRE {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Courier New"; FONT-SIZE: 10pt; mso-style-priority: 99; mso-style-link: "Préformaté HTML Car"
}
P.Style1 {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt; mso-style-link: "Style1 Car"; mso-style-name: Style1
}
LI.Style1 {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt; mso-style-link: "Style1 Car"; mso-style-name: Style1
}
DIV.Style1 {
MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Arial","sans-serif"; FONT-SIZE: 10pt; mso-style-link: "Style1 Car"; mso-style-name: Style1
}
SPAN.Style1Car {
mso-style-link: Style1; mso-style-name: "Style1 Car"
}
SPAN.EmailStyle19 {
FONT-STYLE: normal; FONT-FAMILY: "Arial","sans-serif"; COLOR: windowtext; FONT-WEIGHT: normal; mso-style-type: personal-compose
}
SPAN.PrformatHTMLCar {
FONT-FAMILY: "Courier New"; mso-style-priority: 99; mso-style-link: "Préformaté HTML"; mso-style-name: "Préformaté HTML Car"
}
SPAN.apple-style-span {
mso-style-name: apple-style-span
}
SPAN.apple-converted-space {
mso-style-name: apple-converted-space
}
.MsoChpDefault {
mso-style-type: export-only
}
DIV.WordSection1 {
page: WordSection1
}
OL {
MARGIN-BOTTOM: 0cm
}
UL {
MARGIN-BOTTOM: 0cm
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=FR vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>Dear all,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>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:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>INQUIRE(fileID, EXIST=flag_exist,
OPENED=flag_open,NAME=file_name).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>I also did a small example (see
attachment).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>Can anyone help me?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>Thanks and best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=986481910-25072011><FONT color=#0000ff
size=2 face=Arial>Hermann Schranzhofer.</FONT> </SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV><!-- Converted from text/plain format -->
<P><FONT
size=2>_______________________________________________________________<BR><BR>DI
Dr. mont. Hermann Schranzhofer<BR>Institut fuer Waermetechnik / Institute of
Thermal Engineering<BR>TU Graz / Graz University of Technology<BR>Inffeldgasse
25 / B, A-8010 Graz<BR><BR>Tel.: +43 316 873 7314<BR>mobil: +43 664 60 873
7314<BR>Fax : +43 316 873 7305<BR><A
href="http://www.iwt.tugraz.at/">http://www.iwt.tugraz.at/</A><BR>_______________________________________________________________<BR><BR></FONT></P>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV><FONT
color=#0000ff size=2 face=Arial></FONT><BR>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left><o:p><STRONG><FONT
size=2 face=Tahoma></FONT></STRONG></o:p> </DIV></BODY></HTML>