Combine Simulink Signals with Different Data Types Without Using a Bus

43 ビュー (過去 30 日間)
Nikolaos Styliaras
Nikolaos Styliaras 2020 年 6 月 18 日
編集済み: Jonas 2020 年 6 月 18 日
Hi,
I would like to combine signals with different data types, namely double and int8, in something that can be passed through a single output.
MUX would be a solution if the signals had the same data type. I know it's possible by using a bus creator, I just wanted to check if there are other alternatives.

採用された回答

Jonas
Jonas 2020 年 6 月 18 日
編集済み: Jonas 2020 年 6 月 18 日
A Bus serves the purpose of being able to combine signals with different data types. If you do not like the visual way of using the Bus Creator block, you can use 'In Bus Element' and 'Out Bus element'. The advantage is that you can more easily combine signals from different places inside the same bus. Behind the scenes, these blocks are simply also creating a bus. It is like a struct in C-code.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by