User`s guide
Device Driver Blocks
9-9
Device Driver Blocks
The real-time program communicates with external hardware via a set of
device drivers. These device drivers contain the necessary code for interfacing
to specific I/O devices.
The Real-Time Workshop includes device drivers for commercially available
Keithley Metrabyte 1600/1400 Series I/O boards. These device drivers are
implemented as C-coded, S-functions to interface with Simulink. This means
you can add them to your model like any other block.
In addition, each of these S-function device drivers has a corresponding target
file to inline the device driver in the model code. See Chapter 10, “Targeting
Custom Hardware,” for information on implementing your own device drivers.
Since the device drivers are provided as source code, you can use these device
drivers as a template to serve a a starting point for creating custom device
drivers for other I/O boards.
Device Driver Block Library
The device driver blocks for the Keithley Metrabyte 1600/1400 Series I/O
boards designed for use with DOS applications are contained in a block library
called
doslib (matlabroot\toolbox\rtw\doslib.mdl). To display this library,
type
doslib
at the MATLAB prompt. This window will appear: