<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Marion,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I dont see the benefit. My program optimizes a criterion w..r.t. a few parameters and i<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">t would be better to manadge the error directly in the program.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De :</b> Marion Hiller <Hiller@Transsolar.com><br>
<b>Envoyé :</b> vendredi 2 juillet 2021 08:02<br>
<b>À :</b> TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org>; Maurice Charbit - OZE-ENERGIES <mch@oze-energies.com><br>
<b>Cc :</b> David BRADLEY <d.bradley@tess-inc.com><br>
<b>Objet :</b> AW: [TRNSYS-users] subcall process</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Consolas}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_HTMLVorformatiertZchn
        {font-family:"Consolas",serif}
span.x_E-MailFormatvorlage24
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="DE" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span lang="EN-US" style="">No, there is no “soft” closing when such an error occurs in TRNBuild.</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="">I’m not in favor for this but for parametric studies I see a benefit.</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="">Regards,</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="">Marion</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style=""> </span></p>
<div>
<p class="x_MsoNormal" style="text-autospace:none"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">Transsolar Software Team</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#4472C4">hotline@transsolar.com</span><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6"></span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">Transsolar
</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">Stuttgart | Munich | Paris | New York</span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US" style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">Transsolar Energietechnik GmbH | Curiestrasse 2 | 70563 Stuttgart | Germany</span></p>
<p class="x_MsoNormal"><span style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">CEO: Matthias Schuler, Thomas Auer, Stefan Holst, Dieter Schnelle
</span></p>
<p class="x_MsoNormal"><span style="font-size:9.0pt; font-family:"Arial",sans-serif; color:#A6A6A6">Registered at Amtsgericht Stuttgart HRB 23347 | USt-IdNr.: DE 152272639</span></p>
<p class="x_MsoNormal"> </p>
</div>
<p class="x_MsoNormal"><span style=""> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal"><b>Von:</b> TRNSYS-users <trnsys-users-bounces@lists.onebuilding.org>
<b>Im Auftrag von </b>David BRADLEY via TRNSYS-users<br>
<b>Gesendet:</b> Donnerstag, 1. Juli 2021 17:27<br>
<b>An:</b> Maurice Charbit - OZE-ENERGIES <mch@oze-energies.com>; TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org><br>
<b>Cc:</b> David BRADLEY <d.bradley@tess-inc.com><br>
<b>Betreff:</b> Re: [TRNSYS-users] subcall process</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p>I am afraid I do not know of a way to suppress errors that are generated by TRNBuild. Again I don't know Python but in some other scripting languages there is the possibility of specifying a "time out" such that if the called process doesn't respond within
 a specified amount of time the script can proceed anyway.</p>
<p>kind regards,</p>
<p> David</p>
<p> </p>
<p> </p>
<div>
<p class="x_MsoNormal">On 07/01/2021 10:02, Maurice Charbit - OZE-ENERGIES wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Hi David</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">Thank you for the response. I did what you propose. More specifically my prog is</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<div>
<blockquote>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">    exe_trnsys        = subprocess.call([cmdtrnsysExe,file_DCK,"/h"])</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
</blockquote>
</div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">The problem is the following: </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">when TRNSYS crashes, as for example when a bad parameter is present in file .B18 as incompatible thickness, TRNSYS stops and opens a window to indicate a problem and waits for a manual answer,
 more specifically you have to click on the 'OK' button to exit TRNSYS. As long as you dont click on the button TRNSYS is waiting.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">I would like to exit by program and replace the manual response by soft.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black">regards</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="color:black">De :</span></b><span style="color:black"> David BRADLEY
<a href="mailto:d.bradley@tess-inc.com"><d.bradley@tess-inc.com></a><br>
<b>Envoyé :</b> jeudi 1 juillet 2021 16:36<br>
<b>À :</b> TRNSYS users mailing list at OneBuilding.org <a href="mailto:trnsys-users@lists.onebuilding.org">
<trnsys-users@lists.onebuilding.org></a><br>
<b>Cc :</b> Maurice Charbit - OZE-ENERGIES <a href="mailto:mch@oze-energies.com">
<mch@oze-energies.com></a><br>
<b>Objet :</b> Re: [TRNSYS-users] subcall process</span> </p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<p>Maurice,</p>
<p>  The exe is probably asking you for the name of the input file that you want to run. The Windows command line to launch Trnsys and give it an input file name follows. I have never tried to implement this from Python but hopefully it works anyway.</p>
<p>c:\Trnsys18\Exe\TRNExe64.exe c:\Trnsys18\MyProjects\Project1\inputFile.dck /n /h</p>
<p>The /n flag is optional and suppresses the acknowledgement that is normally required at the end of the simulation. Be aware that this flag will also suppress the needed acknowledgement if an error occurs during the simulation.</p>
<p>The /h flag is also optional and forces Trnsys to run completely hidden in the background.</p>
<p>kind regards,</p>
<p> David</p>
<p> </p>
<div>
<p class="x_MsoNormal">On 07/01/2021 06:52, Maurice Charbit - OZE-ENERGIES via TRNSYS-users wrote:</p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="x_xmsonormal">Hi all,</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">I am using subcall.process in Python to launch trnsys.exe.</p>
<p class="x_xmsonormal">When an error occurs in trnsys, trnsys opens a window and asks for a MANUAL response to exit from the .exe. How can I do to force by program this response?</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">Regards</p>
<p class="x_xmsonormal">Maurice</p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal"> </p>
<p class="x_xmsonormal">Provenance : <a href="https://go.microsoft.com/fwlink/?LinkId=550986">
Courrier</a> pour Windows 10</p>
<p class="x_xmsonormal"> </p>
</div>
<p class="x_MsoNormal"><br>
<br>
</p>
<pre>_______________________________________________</pre>
<pre>TRNSYS-users mailing list</pre>
<pre><a href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a></pre>
<pre><a 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>-- </pre>
<pre>***************************</pre>
<pre>David BRADLEY</pre>
<pre>Principal</pre>
<pre>Thermal Energy Systems Specialists, LLC</pre>
<pre>3 North Pinckney Street - suite 202</pre>
<pre>Madison, WI  53703 USA</pre>
<pre> </pre>
<pre>P:+1.608.274.2577</pre>
<pre><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a></pre>
<pre> </pre>
<pre><a href="http://www.tess-inc.com">http://www.tess-inc.com</a></pre>
<pre><a href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</div>
</blockquote>
<pre>-- </pre>
<pre>***************************</pre>
<pre>David BRADLEY</pre>
<pre>Principal</pre>
<pre>Thermal Energy Systems Specialists, LLC</pre>
<pre>3 North Pinckney Street - suite 202</pre>
<pre>Madison, WI  53703 USA</pre>
<pre> </pre>
<pre>P:+1.608.274.2577</pre>
<pre><a href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a></pre>
<pre> </pre>
<pre><a href="http://www.tess-inc.com">http://www.tess-inc.com</a></pre>
<pre><a href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</div>
</div>
</body>
</html>