MATLAB Answers

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

8 views (last 30 days)
Tarun Jhamnani
Tarun Jhamnani on 2 Aug 2018
Answered: TAB on 6 Aug 2018
The closest alternate will be Structure of structure using bus in Simulink.

  0 Comments

Sign in to comment.

Accepted Answer

TAB
TAB on 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 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.