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

6 visualizaciones (últimos 30 días)
mgengineer
mgengineer el 1 de Ag. de 2017
Comentada: Péricles Serotini el 3 de Oct. de 2019
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.

Respuesta aceptada

mgengineer
mgengineer el 2 de Ag. de 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.

Más respuestas (2)

Nagaraju Akepogu
Nagaraju Akepogu el 16 de En. de 2019
check for any duplicate bus structure signal name

Sara Xie
Sara Xie el 2 de Ag. de 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 comentario
mgengineer
mgengineer el 2 de Ag. de 2017
Editada: mgengineer el 2 de Ag. de 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!

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by