Hi, I am trying to control the speed of DC motor using the PID controller, both the labview and simulink are used in this project. I used the simulink interface toolkit to get dll files, I have done the mapping and everything seemed to be working as expected. but when I try to build the model, an error message comes up and generating the dll files in matlab stops.
here is the error message that comes up, hope to help me how this problem can be sorted.
Error executing build command: Error using ==> make_rtw
Error using ==> c:/matlab6p5/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\COOL\Application Data\MathWorks\MATLAB\R13\mexopts.bat
Please run "mex -setup" at the MATLAB prompt to correct
Thank you.