MATLAB Answers

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

조회 수: 7(최근 30일)
Tarun Jhamnani
Tarun Jhamnani 2 Aug 2018
답변: TAB 6 Aug 2018
The closest alternate will be Structure of structure using bus in Simulink.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변(0개)


Translated by