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

조회 수: 4 (최근 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 CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by