필터 지우기
필터 지우기

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?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2023년 8월 6일
  댓글 수: 4
Malu
Malu 2023년 8월 7일
So is there any way to compare those blocks with different blocknames without using visdiff? I can now compare parameter differences between those blocks with same blocknames. but i am stuck with blocks that has different blocknames
Fangjun Jiang
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 CenterFile Exchange에서 Load Signal Data for Simulation에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by