Can I Define Bus Objects in Model Workspaces?

7 views (last 30 days)
Greg on 29 Apr 2013
Answered: Moh Ebah on 24 Sep 2021
Is it completely impossible to define Simulink.Bus objects in any workspace other than the base Matlab workspace? I'm working on a large-scale simulation with 30+ reference models, each of which really want to have their own Bus object with several nested sub-buses each. Defining all, say, 120 of those Bus objects in the base workspace is going to get extremely cluttered. (And it might even get difficult to name all the buses uniquely, given that many of these reference models are automatically generated).
Defining buses in model workspaces would be extremely beneficial in terms of protecting reference models from a different model altering their internal bus definitions. Not only could this screw up the operation of the reference model, but it forces the reference model to be re-compiled any time it's bus definitions are altered.
Kaustubha Govind
Kaustubha Govind on 7 May 2013
Ah sorry, then this might indeed be a limitation. Please consider submitting an enhancement request via MathWorks Tech Support, and confirm the limitation with them.

Sign in to comment.

Answers (1)

Moh Ebah
Moh Ebah on 24 Sep 2021
you need to use data dictionary!


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!