Abstract
========
This package provides a demo model, scripts, and template TLC files that allow
you to customize and process code files generated by the Real-Time Workshop® Embedded Coder™. The file processing capability makes it easy to add custom
banners, insert code segments (#includes or #defines), add pragmas, create
custom main files and much more. The TLC files serve as templates that you
can modify and tailor as needed.
Using this package, you can eliminate the need for post processing or modifying
the generated code if its default behavior does not suit your needs. This saves
time, reduces the potential errors, and improves maintenance. This package
ensures that you maximize the capabilities of Real-Time Workshop Embedded Coder.
This package is compatible with MATLAB® Releases 13 Service Pack 1. It requires
the Real-Time Workshop Embedded Coder 3.1.
Installation
============
? Unzip the files from custom_ertfiles.zip into a temporary directory
It should create:
o custom_code_templates folder
o projectx folder
o BIT_sensor_fault.mdl
o ert.tlc
? Back up the existing ERT system target, for example, by changing
matlabroot/rtw/c/ert/ert.tlc to matlabroot/rtw/c/ert/ert.old
? Use the new ert.tlc from the zip file to replace the old system
target file in matlabroot/rtw/c/ert/ert.tlc
This is all you need to do to use basic Code Customization capabilities.
If you want to learn how to create a new target and do further customizations,
then perform the following steps:
? Create a directory D:\projectx
? Add the following zip files to the directory
o D:\projectx\custom_code_templates folder
o D:\projectx\projectx folder
o D:\projectx\BIT_sensor_fault.mdl
? Add D:\projectx\projectx to your MATLAB Path
(e.g, via MATLAB -> File -> Set Path)
DEMOS and DOCUMENTATION
=======================
? See Article "Creating Custom Code with Real-Time Workshop Embedded Coder 3.1" in Sept. 2003 Issue of MATLAB Digest (www.mathworks.com/company/digest) |