simulink toolbox portability

조회 수: 14 (최근 30일)
r2b
r2b 2011년 2월 10일
I have a toolbox for simulink that used to work fine with version 7.0.1 now I have 7.9.0 and it does not work anymore. On running the model it gives the following message "Invalid MEX-file 'I:\Matlab\ESP\NST_DENS.dll': The specified procedure could not be found." I have the above said file in the folder but it seems I need to develop it again?? How do I go about fixing this.

채택된 답변

Walter Roberson
Walter Roberson 2011년 2월 10일
Did you switch from using 32 bit before to using 64 bit now? If so then the old dll would not work.
  댓글 수: 1
r2b
r2b 2011년 2월 10일
Walter
I am using 32 bit and have not changed, the toolbox was made by some other person though and I am not sure what he used.
If I need to make a new dll file how should I go about it.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Seth Popinchalk
Seth Popinchalk 2011년 2월 10일
When MATLAB reports an Invalid MEX-file it usually means the file was compiled for a different platform (Win32 vs Win64) than the one you are running on. You recompile the file if you have the original source code.
Often for a file mymexfile.dll the source file is mymexfile.c.
To recompile it may be as simple as running the following command in the directory with the source file:
mex mymexfile.c
If the MEX file has additional dependencies your compile command will be more complicated. See the following technical note about MEX
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2011년 2월 10일
Also, you can determine whether your DLL is 32-bit or 64-bit by using dumpin (http://support.microsoft.com/kb/177429) with the /headers option.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by