Prevent code generation for including observable states in main.c

1 vue (au cours des 30 derniers jours)
MrPowerElectronics
MrPowerElectronics le 24 Sep 2020
When using Simulink code generation to generate a reusable function for an embedded target, code generation always adds the following line in the ert_main.c:
static DW_$MODELNAME$ $MODELNAME$_DW; /* Observable states */
which later on in main() is used once:
/* Pack model data into RTM */
$MODELNAME$_M->dwork = &$MODELNAME$_DW;
I would very much prefer if this symbol would not exist in the ert_main so I would like to ask where it comes from and how to perhaps control its placement?

Réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by