How to get the values of signals from a bus displayed in app designer?
8 ビュー (過去 30 日間)
古いコメントを表示
Hello all, I am trying to display the names and values of several signals from a bus (in simulink) in an application developed using MATALB app designer.
The signals in my model are connected to the 'Bus assignment block', and I am able to get the signal's names using "get_param('myModel/bus_assignment','InputSignals). I would like to know if there is a parameter in this block that can provide the values of such signals.
Thanks for the help.
0 件のコメント
回答 (1 件)
Aman Vyas
2020 年 7 月 7 日
Hi,
You can click on the bus assignment block and this opens a dialog box. You can choose the parameters signals in the bus and get the values of the bus through this dialog box. For more info refer to this.
getparam command can be used when you need to use any value of parameter from the block in the code because without this the value couldn’t be extracted out. For more info on getparam refer to this.
Hope this helps!
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!