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!