フィルターのクリア

Autocode - How to make outputs a structure

1 回表示 (過去 30 日間)
Michael
Michael 2014 年 1 月 21 日
回答済み: Kaustubha Govind 2014 年 3 月 27 日
Hi Guys,
I am trying to autocode a block that has 2 busses as an output. However, when I go to autocode the block, it does not keep the signals in a structure.
In other words.
Bus1 (has sig1, sig2 on it) Bus2 (has sig3, sig4 on it)
When I go to autocode, it just shows my block output as: Output_U.sig1 Output_U.sig2 Output_U.sig3 Output_U.sig4
When really I am looking for something like: Output_U.Bus1 Output_U.Bus2
Any Ideas??
Thanks

回答 (1 件)

Kaustubha Govind
Kaustubha Govind 2014 年 3 月 27 日
It looks like you want your output to be a nested bus? You may to define your define your output's Simulink.Bus object accordingly.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by