- Open the Simulink Model Configuration Parameters dialog by going to the Simulink menu and selecting "Model Configuration Parameters".
- In the dialog, go to the "Model Referencing" tab.
- Under the "Signal and bus object interfaces" section, you will see a setting called "Create bus objects for root-level inports and outports". By default, it is set to "In/Out Bus Element ports", which is causing the behaviour you described.
- To change it back to the previous behaviour, select "Bus objects" from the dropdown menu.
- Click on "OK" to apply the changes.
Model Reference with bus object
9 views (last 30 days)
Show older comments
Hi,
So I used to work in Simulink R18a, and when you created a Model Reference from a subsystem that had buses as inputs or outputs, it would create its bus objects automatically. Now I'm working with R20a, and when I do that, instead it creates In/Out Bus Element ports and creates the whole bus structure, which in my opinion makes the model less clear and more complicated to modify if I have to add/remove a signal in a bus.
Is there any way of changing to how it used to work?
0 Comments
Answers (1)
Rijuta
on 19 Apr 2023
Hi Mikel,
I understand that you are trying to use the Model Reference Blocks in R20a in a similar way to R18a, where buses were automatically created.
In Simulink R20a, the behaviour of Model Reference blocks when generating bus objects from subsystems has changed. If you prefer the previous behaviour where bus objects were automatically created, you can adjust the settings in Simulink to match that behaviour. Please follow the steps below to achieve this.
Note that this change will apply to all Model Reference blocks in your model, so make sure to consider the impact on other parts of your model before making this change.
0 Comments
See Also
Categories
Find more on Composite Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!