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

조회 수: 1 (최근 30일)
Aditya Kaki
Aditya Kaki 2018년 7월 26일
답변: Arunkumar M 2018년 11월 13일
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.

답변 (1개)

Arunkumar M
Arunkumar M 2018년 11월 13일
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;

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by