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

2 views (last 30 days)
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.

Accepted Answer

mgengineer
mgengineer on 2 Aug 2017
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.

More Answers (2)

Nagaraju Akepogu
Nagaraju Akepogu on 16 Jan 2019
check for any duplicate bus structure signal name

Sara Xie
Sara Xie on 2 Aug 2017
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 Comment
mgengineer
mgengineer on 2 Aug 2017
Edited: mgengineer on 2 Aug 2017
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!

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!