Can I Define Bus Objects in Model Workspaces?

조회 수: 11 (최근 30일)
Greg
Greg 2013년 4월 29일
답변: Moh Ebah 2021년 9월 24일
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.
  댓글 수: 3
Greg
Greg 2013년 5월 7일
Well, when I try, Simulink returns an error like "The symbol 'BUSNAME' resolved to a bus object in the model workspace; Bus objects should only be created in the base workspace."
Kaustubha Govind
Kaustubha Govind 2013년 5월 7일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Moh Ebah
Moh Ebah 2021년 9월 24일
Hi
you need to use data dictionary!

카테고리

Help CenterFile Exchange에서 Composite Interfaces에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by