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

4 visualizzazioni (ultimi 30 giorni)
The closest alternate will be Structure of structure using bus in Simulink.

Risposta accettata

TAB
TAB il 6 Ago 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.

Più risposte (1)

Muthukumar Ganesan
Muthukumar Ganesan il 20 Ago 2022
Hi,
Please find one of the workaround here.
Thanks.

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by