Automatic signal name propagation through buses not working as intended

Hi, I am trying to get signal rename operations to be propagated automatically through buses. However, it doesn't seem to be working as intended.
For example, I have a bus creator block taking two signals s1 and s2 as inputs, directly connected to a bus selector block having signals s1 and s2 as outputs. If I rename signal s1 to s1_1 manually, the signal name propagation works fine. However, if I rename signal s1 to s1_1 from an M script by setting the 'Name' property of the corresponding line handle, the new signal name does not get propagated, whereas I felt that it should. What is the best way to work around this? Is there a way to initiate the signal name propagation automatically from an M script?
I am using MATLAB R2010b SP1 running on Windows XP SP3 (32 bit).
Thanks.

回答 (1 件)

Jan Benek
Jan Benek 2018 年 4 月 11 日

0 投票

Hello,
I know it's a bit too late to answer this question, but recently I had same problem. The problem is that the name of the parameter you have to use isn't 'Name' but 'SignalNameFromLabel'. I use Matlab2015b. I don't know how this works for earlier versions.
Best Regards

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

質問済み:

sst
2012 年 2 月 23 日

回答済み:

2018 年 4 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by