Real-Time Workshop Embedded Coder Previous page   Next Page

Custom File Processing Templates

The ERT target now supports use of custom file processing templates (CFP template) during code generation. A CFP template is a TLC file that calls a high-level API, referred to as the code template API. The code template API simplifies generation of custom source code by letting you

Note that, although use of CFP templates simplifies custom code generation, the feature still requires some understanding of TLC programming. See the Target Language Ccompiler Reference Guide documentation to learn the basics of TLC.

The files provided to support custom file processing are located in the directory matlabroot/rtw/c/tlc/mw. The key files are

Once you have created a CFP template, you must integrate it into the code generation process, using the File customization template option. This option is located in the ERT code templates category of the Real-Time Workshop pane of the Simulation Parameters dialog (shown in the figure below).

The File customization template option specifies the name of a CFP template file to use when generating code files. This file must be located on the TLC path. The default CFP template is example_file_process.tlc.


Previous page  Generating Custom Code File Banners Template Structure Next page

Learn more about the latest releases of MathWorks products:

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