Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Co-simulation Between Python And TRNSYS Using CFFI

0 Posts
1 Users
0 Reactions
232 Views
0
Topic starter

Greetings,

 

I am interested in co-simulation between Python and TRNSYS.
 
I am trying to use CFFI for co-simulation.
 
However, I have a problem with running an example (Simple Polynomial).
 
This is what I installed: 
MS Visual Studio 2019 Community
Python 3.10.7
TRNSYS 18
CFFI 1.6.0
CallingPython 0.6.0
Windows 11
 
I also added the paths of TRNSYS and Python.
But I am still suffering unexpected error. (I am not using Miniconda)
 
Also, I added pythoninterface.dll at "C:\TRNSYS18\Exe", Type3157.ddl at "C:\TRNSYS18\UserLib\DebugDLLS" and Type3157.ddl at "C:\TRNSYS18\UserLib\ReleaseDLLS".
 
The remaining files are located at "C:\TRNSYS18\TRNLib".
(TRNLib is a new directory.)
 
If you let me solve this problem, I would much appreciate you. 
As far as I searched, I cannot find out the solution for this kind of errors.
 
 
Notice at time        :         0.000000
    Generated by Unit     : Not applicable or not available
    Generated by Type     : Not applicable or not available
    TRNSYS Message    199 : TRNSYS found at least one user DLL in the UserLib directory. (Note: Only DLL's including Types that are used in the simulation are loaded)
    Reported information  : 0 user DLLs were loaded after searching in "C:\TRNSYS18\UserLib\ReleaseDLLs"
 
 
Fatal Error at time   :         0.000000
    Generated by Unit     : Not applicable or not available
    Generated by Type     :  3157
    TRNSYS Message    105 : A TYPE was called in the TRNSYS input file but was either not linked into trndll.dll or was not found in an external dll. A dummy subroutine was called in its place. Please link the TYPE or remove it from the input file
    Reported information  :  Type3157 could not be located in either the TRNdll64.dll or in an external dll. Please relink theTRNDll64.dll including this Type or make sure that an external DLL in the \UserLib\DebugDLLs and \UserLib\ReleaseDLLs folders contain the Type.
 
 
Regards

J. Cho

Share: