Bus selector order changed by adding new signals in bus creator

조회 수: 3 (최근 30일)
Celso Acurcio
Celso Acurcio 2019년 7월 1일
댓글: Celso Acurcio 2019년 7월 1일
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
Celso Acurcio
Celso Acurcio 2019년 7월 1일
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 2019년 7월 1일
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?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by