Documentation

Test 4: Build and Download slrttestmdl

This test attempts to build and download the model slrttestmdl.

  1. To determine the cause of failure, in the Diagnostics Viewer and in the Command Window, review the error messages. You can also open slrttestmdl and build and download it manually.

  2. Build Failed — Compiler not supported?

    Using slrtgetCC, check that you are using a supported compiler. Check that you can compile the blocks in the model with the given compiler and compiler version.

    If you did not explicitly specify a compiler by using slrtsetCC, the build procedure uses the compiler that you specified by using mex -setup. If the MEX compiler is not a supported Microsoft® Visual C++® compiler, the build procedure halts with an error.

  3. Build Failed — Compiler path?

    After installation, the Microsoft Visual C++ compiler components must be in the Microsoft Visual Studio® folder. If you do not install the compiler at the required location, you can get one of the following errors:

    Error executing build command: Error using ==> make_rtw
    Error using ==> rtw_c (SetupForVisual)
    Invalid DEVSTUDIO path specified

    or

    Error executing build command: Error using ==> make_rtw
    Error using ==> rtw_c
    Errors encountered while building model "slrttestmdl"

    along with this error:

    NMAKE: fatal error U1064: MAKEFILE not found and no target 
    specified 
    Stop.

    Check your compiler setup:

    1. In the Command Window, type:

      slrtsetCC('setup')

      This function queries the development computer for C compilers that Simulink® Real-Time™ supports. It returns output like the following:

      Select your compiler for Simulink Real-Time.
      
      [1] Microsoft Visual C++ Compilers 2010 Professional in 
          C:\Program Files (x86)\Microsoft Visual Studio 10.0
      [2] Microsoft Visual C++ Compilers 2013 Team Explorer 
          Language Pack in C:\Program Files (x86)\Microsoft Visual Studio 12.0
      
      
      [0] None
      
      Compiler:
    2. At the Compiler prompt, enter the number for the compiler that you want to use. For example, 1.

      The function verifies your selection:

      Verify your selection:
      
      Compiler: Microsoft Visual C++ Compilers 2010 Professional
      Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0
      
      Are these correct [y]/n?
    3. Type y or press Enter.

If this procedure does not solve your issue, see Model Compilation, Real-Time Application Download, and Communication Between Development and Target Computers in Troubleshooting in Simulink Real-Time. If you still cannot solve your issue, see Find Simulink Real-Time Support.

Was this topic helpful?