Filter löschen
Filter löschen

How to create a Hyperlink to state in a stateflow???

1 Ansicht (letzte 30 Tage)
Aditya Kaki
Aditya Kaki am 26 Jul. 2018
Beantwortet: Arunkumar M am 13 Nov. 2018
I used open_system() command to open a stateflow in model. But, if I try to open a state in stateflow it doesnt work. It throws up an error that the link is missing in the model.

Antworten (1)

Arunkumar M
Arunkumar M am 13 Nov. 2018
By hyperlink you mean to highlight a particular element in your stateflow model.
if yes, then here is an example to highlight a state in stateflow:
open the model and then try following commands
root = sfroot;
model = root.find('-isa','Simulink.BlockDiagram');
chart = model.find('-isa','Stateflow.Chart');
state=chart.find('-isa','Stateflow.State','Name',<enter name of the state>);
state.highlight;

Kategorien

Mehr zu Complex Logic finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by