Is there support in Matlab 2012b and up for using Bus objects in a level-2 M S-function??

1 回表示 (過去 30 日間)
Erwin Torreao Dassen
Erwin Torreao Dassen 2013 年 10 月 23 日
回答済み: Zack Peters 2013 年 10 月 24 日
Is there support in Matlab 2012b and up for using Bus objects in a level-2 M S-function??
If not, any work-around possible to work with a "struct-like" data type in such an S-function?
Kind regards,
Erwin

回答 (1 件)

Zack Peters
Zack Peters 2013 年 10 月 24 日
Hi Erwin,
Currently, there is no way to pass bus objects with varying data types into a level-2 MATLAB S-Function. I would suggest either breaking up the bus object/structure with bus selector blocks and passing multiple inputs into the s-function or considering using a C S-function which can be much more versatile.
~Zack

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by