Error with RealTimeWorkshop Compiler
이전 댓글 표시
I am trying to generate the C code from simulink, but i am stuck with an error which is stopping the generation of C code. The error is :
Error using ==> issue_inv_comp_env_val_error at 9
"Invalid setting for environment variable MSDevDir or DevEnvDir. The setting is: '' You can verify the setting by checking for the existence of: %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 9.0) %MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0) %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
You must define MSDevDir or DevEnvDir to be: set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 9.0) set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0) set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 8.0)
This error may be due to an invalid preference file: C:\Dokumente und Einstellungen\FGLuser\Anwendungsdaten\MathWorks\MATLAB\R2010b\mexopts.bat Please run "mex -setup" at the MATLAB prompt to correct"
I tried creating the mex -setup at matlab prompt but could not solve my problem... I am not understading why this problem exists... Can any one help me in solving this. Thanks in advance for reply..
댓글 수: 7
niharika
2012년 8월 17일
Friedrich
2012년 8월 17일
Seems like you are using 10b on Windows XP. Can you post the content of your mexopts.bat (C:\Dokumente und Einstellungen\FGLuser\Anwendungsdaten\MathWorks\MATLAB\R2010b\mexopts.bat) file here?
Do you use the Labview Simulation Interface Toolkit together with your Simulink intallation?
niharika
2012년 8월 17일
Friedrich
2012년 8월 17일
Interesting. Looking at the MATLAB Output in the error, it seems like MATLAB picks up the preference folder of R2010b. Do you have 10b installed?
Do you have any environment variable called MATLAB_Prefdir? If so, which value does it have? (In Matlab you can run "!set" (without the ") and post the output here)
niharika
2012년 8월 21일
niharika
2012년 9월 7일
답변 (1개)
Sachin Ganjare
2012년 9월 12일
0 개 추천
You will need to verify mexopts.bat file manually to check whether correct paths are enetered by running 'mex -setup' command
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!