Code Generation: Static local variables
Afficher commentaires plus anciens
I would like the "Block signals" and "Block states" in the generated c-code to be of the type "static".
Example:
static BlockIO_model B;
How do I get there? thx
Réponse acceptée
Plus de réponses (1)
Fan BU
le 26 Mai 2017
0 votes
Please try using the block delay, the delayed signal will be one from last cycle, this corresponds to static in C code, see the picture, the signal rpmDir in generated C code will be static.
Maybe custom storage class is better solution, I never used this.
Catégories
En savoir plus sur Signal Generation dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!