union structure in simulink

How can I simulate a union struct in simulink?
I need to simulate union structure in my project in simulink.
Can this be done with the c caller block or the s function builder block?
Is there any way to include the union structure in the simulink?

回答 (1 件)

Muthukumar Ganesan
Muthukumar Ganesan 2022 年 8 月 20 日

0 投票

Hi,
Please refer to this sample model.
Hope this helps. Thanks.

カテゴリ

ヘルプ センター および File ExchangeBlock and Blockset Authoring についてさらに検索

質問済み:

2022 年 8 月 4 日

回答済み:

2022 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by