Preserve Variable Names when using Embedded Coder
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I am converting my Simulink Model to C code using Embedded Coder. Though, I am successfull in this process, I would like to know how do I preserve the variable names? The code generated has many random variables and when I try to map it with Simulink Model, it is too difficult to understand which variable belongs to what in the Simulink Model.
Looking forward to your response.
Thanks in advance!
0 Commenti
Risposte (1)
Omair
il 20 Ott 2023
Hello,
You can control that by customizing the naming of identifiers on the Code Generation -> Identifiers pane in the model configuration parameters. Please take a look at the following links:
Furthermore, you may use storage classes for controlling model data representation in the generated code. Take a look at the following link:
Moreover, if you are working with one of the latest Matlab Versions, the 'Embedded Coder App' in Simulink offers a 'in-model code panel', where you can take a look at the generated code alongside your model. The code panel offers traceability between model and code, and vice versa.
Hope this helps!
Best,
Omair.
0 Commenti
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!