Real-Time Windows Target | ![]() ![]() |
Creating a Real-Time Application
Real-Time Workshop generates C code from your Simulink model, then a third-party C compiler compiles and links that C code into a real-time application.
After you enter parameters into the Simulation Parameters dialog box for Real-Time Workshop, you can build a real-time application. This procedure uses the Simulink model rtwin_model.mdl
as an example, and assumes you have loaded that model:
rtwin_model.c
and rtwin_model.h
.
ake_rtw.exe
creates the makefile rtwin_model.mk
from the template makefile rtwintmf
.
make_rtw.exe
builds the real-time application rtwin_model.rwd
using the makefile rtwin_model.mk
created above. The file rtwin_model.rwd
is a binary file that we refer to as your real-time application. You can run the real-time application with the Real-Time Windows Target kernel.
After you create a real-time application, you can exit MATLAB, start MATLAB again, and then connect and run the executable without having to rebuild.
![]() | Entering Scope Parameters for Signal Tracing | Entering Additional Scope Parameters for Signal Tracing | ![]() |