Designing bus signals with same names but different buses
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
ES
am 3 Aug. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/186012/image.png)
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.
Antworten (2)
ES
am 3 Aug. 2017
You should use bus selector to select the members you need and take it to subsystem with simple inports (non-bus).
0 Kommentare
ES
am 3 Aug. 2017
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/177665/image.png)
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 Kommentar
Siehe auch
Kategorien
Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!