The most likely issue is that the Type155.dll in the .\Trnsys18\Exe\ directory is not compiled for the version of Matlab that you are using. Look in the .\Trnsys18\Exe\DLLs\ directory and extract the Type155.dll file from the *.zip file that corresponds to your version of Matlab. If you do not see your version of Matlab in that directory then send an email to your techsupport hotline and then can send you the appropriate file for your Matlab version.
kind regards,
David
Dear Mr. David;
Thank you so much for your email. Unfortunately, this example does not work in my TRNSYS and gives the error of "64 and 32bit version....". While both software was installed using the 64bit version.
Best Regards
Saeid Mohammadzadeh Bina, Dr. (Eng.)-------------------------------------------------Akita University
Graduate school of International Resource Sciences.
1-1 Tegata gakuen-machi, Akita 010-8502, JapanTel: +815068665026 (Japan)+989141011757 (Iran)E-mail: d9515254@s.akita-u.ac.jp-------------------------------------------------
On Tue, Aug 25, 2020 at 11:35 PM David BRADLEY <d.bradley@tess-inc.com> wrote:
Dr. Bina,
I would recommend that you first try to get the Matlab example running before trying your own coupling. That will ensure that all the potential connection problems are sorted out. The Type155 section of the 04-MathematicalReference manual (located in the .\TrnsysXX\Documentation\ directory contains a knowledge base about trouble shooting the connection.
kind regards,
David
On 08/25/2020 04:04, saeid mohammadzadeh via TRNSYS-users wrote:
Dear users;Can anyone please help me how to call a matlab code to TRNSYS, step by step?I have a Matlab code that receives a time base data and delivers the output based on those input data. The main objective is to connect these two software that the input data of the Matlab comes from TRNSYS.Thank you so much in advance.
Best Regards
Saeid Mohammadzadeh Bina, Dr. (Eng.)-------------------------------------------------Akita University
Graduate school of International Resource Sciences.
1-1 Tegata gakuen-machi, Akita 010-8502, JapanTel: +815068665026 (Japan)+989141011757 (Iran)E-mail: d9515254@s.akita-u.ac.jp-------------------------------------------------
_______________________________________________ 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
-- *************************** 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