Clear Filters
Clear Filters

Simulink Real-Time Broken after upgrade to 2017a

5 views (last 30 days)
I upgraded to 2017a and now when I try to compile a Simulink controller using the real-time toolbox. After it appears to compile I receive an error stating that "The Microsoft-7.1SDK C compiler is not supported for SLRT compiles."
Here is the diagnostic view output
### Generating code into build folder: C:\MATLAB\DAQ\InductionSensorReader_slrt_rtw Output port 1 of 'InductionSensorReader/Coil Controller' is not connected. [3 similar] Component:Simulink | Category:Block warning Input port 1 of 'InductionSensorReader/Sensor Readings/ISAX7' is not connected. Component:Simulink | Category:Block warning ### Invoking Target Language Compiler on InductionSensorReader.rtw ### Using System Target File: C:\Program Files\MATLAB\R2017a\toolbox\slrt\rtw\slrt.tlc Warning: This model contains blocks that do not handle sample time changes at runtime. To avoid incorrect results, only change the sample time in the original model, then rebuild the model. ### Loading TLC function libraries ### Initial pass through model to cache user defined code ### Caching model source code ............................................................................... ............................................. ### Generating TLC interface API. ............................................................................... ............................................................................... ................................................... ### Writing source file InductionSensorReader_capi.c ............................................................................... ........ ### Writing header file InductionSensorReader_capi.h ### Writing header file InductionSensorReader.h ### Writing header file InductionSensorReader_types.h ### Writing header file rtwtypes.h ### Writing header file builtin_typeid_types.h . ### Writing header file multiword_types.h ### Writing header file zero_crossing_types.h ### Writing source file InductionSensorReader.c ### Writing header file InductionSensorReader_private.h ### Writing header file rtmodel.h ### Writing source file InductionSensorReader_data.c ### Writing header file rt_nonfinite.h . ### Writing source file rt_nonfinite.c ### Writing header file rt_defines.h ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. ### Creating xPC Options Header file xpcoptions.h. . ### Creating xPC Definition File xpcvcdll.def ### Creating model Hierarchy xml InductionSensorReader.xml ### Creating model InductionSensorReader_ref.m ### Create mapping files ### Patch xml-file . ### Processing Template Makefile: C:\Program Files\MATLAB\R2017a\toolbox\slrt\rtw\slrt_vc.tmf The Microsoft-7.1SDK C compiler is not supported for SLRT compiles. Please select a supported Microsoft Visual Studio compiler.

Answers (1)

Ankit Bhatnagar
Ankit Bhatnagar on 14 Jul 2017
This could be related to the issue of Microsoft 7.1 SDK Compiler not being installed properly as mentioned here:
The Microsoft 7.1 SDK compiler may not work with Windows 8 or Windows 10. You can also install other supported compilers and select the specific one using "mex -setup" for all mex related builds or for Simulink Real-Time as "slrtsetCC('setup')".
List of supported compilers for R2017a:
You can use Microsoft Visual Studio 2017 compiler as well. Follow these instructions:

Categories

Find more on Troubleshooting in Simulink Real-Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!