<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Andrea,<br>
      adding the /n switch at the end of the command line to call the
    TRNSYS simulation will supress the need to click the "finish" button
    at the end of the simulation. Adding a /h switch to the command line
    will cause TRNSYS to run completely hidden in the background.<br>
    <br>
    "c:\Trnsys17\Exe\TRNExe.exe" "c:\Trnsys17\Path\To\DckFile.dck" /n<br>
    <br>
    best,<br>
     David<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 9/17/2012 08:04, Andrea Sauer wrote:<br>
    </div>
    <blockquote
cite="mid:trinity-75865498-66ea-442c-8892-a4803a900e53-1347887061102@3capp-webde-bs26"
      type="cite">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>Dear all,<br>
          <br>
          I am currently working on a parameter variation.<br>
          A Python script is the base for this.<br>
        </div>
        <div>This Python script set the variables in the input file for
          TRNSYS.<br>
        </div>
        <div>The Python script also start the simulation of TRNSYS <span
            style="font-size:10px;">(For this purpose the command in
            Python = subprocess)</span>.<br>
        </div>
        <div><br>
        </div>
        <div>Problem: The Python script can not detect when TRNSYS
          finished the simulation. The Python script can only detected
          when TRNSYS is closed.<br>
          <br>
          Question: Is there a way TRNSYS automatically close after the
          simulation has been run? <br>
        </div>
        <div>Or is there a way to close the OnlinePlotter automatically
          after the simulation has been run? <br>
          <br>
          Alternatively: Does anyone know of a way to do this through
          Python? <br>
        </div>
        <div><br>
        </div>
        <div>Thank you!<br>
        </div>
        <div><span class="stream _p _pl1 _pd157611"><span class="mtxt"></span></span><br>
        </div>
        <div><span class="stream _p _pl1 _pd157611" id="view"><span
              class="mtxt">Kind regards,</span></span><br>
        </div>
        <div><br>
        </div>
        <div>Andrea  Sauer<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
TRNSYS-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:TRNSYS-users@cae.wisc.edu">TRNSYS-users@cae.wisc.edu</a>
<a class="moz-txt-link-freetext" href="https://mailman.cae.wisc.edu/listinfo/trnsys-users">https://mailman.cae.wisc.edu/listinfo/trnsys-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
***************************
David BRADLEY
Principal
Thermal Energy Systems Specialists, LLC
22 North Carroll Street - suite 370
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>