How can I create custom storage classes beyond what is available in the CSCDESIGNER user interface in the generated code with Real-Time Workshop Embedded Coder 5.4 (R2009a)?
2 views (last 30 days)
Show older comments
MathWorks Support Team
on 8 Mar 2010
Edited: MathWorks Support Team
on 16 Feb 2017
To interface with an existing C code, I need Real-Time Workshop Embedded Coder to generate the signal variables as const pointers, so that the declaration looks like the following:
extern real32_T * const sig1;
Using the CSCDESIGNER user interface, I was only able to create the following declaration:
extern const real32_T * sig1;
Accepted Answer
MathWorks Support Team
on 15 Feb 2017
Details on this can be found in the "Defining Advanced Custom Storage Class Types" section of the Real-Time Workshop Embedded Coder documentation. You can bring up the right page by using the following MATLAB command:
>> docsearch('Defining Advanced Custom Storage Class Types')
Or click on the following link for further information - <http://www.mathworks.com/help/ecoder/ug/define-advanced-custom-storage-classes-types.html#f27724>
0 Comments
More Answers (0)
See Also
Categories
Find more on Embedded Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!