<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<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><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07/01/2021 10:02, Maurice Charbit -
OZE-ENERGIES wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VE1P189MB0926DD8F5BC809BB98A073DC8A009@VE1P189MB0926.EURP189.PROD.OUTLOOK.COM">
<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>
<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 style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>De :</b> David
BRADLEY <a class="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="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="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>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.<br>
</p>
<p>The /h flag is also optional and forces Trnsys to run
completely hidden in the background.<br>
</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<div class="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)">
<style>@font-face
{font-family:"Cambria Math"}@font-face
{font-family:Calibri}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}.x_MsoChpDefault
{}div.x_WordSection1
{}</style>
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi all,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I am using subcall.process in Python
to launch trnsys.exe.</p>
<p class="x_MsoNormal">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_MsoNormal"> </p>
<p class="x_MsoNormal">Regards</p>
<p class="x_MsoNormal">Maurice</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Provenance : <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">
Courrier</a> pour Windows 10</p>
<p class="x_MsoNormal"> </p>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
TRNSYS-users mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:TRNSYS-users@lists.onebuilding.org" moz-do-not-send="true">TRNSYS-users@lists.onebuilding.org</a>
<a class="x_moz-txt-link-freetext" href="http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org" moz-do-not-send="true">http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org</a>
</pre>
</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" moz-do-not-send="true">d.bradley@tess-inc.com</a>
<a class="x_moz-txt-link-freetext" href="http://www.tess-inc.com" moz-do-not-send="true">http://www.tess-inc.com</a>
<a class="x_moz-txt-link-freetext" href="http://www.trnsys.com" moz-do-not-send="true">http://www.trnsys.com</a></pre>
</div>
</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
<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>