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

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?

 Risposta accettata

open_system('sldemo_autotrans');
sf=sfroot;
ch=sf.find('-isa','Stateflow.Chart');
d=Stateflow.Data(ch);
d.Scope='Output';
d.Port

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by