How can I remove real-time structures from code generated using Embedded Coder?
Show older comments
I am generating C code using Embedded Coder from a Simulink model and I need to remove the real-time structures (shown below) from the code.
With my current model settings, I am only seeing the RT_model structure in the code in the "init" and "step" functions, where they are not used for anything. The code generates like this:
/* Model step function */
void step(RT_MODEL_ADM_T *const ADM_M, BOOL_T *ADM_Y_return_value)
{
DW_ADM_T *ADM_DW = ((DW_ADM_T *) ADM_M->dwork);
….
}
/* Model initialize function */
void init(RT_MODEL_ADM_T *const ADM_M)
{
DW_ADM_T *ADM_DW = ((DW_ADM_T *) ADM_M->dwork);
….
}
Instead, I would like the code to generate like the code below:
void step(void)
{
...
}
void init(void)
{
...
}
Why are the real-time structures appearing in my code, and how can I get rid of them?
Accepted Answer
More Answers (0)
Categories
Find more on Deployment, Integration, and Supported Hardware 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!