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(최근 30일)
Tarun Jhamnani
Tarun Jhamnani 2 Aug 2018
Answered: TAB 6 Aug 2018
The closest alternate will be Structure of structure using bus in Simulink.

  댓글 수: 0

로그인 to comment.

채택된 답변

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

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by