Bus selector order changed by adding new signals in bus creator

3 visualizaciones (últimos 30 días)
Celso Acurcio
Celso Acurcio el 1 de Jul. de 2019
Comentada: Celso Acurcio el 1 de Jul. de 2019
Hi,
Is there a way to make a bus selector fix the signal selection made?
My current issue is that if I add a new signal in the bus creator half way the list, the signal in my bus selector will not move. This means that for instance if I select the signal which was in position 12 and I add a signal in position 1, all my bus selectors will be shifted as I don't want position 12 anymore, I want position 13.
Is there a work around to make the bus look at the signal name rather than the position?
Thanks
  3 comentarios
Celso Acurcio
Celso Acurcio el 1 de Jul. de 2019
Indeed, my bad, it's ok with signals, it seems to be due to being a bus with function calls directly from the output of the state flow block. I guess this would be fixed if I just put a convert block before the bus and create a signal name but I'd prefer it to be clever enough to identify the name of the function call.
Celso Acurcio
Celso Acurcio el 1 de Jul. de 2019
I have realised something which I can't explain but hopefully someone already went through the same issue.
In my chart settings, in model explorer, when I move the existing function calls around, there's no problem. If I add a new one, and then choose the port number to be somewhere where the existing function calls need to shift down, then everything gets shuffled around.
I have 46 function calls at the moment so it's not really doable to shift every port by one before adding a new function call on port 15 for instance. Am I doing anything wrong? Is there a better way to add new function call events on my chart without causing this issue?

Iniciar sesión para comentar.

Respuestas (0)

Productos


Versión

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by