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

Re: [TRNSYS-users] Solution to TRNSYS-MATLAB problem



Just to add to the Maarten's advice.

Don't do that for all Matlab versions you have in your machine. I did this and took me two days of work to discover that the other version was the registered server. TRNSYS was not be able to open MATLAB engine.
So,
Do it only for the version that you have the DLL  for  (i.e., TYPE155.DLL).

regards,
Saleh



From: Maarten Sourbron <Maarten.Sourbron@mech.kuleuven.be>
To: "trnsys-users@cae.wisc.edu" <trnsys-users@cae.wisc.edu>
Sent: Monday, January 16, 2012 8:59 AM
Subject: [TRNSYS-users] Solution to TRNSYS-MATLAB problem

Hi all,
 
It took us quit a while to figure out why the TRNSYS-MATLAB coupling did not work at some machines, while it did on others.
After trying and comparing all possible options, recompiling the type155-dll, … the following appears to be the problem:
 
Matlab has to be registered as a COM server.  Simply run the following command in Matlab:
 
regmatlabserver
 
And it works on all machines…
Hopefully this helps to save time J
 
Kind regards,
Maarten
 
---
PhD student
Simulation of Thermal Systems Research group
Departement Werktuigkunde-Department of Mechanical Engineering
Katholieke Universiteit Leuven
Celestijnenlaan 300A bus 2421
3001 Heverlee (Leuven)
T : 0032 (0)16 32 28 73
F : 0032 (0)16 32 29 85
E :
Maarten.Sourbron@mech.kuleuven.be
 
 

_______________________________________________
TRNSYS-users mailing list
TRNSYS-users@cae.wisc.edu
https://mailman.cae.wisc.edu/listinfo/trnsys-users