How to get values of Scope and Port of "Data data" dialog box using API's?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Dark_Knight
am 30 Aug. 2023
Kommentiert: Dark_Knight
am 6 Sep. 2023
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?
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 5 Sep. 2023
open_system('sldemo_autotrans');
sf=sfroot;
ch=sf.find('-isa','Stateflow.Chart');
d=Stateflow.Data(ch);
d.Scope='Output';
d.Port
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!