find Stateflow Test Points in Simulink model
조회 수: 2 (최근 30일)
이전 댓글 표시
I need to find all of the Stateflow Test Points in all charts of a SImulink model. In my experience, find_system can only be used to find Test Points in native Simulink, but not Stateflow. I am lost; please help.
댓글 수: 0
채택된 답변
Debarati Banerjee
2015년 7월 7일
편집: Debarati Banerjee
2015년 7월 7일
The following piece of code will list the names of all the states in a model ('model_name.slx') with 'Test Point' enabled.
rt = sfroot;
m = rt.find('-isa', 'Simulink.BlockDiagram','-and','Name', 'model_name');
allStates = m.find('-isa','Stateflow.State','TestPoint',1);
p=get(allStates,'Name')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Stateflow Programmatic Interface에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!