<html 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" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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 bgcolor=white lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>David,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks for your reply.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The issue is not coming ‘directly’ from TRNSYS, but from the compiler. The compiler error says: <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Courier New";color:windowtext'>error #6404: This name does not have a type, and must have an explicit type</span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>So I believe it is not finding the function from the ‘TRNDll.lib’. My TRNSYS version is 17.00.0019.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I don’t have section 7.4.2.69 and 7.4.2.58 in my Programmer’s guide, I only have up to 7.4.2.39 [getConnectedVariableUnit(I,j)], and I noticed that only the ‘get…’ functions up to this section is recognised by the compiler. The later functions, I had to use in the form of INFO arrays.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>So I changed the entire code to use functions directly passed to the Type (TIME, XIN,….), instead of ‘getting’ it, and used the INFO Arrays.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The code now works.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’m not sure whether this is explains the error to you,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>But Thanks..<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Baboo<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> David BRADLEY [mailto:d.bradley@tess-inc.com] <br><b>Sent:</b> 02 July 2012 23:01<br><b>To:</b> Baboo Gowreesunker<br><b>Cc:</b> 'trnsys-users@cae.wisc.edu'<br><b>Subject:</b> Re: [TRNSYS-users] Access Functions<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Baboo,<br>  both getNumericalSolution() and getStaticArrayValue() are still in Trnsys17.1 (with no plans to remove them) as they were in Trnsys17.00.x. The code for both functions is in the TrnsysFunctions routine and the documentation/interface specification is in the Programmer's Guide in section 7.4.2.69 and 7.4.2.58 respectively.<br><br>  I am curious as to what kind of error you are getting.<br>Best,<br> David<br><br>  <o:p></o:p></p><div><p class=MsoNormal>On 7/2/2012 08:28, Baboo Gowreesunker wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal>Dear all,<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Does anybody know the Access Function name for TRNSYS 17 of:<o:p></o:p></p><p class=MsoNormal>GetNumericalSolution ()      and    GetStaticArrayValue ()<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>I believe these names are for older versions of TRNSYS, and Version 17 is not recognising them.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal>Baboo<o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>TRNSYS-users mailing list<o:p></o:p></pre><pre><a href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a><o:p></o:p></pre><pre><a href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>***************************<o:p></o:p></pre><pre>David BRADLEY<o:p></o:p></pre><pre>Principal<o:p></o:p></pre><pre>Thermal Energy Systems Specialists, LLC<o:p></o:p></pre><pre>22 North Carroll Street - suite 370<o:p></o:p></pre><pre>Madison, WI  53703 USA<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>P:+1.608.274.2577<o:p></o:p></pre><pre>F:+1.608.278.1475<o:p></o:p></pre><pre><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><a href="http://www.tess-inc.com">http://www.tess-inc.com</a><o:p></o:p></pre><pre><a href="http://www.trnsys.com">http://www.trnsys.com</a><o:p></o:p></pre><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div></body></html>