Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

xPC Target Driver Authoring Tool

xPC Target Driver Authoring Tool helps you create templates for simple custom device drivers. A simple custom device driver is one that does not perform DMA or interrupt processing. The xPC Target Driver Authoring Tool is not useful for these more complicated applications.

Based on the inputs you provide to xPC Target Driver Authoring Tool, it can create a number of files, including the following. Of these files, you need to edit only the source C code file. You can also optionally edit the block mask file.

FileDescription
driver_name.c

Template for the source C code for driver. You need to enter your C code.

driver_name.h

Header file for driver.

sfcn_driver_name.c

S-function file for driver. This file contains S-function callback methods and options for the driver.

sfcn_driver_name.tlc

Optional. Real-Time Workshop TLC code generation file. You typically need a .tlc file only if you want to inline your custom driver. See Inlining xPC Target Drivers for further information. The xPC Target Driver Authoring Tool creates this file for you whether or not you want to inline the driver.

driver_block_name.mdl

Optional. Block mask model file for driver. After the xPC Target Driver Authoring Tool creates the supporting files, it creates the block mask for the driver and displays it in the Simulink model window. The tool creates this file only if you select the MEX C file check box.

sfcn_driver_name.mexw32

Optional. If you requested the creation of a C MEX file, the tool generates one for you.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS