Driver Authoring Tool Basics

Simulink® Real-Time™ 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 Simulink Real-Time Driver Authoring Tool is not useful for these more complicated implementations.

In a future release, the xpcdrivertool function will be removed.

Based on the inputs you provide to Simulink Real-Time Driver Authoring Tool, it can create several files. Of these files, you typically edit only the source C code file and, optionally, the block mask file.


Template for the source C code for driver. Enter your C code in this file.


Header file for driver.


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


Optional. Simulink Coder™ TLC code generation file. You typically need a .tlc file only if you want to inline your custom driver. For more information, see Inlining Simulink Real-Time Drivers.

The tool creates this file for you with default contents. If you do not intend to inline the driver, leave it unchanged.


Optional. Block mask model file for driver. After the Simulink Real-Time Driver Authoring Tool creates the supporting files, it creates the block mask for the driver and displays it in Simulink Editor.

The tool creates this file only if you select the MEX C file check box.


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

The Simulink Real-Time Driver Authoring Tool creates custom driver templates using the Legacy Code Tool (LCT). You do not need prior knowledge of the Legacy Code Tool to use the Simulink Real-Time Driver Authoring Tool. If you want to read about the Legacy Code Tool, see Integrate C Functions Using Legacy Code Tool (Simulink).

Was this topic helpful?