Filter löschen
Filter löschen

referenced subsystem signal handling

3 Ansichten (letzte 30 Tage)
Lukas
Lukas am 13 Jun. 2023
Beantwortet: Vidip Jain am 5 Sep. 2023
I would like to use a referenced subsystem.
In the project i work with a lot of busses, so in the referenced subsystem, these busses would be needed as well.
In my case a have 3 busses, containing each 10 subbusses with each arround 10 signals.
If i use the option "In-" and "Out Bus Element" to pass the information into the referenced subsystem and out again, i would have to deconstruct the whole bus and reconstruct it again in the referenced subsystem.
Is there a different option than the Bus Element to pass structured information to a referenced subsystem?

Antworten (1)

Vidip Jain
Vidip Jain am 5 Sep. 2023
I understand that you have to deconstruct the whole bus and reconstruct it again whenever information is passed into the referenced subsystem.
When working with referenced subsystems in Simulink and needing to pass structured information like buses, you have several options to consider beyond using the "In Bus Element" and "Out Bus Element" blocks. Here are a few alternative approaches:
  1. Using Virtual Buses: Virtual buses allow you to create a virtual representation of the bus within the referenced subsystem without explicitly deconstructing and reconstructing the bus. You can connect the virtual bus directly to the ports of the referenced subsystem. This will allow you to pass the entire bus through the subsystem without having to deconstruct it.
  2. Using Bus Creator and Bus Selector Blocks: Instead of using the "In Bus Element" and "Out Bus Element" blocks, you can use the Bus Creator and Bus Selector blocks. These blocks allow you to select specific signals from the bus to pass into and out of the referenced subsystem. While this may involve specifying individual signals, it can provide more flexibility than using the "Bus Element" blocks.
Refer to this documentation for more information:

Kategorien

Mehr zu Subsystems finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by