<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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);">
thanks a lot, your suggestion is interesting</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);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> David BRADLEY <d.bradley@tess-inc.com><br>
<b>Envoyé :</b> jeudi 1 juillet 2021 17:26<br>
<b>À :</b> Maurice Charbit - OZE-ENERGIES <mch@oze-energies.com>; TRNSYS users mailing list at OneBuilding.org <trnsys-users@lists.onebuilding.org><br>
<b>Objet :</b> Re: [TRNSYS-users] subcall process</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;">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 style="margin-top: 0px; margin-bottom: 0px;">kind regards,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"> David</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div class="x_moz-cite-prefix">On 07/01/2021 10:02, Maurice Charbit - OZE-ENERGIES wrote:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hi David</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)">
Thank you for the response. I did what you propose. <span style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">More specifically my prog is</span></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)">
<div style="margin:0px; font-size:12pt">
<blockquote style="margin-top:0; margin-bottom:0">
<div style="margin:0px">    exe_trnsys        = subprocess.call([<span style="background-color:rgb(255,255,255); display:inline!important">cmdtrnsysExe</span>,file_DCK,"/h"])<br>
</div>
<div style="margin:0px"><br>
</div>
</blockquote>
</div>
<div style="margin:0px"><span style="margin:0px; font-size:12pt"></span></div>
The problem is the following: </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)">
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.</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 would like to exit by program and replace the manual response by soft.</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)">
regards</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> David BRADLEY
<a class="x_moz-txt-link-rfc2396E" 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 class="x_moz-txt-link-rfc2396E" href="mailto:trnsys-users@lists.onebuilding.org">
<trnsys-users@lists.onebuilding.org></a><br>
<b>Cc :</b> Maurice Charbit - OZE-ENERGIES <a class="x_moz-txt-link-rfc2396E" href="mailto:mch@oze-energies.com">
<mch@oze-energies.com></a><br>
<b>Objet :</b> Re: [TRNSYS-users] subcall process</font>
<div> </div>
</div>
<div>
<p style="margin-top: 0px; margin-bottom: 0px;">Maurice,</p>
<p style="margin-top: 0px; margin-bottom: 0px;">  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 style="margin-top: 0px; margin-bottom: 0px;">c:\Trnsys18\Exe\TRNExe64.exe c:\Trnsys18\MyProjects\Project1\inputFile.dck /n /h</p>
<p style="margin-top: 0px; margin-bottom: 0px;">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.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">The /h flag is also optional and forces Trnsys to run completely hidden in the background.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">kind regards,</p>
<p style="margin-top: 0px; margin-bottom: 0px;"> David</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<div class="x_x_moz-cite-prefix">On 07/01/2021 06:52, Maurice Charbit - OZE-ENERGIES via TRNSYS-users wrote:<br>
</div>
<blockquote type="cite">
<meta name="Generator" content="Microsoft Word 15 (filtered
            medium)">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
Hi all,</p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
I am using subcall.process in Python to launch trnsys.exe.</p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
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_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
Regards</p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
Maurice</p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
Provenance : <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Courrier</a> pour Windows 10</p>
<p class="x_x_MsoNormal" style="margin-top: 0px; margin-bottom: 0px;margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;">
 </p>
</div>
<br>
<fieldset class="x_x_mimeAttachmentHeader"></fieldset>
<pre class="x_x_moz-quote-pre">_______________________________________________
TRNSYS-users mailing list
<a class="x_x_moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org">TRNSYS-users@lists.onebuilding.org</a>
<a class="x_x_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="x_x_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
<a class="x_x_moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

<a class="x_x_moz-txt-link-freetext" href="http://www.tess-inc.com">http://www.tess-inc.com</a>
<a class="x_x_moz-txt-link-freetext" href="http://www.trnsys.com">http://www.trnsys.com</a></pre>
</div>
</blockquote>
<pre class="x_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
<a class="x_moz-txt-link-abbreviated" href="mailto:d.bradley@tess-inc.com">d.bradley@tess-inc.com</a>

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