How do I compile the C-code generated from the Real-Time Workshop in MS Developer Studio?

1 view (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Sep 2010
In order to compile the C-code generated from the Real-Time Workshop in MS Developer Studio, please use the following instructions:
1) Change the template makefile for the build from 'grt_default_tmf' to 'grt_msvc.tmf'. To do so, choose Configuration parameters from the Simulation menu. Then, Click on the Real-Time Workshop tab and change the template makefile defined there within.
This will create a model.mak file that is suited for the MS Developer Studio.
2) Bring up the MS Developer and load the workspace. Since the .mak file is originally for MSVC 4.2, when you load the workspace, you may receive a couple of warning messages. Just click "OK" to these messages.
3) Go to 'Set Active Configuration' within the 'Build' tab and select debug.
4) Build the executable file.

More Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!