[TRNSYS-users] Python and trnsys 18 (type 169)

David BRADLEY d.bradley at tess-inc.com
Thu Jul 23 06:45:05 PDT 2020


Bounia,

   There is some example code in the Type169 description of the 
04-MathematicalReference manual. The example uses the line:

import TRNSYSpy as TRNSYS

rather than

import TRNSYSpy as trn

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:

- make sure you have administrator rights
- make sure the SYSTEM user (a built-in Windows account) has 
administrator rights
- don't install anything in the \Program Files\ or \Program Files (x86) 
directories
- take care to preserving case
- take care to provide full pathnames and avoid relative paths
- 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)

kind regards,

  David



On 07/23/2020 07:14, Bounia Louenas via TRNSYS-users wrote:
>   Is there anyone using type 169 to directly call a python script from 
> simulation studio?
>
> If someone can also help me by sending me an example to 
> (bounialouenas93 at gmail.com <mailto:bounialouenas93 at gmail.com>), I will 
> be very grateful.
>
> Could someone tell me why when i import python modules type 169 is not 
> working.
>
>
>
> For example:
>
> If in my python script:
>
>
>
> import TRNSYSpy as trn
>
> lTRNSYSpy not found?
>
> Thanking you dear user.
>
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at lists.onebuilding.org
> http://lists.onebuilding.org/listinfo.cgi/trnsys-users-onebuilding.org

-- 
***************************
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
d.bradley at tess-inc.com

http://www.tess-inc.com
http://www.trnsys.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20200723/d5e2884e/attachment.html>


More information about the TRNSYS-users mailing list