<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Maurice,</p>
<p> I have not used Python, however, TRNSYS can be called from the
command line so I assume it would be able to be called from Python
as well. The command line to run one of the TRNSYS examples is:<br>
</p>
<p> </p>
<p>c:\Trnsys18\Exe\TRNExe64.exe
"c:\Trnsys18\Examples\Calling_Contam\CombinedThermalAirflow_AHU.dck"
<br>
</p>
<p><br>
</p>
<p>if you add a /n at the end of the line then there will be no need
to click "ok" when the run completes.</p>
<p>if you add a /h at the end of the line then TRNSYS will run
entirely in the background.</p>
<p><br>
</p>
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07/03/2020 09:45, Maurice Charbit -
OZE-ENERGIES via TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VE1P189MB09118C641C9E22BBC40B0F3A8A6A0@VE1P189MB0911.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);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
Hi,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
I am using TRNSYS for industrial development. <span
style="margin: 0px">For this purposes I develop a program
in Python language which calsl TRNSYS.exe via subprocess
function. It takes a lot of time because it means running
via Windows.</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
Does it exist a code (something like an API or a DLL) which
can be called directly from Python ?</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri,
Arial, Helvetica, sans-serif; color: black; background-color:
rgb(255, 255, 255)">
<span style="margin: 0px">Best regards</span></div>
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr"
style="font-size:12pt; color:#000000;
font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom:
0px;margin-top:0; margin-bottom:0">Maurice</p>
<p style="margin-top: 0px; margin-bottom:
0px;margin-top:0; margin-bottom:0">tel: +33 (0)6 52 30
11 71<br>
</p>
</div>
</div>
</div>
</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>