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

[TRNSYS-users] Integrate Python with TRNSYS ?



Hello,
I have programmed a controller in Python and I need to link it to TRNSYS to control other components. Type 169 does not work at all. So I am trying to use type 163. But the problem is that when I import external libraries in my Python code, the type 163 does not update the py_outputs.dat anymore! How I can use a Python script that include external libraries in type 163? For example the following code works when the pandas and numpy libraries are not included, but with the two first lines it does not work anymore...

image.png

I also tried to install the type 3157 that is new and apparently allows the use of external libraries, but when I run the example I get the following error.

image.png

Anyway to do it?