From: P. Graebel on
I need to call custom matlab functions before and after
running the RTW build process. E. g. I need to create
additional source code files from the model that is selected
for code generation.

Back to Matlab 6.5 I manipulated simprm.m to reach this
functionality (case block 'RTWPage'). But inserting own code
there is tricky and a bad hack. Generally simprm seems to be
obsolete in later Matlab releases.

Is there a better solution to hook in there?

From: Riccardo on
"P. Graebel" <pgraebel(a)stud.fh-dortmund.de> wrote in
message <fvpshv$gm1$1(a)fred.mathworks.com>...
> I need to call custom matlab functions before and after
> running the RTW build process. E. g. I need to create
> additional source code files from the model that is
selected
> for code generation.
>
> Back to Matlab 6.5 I manipulated simprm.m to reach this
> functionality (case block 'RTWPage'). But inserting own
code
> there is tricky and a bad hack. Generally simprm seems to
be
> obsolete in later Matlab releases.
>
> Is there a better solution to hook in there?
>

In R13 you could consider the RTW hook functions as well
(<yourtarget>_make_rtw_hook.m), if your calls were designed
to make use of information from the RTW process - I guess
something similar should be available in later versions.
If your calls are external to the RTW process (i.e.
preceding or following it), the best option is to write
your own function/script to control the code generation
process, including calls to your custom function and RTW in
the right order.
hth
Riccardo

 | 
Pages: 1
Prev: mouse scroll wheel
Next: label for colorbar