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

2 Ansichten (letzte 30 Tage)
The closest alternate will be Structure of structure using bus in Simulink.

Akzeptierte Antwort

TAB
TAB am 6 Aug. 2018
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.

Weitere Antworten (1)

Muthukumar Ganesan
Muthukumar Ganesan am 20 Aug. 2022
Hi,
Please find one of the workaround here.
Thanks.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by