User`s guide

9 Targeting DOS for Real-Time Applications
9-4
Implementation Overview
The Real-Time Workshop includes DOS run-time interface modules designed
to implement programs that execute in real-time under DOS. These modules,
when linked with the code generated from a Simulink model, build a complete
program that is capable of executing the model in real time. The DOS run-time
interface files can be found in the
matlabroot/rtw/c/dos/rti directory.
Real-Time Workshop DOS run-time interface modules and the generated code
for the F-14 example from Chapter 2 are shown in the figure below.
Figure 9-1: Source Modules Used to Build the DOS Real-Time Program
Generated Code
f14.c
f14.h
drt_main.c
Main Program
rt_sim.c
Integration
Module
Model
Data Structure
simstruc.h
Executable File
ode5.c
f14[.exe]
Execution
Data Logger
rtwlog.c
Makefile
Template
Makefile
f14.mk
f14.prm
f14.reg
Simulink
drt_watc.tmf
drt_time.c
Timer
drt_key.c
Keyboard
Interrupt
Support
drt_cpu.c
drt_cpu.h
drt_fpu.asm