[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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@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@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@tess-inc.com

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