This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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


    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 

    Check your compiler setup:

    1. In the Command Window, type:


      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
    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, continue with the tests in Troubleshoot with Confidence Test. If you still cannot solve your issue, see Find Simulink Real-Time Support.