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)
Ältere Kommentare anzeigen
Tarun Jhamnani
am 2 Aug. 2018
Beantwortet: Muthukumar Ganesan
am 20 Aug. 2022
The closest alternate will be Structure of structure using bus in Simulink.
0 Kommentare
Akzeptierte Antwort
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.
0 Kommentare
Weitere Antworten (1)
Siehe auch
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!