Create a null bus from a bus definition

11 ビュー (過去 30 日間)
Moritz Ulmer
Moritz Ulmer 2015 年 2 月 10 日
回答済み: Sebastian Castro 2015 年 2 月 10 日
Hi,
A project i'm working on has an extensively defined bus hierarchy. This is required due to model references and variants being used.
The question is, is there a way, block or s-function, in which a null top-level bus signal can be created. The current method is to rebuild the entire bus hierarchy with bus creator blocks. This is cumbersome to build and difficult to change.
Kind Regards, Moritz

採用された回答

Sebastian Castro
Sebastian Castro 2015 年 2 月 10 日
Hi Moritz,
If you're using a nonvirtual bus (i.e. one whose data type is a Simulink.Bus object), you can use a Constant block with value 0 and set its output data type to the bus object being used.
This is discussed in this documentation page.
- Sebastian

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeComponent-Based Modeling についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by