<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Bounia,</p>
<p> There is some example code in the Type169 description of the
04-MathematicalReference manual. The example uses the line:</p>
<p>import TRNSYSpy as TRNSYS</p>
<p>rather than <br>
</p>
<p>import TRNSYSpy as trn</p>
<p>I have not used Type169 myself but based on experience with other
links between TRNSYS and external tools it is almost always
necessary to check the following:</p>
- make sure you have administrator rights<br>
- make sure the SYSTEM user (a built-in Windows account) has
administrator rights<br>
- don't install anything in the \Program Files\ or \Program Files
(x86) directories<br>
- take care to preserving case<br>
- take care to provide full pathnames and avoid relative paths<br>
- make sure that the version of both TRNSYS and the called program
are compatible with each other (there is usually information about
this in the documentation)
<p>kind regards,</p>
<p> David</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 07/23/2020 07:14, Bounia Louenas via
TRNSYS-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGm=T+MRA05-T9L+dA82fMELNcpUO3_fdbQYtmNSHGn7arZ14Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"> Is there anyone using type 169 to directly call a
python script from simulation studio?<br>
<br>
If someone can also help me by sending me an example to (<a
href="mailto:bounialouenas93@gmail.com" target="_blank"
moz-do-not-send="true">bounialouenas93@gmail.com</a>), I will
be very grateful.<br>
<br>
Could someone tell me why when i import python modules type 169
is not working.<br>
<br>
<br>
<br>
For example:<br>
<br>
If in my python script:<br>
<br>
<br>
<br>
import TRNSYSpy as trn<br>
<br>
lTRNSYSpy not found?<br>
<br>
Thanking you dear user.
<div class="gmail-adL"><br>
</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>