フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can a SimEvents Entity be passed into and out of a Referenced Model?

2 ビュー (過去 30 日間)
Elliott Rachlin
Elliott Rachlin 2017 年 8 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Can a SimEvents Entity be passed into and out of a Referenced Model?
  3 件のコメント
Elliott Rachlin
Elliott Rachlin 2017 年 9 月 8 日
Not sure what componentization means, but definitely not for acceleration purposes. What I need to do is define a (referenced) model that I can then instantiate many times in my top-level model. If I find an error in my referenced model, I only have to fix it in one place rather than in all the places I instantiated it. In other words, use the referenced model like a subroutine.
Brian Neiswander
Brian Neiswander 2017 年 11 月 8 日
A good approach for this workflow is to use a custom library instead of model referencing. A custom library allows you to reuse components while maintaining all instances from one location. Also, this approach is compatible with SimEvents.
You can use a subsystem to encapsulate the reusable portion of your model and then move this subsystem into a custom library. You can create instances of this component by dragging the subsystem from your library to a model.
If you need to make changes, you can simply make your modifications in the library; all instances will be automatically updated. See the link below for more details.

回答 (0 件)

製品

Community Treasure Hunt

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

Start Hunting!

Translated by