From: karthikeyan on
Is it possible to generate code with predefined precompiler condition using RTW E-coder?

Here my example which i am looking for in generated code

file : foo.c

#include my_identifier.h
function myFunc()
{
........
#ifdef identifier
..............................................
..................................................
#endif
.......
}

where identifier is defined in the my_identifier.h
From: Riccardo on
"karthikeyan " <kanandhi2k(a)gmail.com> wrote in message <hvshs1$ni7$1(a)fred.mathworks.com>...
> Is it possible to generate code with predefined precompiler condition using RTW E-coder?
>
> Here my example which i am looking for in generated code
>
> file : foo.c
>
> #include my_identifier.h
> function myFunc()
> {
> .......
> #ifdef identifier
> .............................................
> .................................................
> #endif
> ......
> }
>
> where identifier is defined in the my_identifier.h


Yes, I'm sure it is. Documentation and TMW's examples should give you all the info you may need.
From: karthikeyan on
"Riccardo" <nothx(a)nospam.org> wrote in message <hvt38o$6gi$1(a)fred.mathworks.com>...
> "karthikeyan " <kanandhi2k(a)gmail.com> wrote in message <hvshs1$ni7$1(a)fred.mathworks.com>...
> > Is it possible to generate code with predefined precompiler condition using RTW E-coder?
> >
> > Here my example which i am looking for in generated code
> >
> > file : foo.c
> >
> > #include my_identifier.h
> > function myFunc()
> > {
> > .......
> > #ifdef identifier
> > .............................................
> > .................................................
> > #endif
> > ......
> > }
> >
> > where identifier is defined in the my_identifier.h
>
>
> Yes, I'm sure it is. Documentation and TMW's examples should give you all the info you may need.

Hi Riccardo

Can you please send me the link where I can see the documentation and TMW's examples.
From: Frank W. on
> Can you please send me the link where I can see the documentation and TMW's >examples.

I'd start here
http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f14251.html
http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f1144416.html
From: karthikeyan on
"Frank W." <yohansan.nospam(a)web.de> wrote in message <i1p6us$hdh$1(a)fred.mathworks.com>...
> > Can you please send me the link where I can see the documentation and TMW's >examples.
>
> I'd start here
> http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f14251.html
> http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ug/f1144416.html

Hi Frank

I couldn't see any certain solution for my problem. Basically, I am planning to generate the code configuration based. Let me send my problem again
> > Is it possible to generate code with predefined precompiler condition using RTW E-coder?
> >
> > Here my example which i am looking for in generated code
> >
> > file : foo.c
> >
> > #include my_identifier.h
> > function myFunc()
> > {
> > .......
> > #ifdef identifier
> > .............................................
> > .................................................
> > #endif
> > ......
> > }
> >
> > where identifier is defined in the my_identifier.h
 | 
Pages: 1
Prev: Matlab Embedded function
Next: recursion