Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
初级会员
注册日期: 2009-04-22
年龄: 38
帖子: 12
声望力: 17 ![]() |
![]()
在使用RTW将Simulink模型生成C代码过程中产生了一个错误,经过一段时间的修改还是没有用,希望有会的达人帮忙看看,谢谢!
在设定参数时 Solver:Simulation time Start time:0.0 Stop time:inf Solver options Type:Fixed-step ode5(Dormand-Prince) WorkspaceI/O:Time与Output选中 Real-Time Workshop Category:Target configuration Configuration System target file:Visual C/C++Project Makefile only for the "grt" target 之后点击Build就产生如下的错误: Error executing build command: Error using ==> make_rtw Error using ==> d:/matlab2006/toolbox/rtw/rtw/private/issue_inv_comp_env_val_error Invalid setting for environment variable MSDevDir or DevEnvDir. The setting is: '' You can verify the setting by checking for the existence of: %MSDevDir%\..\vc\bin\vcvars32.bat (for Visual C/C++ 5.0) %MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0) %DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 7.0) You must define MSDevDir or DevEnvDir to be: set %MSDevDir%=<VisualRoot>\sharedide (for Visual C/C++ 5.0) set %MSDevDir%=<VisualRoot>\common\msdev98 (for Visual C/C++ 6.0) set %DevEnvDir%=<VisualRoot>\common7\ide (for Visual C/C++ 7.0) This error may be due to an invalid preference file: C:\Documents and Settings\cxf\Application Data\MathWorks\MATLAB\R13\mexopts.bat Please run "mex -setup" at the MATLAB prompt to correct |
![]() |
![]() |