4.0

4.0 | 1 rating Rate this file 31 downloads (last 30 days) File Size: 16.25 KB File ID: #3946

Real-Time Workshop Embedded Coder Custom Code Tips and Scripts

by Tom Erkkinen

 

11 Sep 2003 (Updated 17 Sep 2004)

Code covered by BSD License  

Has new software and examples to customize generated code files

Download Now | Watch this File

File Information
Description

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)

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Real-Time Workshop Targeting Tips and Scripts

Required Products Real-Time Workshop Embedded Coder
MATLAB release MATLAB 6.5 (R13)
Zip File Content  
Other Files BIT_sensor_fault.mdl,
custom_code_templates/faults.c,
custom_code_templates/projectx_c_banner.tlc,
custom_code_templates/projectx_file_process.tlc,
custom_code_templates/projectx_h_banner.tlc,
install.txt,
projectx/projectx.tlc,
projectx/projectx.tmf,
projectx/projectx_rtw_info_hook.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
07 Jul 2007 JORGE CRUZ MANCILLA

THANKS

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
whitepaper Tom Erkkinen 22 Oct 2008 07:07:16
article Tom Erkkinen 22 Oct 2008 07:07:16
paper Tom Erkkinen 22 Oct 2008 07:07:16
custom code generation Tom Erkkinen 22 Oct 2008 07:07:16
realtime workshop embedded coder Tom Erkkinen 22 Oct 2008 07:07:16
legacy code Tom Erkkinen 22 Oct 2008 07:07:16
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com