05-09-2011 05:12 AM
Hi:
I am trying to convert simulink model to labview RT available model with NI Veristand. Well I follow the instructions of the NI Veristand Help_document to build simulink model(.mdl) to C code in Matlab with system target file NI Veristand.tlc, an unknown error occured as following:
Error building Real-Time Workshop target for block diagram 'test'. MATLAB error message:
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++ 7.1)
%MSDevDir%\..\..\vc98\bin\vcvars32.bat (for Visual C/C++ 6.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
%DevEnvDir%\..\tools\vsvars32.bat (for Visual C/C++ 8.0)
You must define MSDevDir or DevEnvDir to be:
05-09-2011 08:39 AM
When you get that message it is most likely that you have not setup your compiler or you do not have it setup with a compiler supported by NI VeriStand. NI VeriStand supports most versions of Microsoft Visual Studio, but refer to the readme for the exact list. For information on setting up the compiler see the Note right before the list of steps in the help topic for Converting a Model into a Model DLL:
http://zone.ni.com/reference/en-XX/help/372846B-01/veristand/convert_model_to_dll/
Carl L
National Instruments
05-10-2011 05:34 AM
I have solved the problem following the instruction that you recommended me. Thanks so much!
09-21-2012 08:32 AM
I have the same problem, but i dont nowk when is the element NIVeriStand.tlc, i just have NIdll.tlc, please help me.
thanks
09-26-2012 08:50 PM
Hi kiara_072
Assuming you installed NI VeriStand 2011 and MATLAB 2007b or later, then the file should have been installed to: C:\Veristand\2011\ModelInterface\tmw\R2007b\NIVeriStand.tlc
If this directory is missing, then please confirm you selected the "NI VeriStand 2011 Model Framework" feature during the installer setup.