User`s guide

1 Customizing xPC Target™ Drivers
Rename this file your_co mpany_namelib_xpcblocks. m and edit this file as
follows:
Set
out.Library to your new library.
out.Library = 'your_company_namelib';
Set out.Name to a string, such as the library name.
out.Name = 'your_company_namelib Blockset';
This string will appear in the Simulink Library Browser.
Ensure that
out.IsFlat is set to 0.
out.IsFlat = 0;
Note Ensure that you create a function that calls the out structure.
13 (Optional for PCI boards) To enable the getx pcpc i function to account for
your new board, copy
sample_supported.m toauniquefilename. For
example:
your_company_namelib_supported.m
Edit your copy of the file. For each board for which you add a device driver:
a Copy one of the com mented structures in the file.
b Remove the comment symbols (%).
c Starting with 1, change the ID number as necessary. Number the device
structures sequentially, starting with
1.
d Replace the field entries with your equivalents.
A structure entry might look like:
boards(1).VendorID = '18f7';
boards(1).DeviceID = '0004';
boards(1).SubVendorID = '- 1';
boards(1).SubDeviceID = '- 1';
boards(1).DeviceName = '42 2/2- PCI-335';
1-14