How do I set up Microsoft Visual Studio 2019 for SLRT?

7 ビュー (過去 30 日間)
Oscar Javier Alvarado Zarabanda
Oscar Javier Alvarado Zarabanda 2020 年 9 月 11 日
回答済み: Diego Kuratli 2020 年 9 月 27 日
How do I set up Microsoft Visual Studio 2019 for use with Simulink Real-Time?
  2 件のコメント
bitla bhanuteja
bitla bhanuteja 2020 年 9 月 24 日
編集済み: bitla bhanuteja 2020 年 9 月 24 日
I too want a solution for this. I tried to do the process in the above link, the process has a step where one has to download a zip file and place it in root of matlab, the problem is that the file they have provided are for Matlab 2017 and 2016 , I'm currently running 2019b, so can you help me with 2019b please?

サインインしてコメントする。

回答 (1 件)

Diego Kuratli
Diego Kuratli 2020 年 9 月 27 日
1. Close MATLAB.
2. Download VS2019 (Professional or Community Edition). During the VS2019 installation, select the "Desktop development with C++" workload. This should install all required components.
3. After the installation, in MATLAB type
slrtsetCC ('VisualC','')
mex -setup
4. From the list of installed compilers, select VS2019.
Note 1: if you use R2019a, make sure to install the R2019 Update 5 or newer. VS2019 is not supported in older releases.
Note 2: from R2020b, Visual Studio compiler is no longer required for Simulink Real-Time. Instead, install the Simulink Real-Time Target Support Package.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by