User`s guide
9 Targeting DOS for Real-Time Applications
9-16
Building the Program
Once you have created your Simulink model and added the appropriate device
driver blocks, you are ready to build a DOS target application. To do this, select
Parameters from the Simulation menu of your Simulink model and display
the Real-Time Workshop page of the Simulink parameters dialog box.
On the Real-Time Workshop page, specify:
•
drt.tlc as the System target file
• drt_watc.tmf as the Template makefile.ThisisusedwiththeWatcom
compiler, assembler, linker, and
WMAKE utility.
•
make_rtw as the Make command
Alternatively, you can open the system target file browser by clicking Browse
and select drt.tlc. This automatically fills in the correct files.
You can specify Target Language Compiler options in the system target file
field following
drt.tlc, and make options in the Make command field following
make_rtw. Chapters 2 and 3 provide detailed descriptions of the available
Target Language Compiler and make options. The DOS system target file,
drt.tlc, and the template makefile, drt_watc.tmf, are located in the
matlab\rtw\c\dos directory.
1 The template makefile assumes that the Watcom C/386 Compiler,
Assembler, and Linker have been correctly installed on the host