User`s guide
9 Targeting DOS for Real-Time Applications
9-6
Hardware Requirements
The hardware needed to develop and run a real-time program includes:
• A workstation running Windows 95, Windows 98, or Windows NT and
capable of running MATLAB/Simulink. This workstation is the host where
the real-time program is built.
• A PC-AT (386 or higher) running DOS. This system is the target,wherethe
real-time program executes.
• I/O boards, which include analog to digital converter and digital to analog
converters (collectively referred to as I/O devices), on the target.
• Electrical connections from the I/O devices to the apparatus you want to
control (or to use as inputs and outputs to the program in the case of
hardware-in-the-loop simulations).
Once built, you can run the executable on the target hardware as a stand-alone
program that is independent of Simulink.
Software Requirements
The development host must have the following software:
• MATLAB, Simulink to develop the model, and Real-Time Workshop to create
thecodeforthemodel.Youalsoneedtherun-timeinterfacemodules
included with the Real-Time Workshop. These modules contain the code that
handles timing, interrupts, data logging, and background tasks.
• Watcom C/C++ compiler, Version 10.6.
The target PC must have the following software:
• DOS4GW extender
dos4gw.exe,includedwithyourWatcomcompiler
package) must be on the search path on the DOS-targeted PC.
You can compile the generated code (i.e., the files
model.c, model.h,etc.)along
with user-written code using other compilers. However, the use of 16-bit
compilers is not recommended for any application.
Device Drivers
If your application needs to access its I/O devices on the target, then the
real-time program must contain device driver code to handle communication
with the I/O boards. The Real-Time Workshop DOS run-time interface includes