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

Re: [TRNSYS-users] "Unable to start the Matlab Engine" using MATLAB R14Type 155



Dear Eric,

 

The MATLAB DLLs are linked in dynamically, it is not necessary to update the PROFORMA (updating the Proforma has no impact on the simulation).

 

You should contact your TRNSYS distributor in order to obtain the binary version of type155 compatible with the MATLAB version you use.

 

Sincerely,

 

Werner

 


De : ericjhwilson@gmail.com [mailto:ericjhwilson@gmail.com] De la part de Eric Wilson
Envoyé : lundi 22 septembre 2008 20:01
À : trnsys-users@cae.wisc.edu
Objet : [TRNSYS-users] "Unable to start the Matlab Engine" using MATLAB R14Type 155

 

Hi,

I am using TRNSYS version 16.01.0002 trying to run the "Calling Matlab" example.  I am using Matlab 7.0 (R14), although Matlab 2006 was previously installed on this computer so that might be causing problems.

I get the error:
"Access violation at address 04ED1457 in module 'libeng.dll'. Read of address 00000004."

followed by:
"An unexpected error was encountered and TRNSYS will abort."

The log file reads "Message: Unable to start the Matlab Engine".

I opened the Type155.tmf file and noticed that on the "Files" tab the "Source Code File" path is ".\SourceCode\Types\Type155.f90".  However, this file is not located at that path, but rather at ".\SourceCode\Optional\Type155.f90"

I tried copying it (and those four .lib files) to the Types directory.  Clicking the "Edit" button will now find the file, but clicking "Compile Module" still can't find the file in this location.

I have the Windows search path properly set to "C:\Matlab\bin\win32"

How do I make sure the routine is linked with the libeng.lib, libmat.lib, libmex.lib and libmx.lib files?

I have tried copying these files from the Matlab installation (C:\Matlab\extern\lib\win32\...) to the "SourceCode\Optional\" directory.  However, there are several versions of each file. How do I know which folder to get them from (i.e. watcom, microsoft, lcc, digital borland)?  My Fortran compiler is Compaq Visual Fortran 6.6.0 (Microsoft Visual Studio DF98).

Do I need to recompile Type155, as suggested by Diego in a previous message?  I assume that this is done by clicking "Compile Module" on the "Files" tab of Type155.tmf, however I get an error as mentioned above.

Thank you in advance for any help or suggestions you can give me.

Eric Wilson
Building Systems Program
University of Colorado at Boulder







************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************





************************************************************************************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses.
************************************************************************************