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

Re: [TRNSYS-users] TRNSYS and MATLAB



Wirich,

  In order for Matlab2015a and Trnsys17 to work together you just need to have a Type155.dll that corresponds to your Matlab version. Note that with Trnsys17, you need to use the 32-bit Matlab verison. I will send you a second email privately containing the dll for Trnsys17 and Matlab2015a.

  Creating a Type155.dll for Matlab2018 is a matter of a few minutes of work. If you can send me the following files:

libeng.lib, libmat.lib, libmex.lib, and libmx.lib

 then I can make you the dll that you need. Please make sure to specify whether the files you send are the 32-bit or 64-bit versions.

Regards,

 David



On 09/21/2018 09:39, Wirich FREPPEL via TRNSYS-users wrote:
Dear TRNSYS users,

For my project, I need to call MATLAB to do some calculations and then return the result into TRNSYS. However, my version of Matlab is 2015a, which is not compatible with TRNSYS 17.

In addition, the TRNSYS salesman told me that at the moment they are still working on a 155.dll file to match Matlab 2018 and TRNSYS 18. So, until the dll file is available I was wandering:

Would it be possible to add a Type in which I could write some "windows commands". Those commands would put TRNSYS into a pause, and run MATLAB. When all results are available, TRNSYS read them and goes to the next step of the calculations.

In the past I used MATLAB to call TRNSYS, but is it possible in the other way without using the Type155 ?

Thank you in advance for your reply.

Best regards


--
***************************
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