how to get respective blockpaths in 2 versions of a complex simulink model programmatically
2 ビュー (過去 30 日間)
古いコメントを表示
i am trying to identify the blockpaths n model 2 which is respective /corresponding to the blockpaths in model 1 so that i can compare its block parameter values. But i am not getting the respective blockpaths. Any idea on this?
0 件のコメント
採用された回答
Fangjun Jiang
2023 年 8 月 6 日
4 件のコメント
Fangjun Jiang
2023 年 8 月 7 日
If you know the exact block names (although they are different in two versions of the same model), then you can get_param() directly and compare them. I guess your cituation is this. You know your target block, their names are different in two versions of a model but you don't know the "exact" block name. You want to get their block path or block handle to compare parameter differences. In that case, you have to use find_system() to find the block first. Hopefuly, you can use some common properties (like BlockType, Parent or some unique tags) to find each block "uniquely" in each version of the model and then compare them.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Load Signal Data for Simulation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!