<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hoofar,</p>
    <p>  When you say "parameter" do you mean TRNSYS's definition of a
      parameter (i.e. a value that is read once at the beginning of a
      simulation and then does not change value throughout the rest of
      the simulation) or are you using it in the more general sense of
      the word? The reason I ask is that if you want to set a TRNSYS
      parameter from an external file rather than from in the input file
      itself then you might be able to use the concept of an INCLUDE
      file. In the "simulation cards" section of your project's control
      cards, you can enter a line like:</p>
    <p>INCLUDE d:\Trnsys18\MyProjects\ProjectX\paramVals.txt</p>
    <p>when you launch a TRNSYS simulation, whatever is in paramVals.txt
      will be read and treated as though it were part of the input file.
      So if paramVals.txt contained <br>
    </p>
    CONSTANTS 1<br>
    myParameter = 5
    <p>then the variable "myParameter" could be used by Types in the
      simulation. paramVals.txt would need to exist of course and, if
      you are doing optimization, would probably have to get rewritten
      after each simulation. Not knowing the specifics of what you are
      trying to do, I may be leading you down a useless path here. If
      you want to talk further about it, please don't hesitate to email
      me.</p>
    <p>kind regards,</p>
    <p> David</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 08/27/2019 07:57, Hemmatabady,
      Hoofar via TRNSYS-users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:5d10ac87dcf242adb894446e338b0f6c@geo.tu-darmstadt.de">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 56.7pt 70.85pt;}
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]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="DE">Dear all,<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
        <p class="MsoNormal">Is there a way that a data reader (type 9)
          reads a text file just at the beginning of the simulation,
          instead of the whole time steps, so that it can be used as a
          TRNSYS parameter for mathematical optimization?
          <o:p></o:p></p>
        <p class="MsoNormal">I know it is also possible by using type 62
          (calling excel), but using excel reduces the speed
          considerably.
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Best regards,<o:p></o:p></p>
        <p class="MsoNormal">Hoofar<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
3 North Pinckney Street - suite 202
Madison, WI  53703 USA

P:+1.608.274.2577
F:+1.608.278.1475
<a class="moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
  </body>
</html>