From: Mohan on
I am trying to generate Vector CANoe Real Time Target DLL(CN.TLC) file for my small simulink model. Before i selecting CN.TLC system target file, i select the target file as a grt.tlc and build the same mdl file. It give the .c files as a output file. It is working fine. But when i select CN.TLC system target file and build the same model, it shown the below error. Please guide me to resolve this issue.
Error executing build command: Error using ==> make_rtw
Error using ==> d:/matlab6p5p1/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\SMOHAN1\Application Data\MathWorks\MATLAB\R13\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct.

Thanks in Advance for your quick support.