View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Real-Time Workshop Embedded Coder Custom Code Tips and Scripts

4.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 16.2 KB File ID: #3946 Version:
image thumbnail

Real-Time Workshop Embedded Coder Custom Code Tips and Scripts



11 Sep 2003 (Updated )

Has new software and examples to customize generated code files

| Watch this File

File Information

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.


? Unzip the files from 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)


See Article "Creating Custom Code with Real-Time Workshop Embedded Coder 3.1" in Sept. 2003 Issue of MATLAB Digest.


Real Time Workshop Targeting Tips And Scripts inspired this file.

Required Products Embedded Coder
MATLAB release MATLAB 6.5 (R13)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
04 Aug 2011 TAB

TAB (view profile)

where is file 'ert.tlc'. It is missing from zip folder

Comment only


09 May 2016 1.0

removed broken link

01 Sep 2016

Updated license

Contact us