Why do I receive 'undeclared identifier' error when running my model using a variable step solver in Simulink Accelerator 6.0.1 (R14SP1)?

I am using a variable step solver, say ode15s, to simulate my model in Accelerator mode. I receive the following compile-time errors:
<SNIP>
mymodel.c
mymodel.c(142) : error C2065: 'localXdis' : undeclared identifier
mymodel.c(142) : error C2223: left of '->Integrator_CSTATE' must point to struct/union
mymodel.c(145) : warning C4020: 'case_ex_c0' : too many actual parameters
mymodel.c(150) : error C2223: left of '->Integrator_CSTATE' must point to struct/union
mymodel.c(153) : warning C4020: 'case_ex_c0' : too many actual parameters
mymodel.c(165) : error C2223: left of '->Integrator_CSTATE' must point to struct/union
mymodel.c(171) : error C2223: left of '->Integrator_CSTATE' must point to struct/union
<SNIP>

 Accepted Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
This bug has been fixed in the Simulink Accelerator 6.0.2 (R14SP2). For previous versions, please read the following:
We have verified that there is a bug in the Simulink Accelerator in the way it simulates a model using a variable step solver. There are no known work arounds.

More Answers (0)

Categories

Community Treasure Hunt

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

Start Hunting!