フィルターのクリア

How to get values of Scope and Port of "Data data" dialog box using API's?

2 ビュー (過去 30 日間)
Dark_Knight
Dark_Knight 2023 年 8 月 30 日
コメント済み: Dark_Knight 2023 年 9 月 6 日
The stateflow chart of "sldemo_autotrans" model,provides its output via port number 2 to Simulink.
Is there any provisions in MATLAB to get the values of Scope and Port (shown in the above figure) via API's?

採用された回答

Fangjun Jiang
Fangjun Jiang 2023 年 9 月 5 日
open_system('sldemo_autotrans');
sf=sfroot;
ch=sf.find('-isa','Stateflow.Chart');
d=Stateflow.Data(ch);
d.Scope='Output';
d.Port

その他の回答 (0 件)

カテゴリ

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