Try to run the Trnsys example "Calling Matlab", but failed. It keeps giving an error message: Your input file uses Type 155 (Calling Matlab). "Type 155.dll" was found but could not be loaded. Please make sure that a supported version of Matlab is installed and that Matlab's "bin/win32" folder is on Windows' search path.

First, successfully ruining the Trnsys example "Calling Matlab" means all the software works good. Otherwise, you have to check several items.

Second, the items to be checked:

1) the TRNSYS version, e.g. 16, 17 or 18

2) the Matlab version (very important), basically the Matlab version should be supported by the TRNSYS version you used. Check the folder "DLLs" in your TRNSYS installation folder. Or contact the TRNSYS distributor. Then you will know which version (2010, 2014 or 2016 etc.) you should use.

3) the Matlab format, it should be 32-bit (not 64-bit). This is the most tricky thing. You can re-install a 32-bit Matlab with the supported Matlab version. [The thing I know is that the TRNSYS is in 32-bit format, so the software cooperating with TRNSYS should also in 32-bit. This is what we tried and concluded based on our experience.]

Third, if you are using an old version of TRNSYS (i.e. TRNSYS 16), you should configure your PC as: Windows 32-bit(biggest problem since we all use 64-bit Windows now),Matlab 32-bit with the supported Matlab version. Compared to re-install a PC, a simpler way is to install a virtual machine (or virtual Windows system in 32-bit). Try virtualbox.

Note:

Some basic things are: you should add the Matlab's "bin/win32" folder is on Windows' search path.

Thanks. We will update this discussion when necessary.

More Junqi (Alan) WANG's questions See All
Similar questions and discussions