Error in Simulink: Invalid MEX-file

HI, I am new to Simulink and trying to simulate a Simulink model. It has a S-Function embedded in it. Along with the model I have several dll files and a mexw32 file. When I try to simulate this .mdl model, I get following error message. Could you throw some light on it as to why it is happening?
"Invalid MEX-file 'C:\Program Files\MATLAB\R2011b\toolbox\stateflow\stateflow\sf.mexw32': The specified module could not be found."
Is it a version change issue?
Thanks in advance

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 5월 23일

1 개 추천

That is a Stateflow MEX-file - it looks like it may depend on some Microsoft Visual Studio redistributables that you are missing. Could you try installing Visual Studio 2010 redistributables and see if that fixes the issue: http://www.microsoft.com/en-us/download/details.aspx?id=5555

댓글 수: 2

Adi
Adi 2012년 5월 24일
Thanks for the reply. I managed to run this simulation in R2010b and could get past this error. Dont know what was happening behind the curtain !
Kaustubha Govind
Kaustubha Govind 2012년 5월 24일
Perhaps you have Visual Studio 2005 or 2008 installed, but not 2010?

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

카테고리

도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

Adi
2012년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by