VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem about generating C code in Matlab with system target file NIVeriStand.tlc

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:

 

0 Kudos
Message 1 of 5
(8,143 Views)

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

 

Message 2 of 5
(8,142 Views)

I have solved the problem following the instruction  that you recommended me. Thanks so much!

0 Kudos
Message 3 of 5
(8,130 Views)

I have the same problem, but i dont nowk when is the element NIVeriStand.tlc, i just have NIdll.tlc, please help me.

 

thanks

0 Kudos
Message 4 of 5
(7,338 Views)

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.

Nestor
0 Kudos
Message 5 of 5
(7,305 Views)