This test attempts to build and download the model
To determine the cause of failure, in the Diagnostics
Viewer and in the Command Window, review the error messages. You can
slrttestmdl and build and download it
Build Failed — Compiler not supported?
slrtgetCC, check that you are using a supported compiler. Check
that you can compile the blocks in the model with the given compiler and
If you did not explicitly specify a compiler by using
the build procedure uses the compiler that you specified by using
-setup. If the MEX compiler is not a supported Microsoft®
Visual C++® compiler,
the build procedure halts with an error.
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 specified Stop.
Check your compiler setup:
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.  Microsoft Visual C++ Compilers 2010 Professional in C:\Program Files (x86)\Microsoft Visual Studio 10.0  Microsoft Visual C++ Compilers 2013 Team Explorer Language Pack in C:\Program Files (x86)\Microsoft Visual Studio 12.0  None Compiler:
Compiler prompt, enter the
number for the compiler that you want to use. For example,
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?
y or press Enter.
If this procedure does not solve your issue, see
Real-Time Application Download, and
Between Development and Target Computers in Troubleshooting in Simulink Real-Time. If you still cannot solve your issue,
see Find Simulink Real-Time Support.