Data Types of Signals in a Bus Selector
5 ビュー (過去 30 日間)
古いコメントを表示
Hi, Is it possible to get the data-type of the signals in a bus-selector programmatically. any help will be appreciated. Thanks
0 件のコメント
回答 (1 件)
Ismael Alcalá
2012 年 11 月 28 日
編集済み: Ismael Alcalá
2012 年 11 月 28 日
Hi Deepak, you can select the bus-selector block in simulink and execute in matlab:
portHandles = get(gcbh,'PortHandles')
mStruct = Simulink.Bus.createMATLABStruct(portHandles.Outport)
Then you can find all signal types in the bus selector using class for each signal
class(mStruct.Message1.signal)
ans =
int16
I hope this can help you,
I. Alcalá
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!