Skip to main content

Customer Login

This content is for Speedgoat customer only. Log in to see content.

Forgot your password?

Don't have a Speedgoat account? Create an account.

Documentation
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg

C Compiler Configuration

C Compiler Configuration

C Compiler

Simulink Real-Time lets you automatically create real-time applications from Simulink models. This automated C code generation process requires a valid Visual Studio compiler installation on your development PC.

The following table shows which versions of Visual Studio compilers are supported by Simulink® Real-Time™ in which MATLAB releases:

MATLAB release

R2019a

R2019b

R2020a

Supported compilers

VS2015

VS2017

VS2019[a]

VS2015

VS2017

VS2019

[a] Support added in MATLAB R2019a Update 3

In case of compiler issues contact MathWorks support.

Please ensure you have a compatible C/C++ compiler installed.

A list of all supported compilers is available on the MathWorks Previous Releases: System Requirements and Supported Compilers web page.

Set the Compiler

The mex -setup command sets the default compiler for Simulink Real-Time builds, provided that the MEX compiler is supported by MathWorks.

We recommend to use the same compiler for MEX-file compilation and for Simulink Real-Time builds. To enable this option use the following command:

speedgoat.setCompiler

By using the mex -setup command, the compiler for Simulink Real-Time builds will now be the same.

Instructions on how to configure a compiler: Command-Line C Compiler Configuration or Command-Line C Compiler Configuration (web)