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

2 vues (au cours des 30 derniers jours)
The closest alternate will be Structure of structure using bus in Simulink.

Réponse acceptée

TAB
TAB le 6 Août 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.

Plus de réponses (1)

Muthukumar Ganesan
Muthukumar Ganesan le 20 Août 2022
Hi,
Please find one of the workaround here.
Thanks.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by