MATLAB XPC TARGET 4 - DEVICE DRIVERS Podręcznik Użytkownika Strona 22

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 111
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 21
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
Przeglądanie stron 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 110 111

Komentarze do niniejszej Instrukcji

Brak uwag