Why does my signal name have "Signal X" in it?

6 ビュー (過去 30 日間)
mgengineer
mgengineer 2017 年 8 月 1 日
コメント済み: Péricles Serotini 2019 年 10 月 3 日
When looking at my bus selector, I see (signal 1...8) after the signal names. I've never seen this before, but I've only recently started working with Matlab R2017a. Could someone explain why my signal names are set up like this in my bus?
Thanks in advance.

採用された回答

mgengineer
mgengineer 2017 年 8 月 2 日
Sorry for the silly question. Here is the answer if anyone has the same problem.
When I created a bus "downstream", I incorporated the same signal name from two different buses. These were essentially the same function for two different components, if that makes sense. Essentially, I grabbed signalName from componentA.signalName and also signalName from componentB.signalName. When I created a bus using these two different signals, but having the same signal name, Simulink added (signal 1) and (signal 2) as a suffix to the signal names to make them unique signal names.
After I changed the signal names before creating my new bus, Simulink removed (signal 1) and (signal 2) as suffixes because the names were now unique in the bus.
  1 件のコメント
Péricles Serotini
Péricles Serotini 2019 年 10 月 3 日
The same happened to me. Thanks for clarification.

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

その他の回答 (2 件)

Nagaraju Akepogu
Nagaraju Akepogu 2019 年 1 月 16 日
check for any duplicate bus structure signal name

Sara Xie
Sara Xie 2017 年 8 月 2 日
Check the documentation of Bus Selector. The output signals for 'Bus Selector' has default value of 'signal1' and 'signal2'.
To change the output signal, you can open the block parameters configuration dialogue by double click the 'Bus Selector' block and select signals from the bus list, for other options check Reorder or Remove Signals.
  • Note that If an output signal listed in the Selected signals list box is not an input to the Bus Selector block, the signal name starts with three question marks (???).
  1 件のコメント
mgengineer
mgengineer 2017 年 8 月 2 日
編集済み: mgengineer 2017 年 8 月 2 日
Sorry about the lack of clarity in my question. I had already added signals to the bus and I saw the signal names with (signal 1) after the signal name. Not signal1, signal2, by themselves in an empty bus. Thank you for spending your time to answer my question!

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

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by