Getting the signal names from a bus.

How can we get the names of the signals connected to bus selector or Creator such that if the input to the one of the port is a bus signal i need the name of only signals in that bus not the name of the bus.
I have tried using get_param(gcb,'Inputsignalnames'); but i get the name of the bus signal and not the signals in the bus.
can any one give a function which can do that.?
Any help much appreciated. Thank you Sincerely, Rajan.

回答 (2 件)

Kaustubha Govind
Kaustubha Govind 2011 年 10 月 18 日

0 投票

If you are using R2010b or a newer release, see Guy's answer here: http://www.mathworks.com/matlabcentral/answers/15425-bus-signal-names

1 件のコメント

Rajan
Rajan 2011 年 10 月 18 日
Thank you for the answer.
cant we do it in R2009b?

サインインしてコメントする。

Nirmal Gunaseelan
Nirmal Gunaseelan 2011 年 10 月 19 日

0 投票

How about the output signal names? I think the selector block gets the information even during edit time - you might need to compile if you are using a bus object from the workspace. Give it a try.
get_param(gcb,'OutputSignalNames')

カテゴリ

質問済み:

2011 年 10 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by