User`s guide

7 Creating Custom Drivers Using the xPC Target™ D river Authoring Tool
Generating Custom Driver Te mplates
In this section...
“Using the xPC Target Driver Authoring Tool” on page 7-4
“Setting Up Driver Variables” on page 7-4
“Saving the Configuration” on page 7-7
“Reloading the Co nfiguration” on page 7-8
“Creating the C File Template” on page 7-8
“Creating a C MEX File for the Dri ver” on page 7-8
“Customizing the Device D river Mask” on page 7-9
Using the xPC Tar g et Driver Authoring Tool
The prerequisites for creating a custom xPC Target device driver using the
xPC Target Driver Authoring Tool are the same as those for creating a device
driver manually. See “E xpected Background” on page 1-3 and “Before You
Start” on page 1-8 for further information.
The following sections assume that you have identified the following
component specifications for the driver. See “Before You Start” on page 1-8
for guidelines for the following driver components, including their data type
and size:
Input ports
Output ports
Parameters
Work variables
Setting Up Driver Variables
1 In the MATLAB Command Window, change directory to the one in which
you want to save the driver code.
2 Start xPC Target D river Authoring Tool. T ype
xpcdrivertool
7-4