Download Real-Time Workshop User's Guide

Transcript
C
Targeting DOS for Real-Time Applications
Implementation Overview
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 f14 demonstration model are shown in Figure C-1.
Generated Code
f14.c
f14.h
Template
Makefile
Timer
drt_time.c
Keyboard
drt_key.c
Interrupt
Support
drt_cpu.c
drt_cpu.h
drt_fpu.asm
Main Program
drt_watc.tmf
drt_main.c
Model
Execution
rt_sim.c
Makefile
f14.mk
Executable File
f14[.exe]
Integration
Module
ode5.c
Data Logger
rtwlog.c
Simulink
Data Structure
simstruc.h
Figure C-1: Source Modules Used to Build the DOS Real-Time Program
C-4