File Exchange

image thumbnail

Real-Time Workshop Embedded Coder Custom Code Tips and Scripts

version 1.0.0.1 (16.2 KB) by

Has new software and examples to customize generated code files

6 Downloads

Updated

View License

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.

Comments and Ratings (2)

TAB

TAB (view profile)

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

JORGE CRUZ MANCILLA

THANKS

Updates

1.0.0.1

Updated license

1.0

removed broken link

MATLAB Release
MATLAB 6.5 (R13)
Acknowledgements

Inspired by: Real-Time Workshop Targeting Tips and Scripts

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

» Watch video