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

Problem with TRNSYS-MATLAB link

1 Posts
1 Users
0 Reactions
439 Views
0
Topic starter

I am trying to use TYPE155 with MATLAB and TRNSYS. We are receiving an error messages that says type155.dll was found but could not be loaded and that Matlab’s bin\win64\ folder should be in the windows’ search path. What should we do?

1 Answer
0
Topic starter

The most common causes of this problem are:

1. if you are using a 64-bit version of Matlab, you need to also use a 64-bit version of Trnsys. Trnsys17 was 32-bit only. Trnsys18 is 64-bit (but is available as 32-bit as well.)

2. Your .\TrnsysXX\Exe\Type155.dll has to be compiled for your version of Matlab. Look first in the .\TrnsysXX\Exe\DLLs\ directory to see if a dll is provided for your version of Matlab. If it is, replace .\TrnsysXX\Exe\Type155.dll with the one from the appropriate *.zip file. If it is not, contact your Trnsys distributor and they can get you the appropriate version of Type155.dll

3. Try out the provided Matlab example (.\TrnsysXX\Examples\Calling_Matlab\...) before you try out your own Matlab code. Matlab can only pass very limited information about errors back to Trnsys. Sometimes when Matlab encounters an error, the message that comes back to Trnsys can only be interpreted as a dll loading problem.

If none of the above solves your problem, the most up to date/complete knowledge base on troubleshooting the Trnsys/Matlab connection can be found in the Type155 section of .\TrnsysXX\Documentation\04-MathematicalReference.pdf

kind regards,

 the Trnsys support team

Share: