How do I specify the struct type name that Simulink code generator creates for a workspace structure
이전 댓글 표시
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
Luis Ruiz
2019년 2월 4일
Is there any update on thsi sissue?
답변 (1개)
Kaustubha Govind
2012년 3월 7일
1 개 추천
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.
댓글 수: 2
Mark
2012년 3월 7일
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!