How can I implement a custom datatype in Simulink model So, that the generated code is same as Union datatype in C.

조회 수: 4 (최근 30일)
The closest alternate will be Structure of structure using bus in Simulink.

채택된 답변

TAB
TAB 2018년 8월 6일
As far as I know, Simulink never generates Union for any built-in data class.
For your requirement, you need to create your own data class and custom staorage class.
Check cscdesigner in your matlab help.

추가 답변 (1개)

Muthukumar Ganesan
Muthukumar Ganesan 2022년 8월 20일
Hi,
Please find one of the workaround here.
Thanks.

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by