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. In the Command Window, type:

    slrtsetCC ('VisualC','')
    mex -setup

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.