Bus signals as Input to S-function
30 ビュー (過去 30 日間)
古いコメントを表示
Hello everyone,
I'm working on a code of a sfunction which has a Bus signal as input and another bus signal as output.
I found this tutorial on internet
which explains what I need to do by using the Simulink Sfunction builder utility.
In the third paragraph of the solution part, it has been explained how to set an input as Bus signal by selecting the Bus propriety in the drop-down list and by specifying the name of the Bus signal. This last one is a huge constraint for me, because it was supposed to have whatever bus signal as input to my sfunction.
How can I make my sfunction independent of the name of the Bus signal? How can I overcome this issue?
thanks for reading
0 件のコメント
採用された回答
Kaustubha Govind
2013 年 4 月 25 日
It's not the name of the signal that is required, but the name of the bus type. This is needed because S-functions only support nonvirtual bus signals (AFAIK), which must have a Simulink.Bus object associated with their type. The name of this bus object is what needs to be entered in the S-function Builder dialog. Please read this blog post for an S-function Builder example that uses bus objects.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Block Authoring Basics についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!