How to get values of Scope and Port of "Data data" dialog box using API's?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Dark_Knight
il 30 Ago 2023
Commentato: Dark_Knight
il 6 Set 2023
The stateflow chart of "sldemo_autotrans" model,provides its output via port number 2 to Simulink.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1468151/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1468156/image.png)
Is there any provisions in MATLAB to get the values of Scope and Port (shown in the above figure) via API's?
0 Commenti
Risposta accettata
Fangjun Jiang
il 5 Set 2023
open_system('sldemo_autotrans');
sf=sfroot;
ch=sf.find('-isa','Stateflow.Chart');
d=Stateflow.Data(ch);
d.Scope='Output';
d.Port
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Functions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!