Designing bus signals with same names but different buses

4 次查看(过去 30 天)
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 个评论
Rashmi Bharadwaja
I used the Bus selector blocks like you suggested, but the name of the signal varies inside the subsystem. Could you tell me how to map this signal to its respective bus at the output?
ES
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
ES 2017-8-3
You should use bus selector to select the members you need and take it to subsystem with simple inports (non-bus).

ES
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.
  1 个评论
Rashmi Bharadwaja
编辑:Rashmi Bharadwaja 2017-8-3
Could you tell me how I can map the signals at the output of the subsystems to the respective buses? Because the signal names seem to change at the input of the subsystem.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by