How do I have RTW EC run a batch file directly after code generation?

Please help me understand how I can have RTW run a .m and/or windows batch file directly after the code is generated. I want to automate moving the generated code files and performing post-processing. I am using the ert.tlc

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 14 Feb. 2011

0 Stimmen

You can achieve this sort of thing for your own custom target using the 'after_tlc' hook of the STF_make_rtw hook file. For ert.tlc, this file is located at $matlabroot/toolbox/rtw/targets/ecoder/ert_make_rtw_hook.m, but it is not advisable to modify this, since it applies to every model that uses ert.tlc, and you lose your changes when you upgrade MATLAB. The best thing to do is to create a dummy custom target that inherits from ert.tlc with the hook file customized.

1 Kommentar

If you are planning on moving the generated code *before* compiling it, you will probably also need to modify your template makefile (".tmf") file as well. That may include paths that are no longer correct once you move the files.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Feb. 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by