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

Re: [TRNSYS-users] using a dll compiled with matlab



Hi Werner,

 

Actually I am using the type 155 but I want to win in speed simulation by compiling the matlab program into a Dll and use it instead of calling the matlab program with the type 155. I understand that I must write a wrapper according to TRNSYS calling conventions. So I have a question, Can I create a skeleton FORTRAN program using the procedure of adding a new component and after this call in the fortran program the Dll that I create using Matlab compiler.

 

Waiting for your answer

 

Thanks a lot

 

Ahmed

 


De : keilholz, werner [mailto:werner.keilholz@cstb.fr]
Envoyé : 12 juin 2006 10:04
À : 'ahmed daoud'; trnsys-users@engr.wisc.edu
Cc : keilholz, werner
Objet : RE: [TRNSYS-users] using a dll compiled with matlab

 

Hi Ahmed,

 

To directly use a DLL compiled with MATLAB, you would have to write a wrapper that respects the TRNSYS calling conventions, and then calls the functions in the MATLAB DLL.

 

A much easier way to call MATLAB from TRNSYS is to use Type 155

(in Utility/Calling External Programs/Matlab).

 

Werner

 


De : trnsys-users-bounces@engr.wisc.edu [mailto:trnsys-users-bounces@engr.wisc.edu] De la part de ahmed daoud
Envoyé : lundi 12 juin 2006 15:09
À : trnsys-users@engr.wisc.edu
Objet : [TRNSYS-users] using a dll compiled with matlab

 

Hi,

I want to know how I can use in TRNSYS 16 a dll compiled in Matlab.

 

Tkanks

 

Ahmed