How do I specify the struct type name that Simulink code generator creates for a workspace structure
Mostrar comentarios más antiguos
I have a Simulink model that references a workspace structure. I generate code for that model. The code generator creates data types (typedef struct) for the structure and then declares variables of those types. The variable names match the workspace variable names, but the struct type definitions have seemingly randomly generated names (struct_a34AMM302nakjd). Is there a way to designate the name of these struct type definitions?
1 comentario
Luis Ruiz
el 4 de Feb. de 2019
Is there any update on thsi sissue?
Respuestas (1)
Kaustubha Govind
el 7 de Mzo. de 2012
1 voto
I think you need to use non-virtual buses to have the generated code use the corresponding Simulink.Bus name as the name of the struct type.
Categorías
Más información sobre Simulink Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!