LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simulink

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.
0 Kudos
Message 1 of 4
(2,859 Views)

hi there

have you already tried to follow the instructions in the error message (see last line of message) :

"Please run "mex -setup" at the MATLAB prompt to correct"

?

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 4
(2,846 Views)

Hi, thanks alot for your help, Yes,I have tried that command ,,but nothing changed. still having the same problem.

 

Thank you

0 Kudos
Message 3 of 4
(2,835 Views)

hi there

well, if its just a problem with the environment variables

MSDevDir
DevEnvDir

you may try to set them manually.

 
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 4
(2,799 Views)