Designing bus signals with same names but different buses
이전 댓글 표시
Hello all,
I have a simulink block with two buses which have a signal with the same name.
AB_c.x1, HJ_k.x1.
I would like to make the signals x1 and x1 as an input to the block. Does anybody know how this can be done?
Thanks in advance.
Cheers, Rashmi
댓글 수: 3
Abhi Sundararaman
2017년 7월 28일
When you say you have a simulink block with two buses, do you mean you have two bus signals, from which you'd like to select the "x1" signals from each?
If so, you can do this by just using 2 "Bus selector" blocks, and selecting "x1" from each of the bus signals into the bus selector.
If the above does not reflect what you are trying to do, can you go into more detail on specifically where these bus signals are going, and which block you are inputting the two "x1" signals to?
Rashmi Bharadwaja
2017년 8월 3일
ES
2017년 8월 3일

You can directly connect the selected signal to a subsystem. It has no harm. See above, signal x is connected to 'a'.
If you definitely need the names to match (for naming convention reasons etc) you can rename the signal by putting a passive block (like gain block above) and change the name.
답변 (2개)
ES
2017년 8월 3일
1 개 추천
You should use bus selector to select the members you need and take it to subsystem with simple inports (non-bus).
ES
2017년 8월 3일
0 개 추천

You can directly connect the selected signal to a subsystem. It has no harm. See above, signal x is connected to 'a'.
If you definitely need the names to match (for naming convention reasons etc) you can rename the signal by putting a passive block (like gain block above) and change the name.
댓글 수: 1
Rashmi Bharadwaja
2017년 8월 3일
편집: Rashmi Bharadwaja
2017년 8월 3일
카테고리
도움말 센터 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
