필터 지우기
필터 지우기

Simulink File Comparison Custom Filters

조회 수: 12 (최근 30일)
Riccardo Spica
Riccardo Spica 2022년 4월 11일
댓글: Riccardo Spica 2022년 4월 20일
Hello,
I am trying to set up a custom comparison filter in order to ignore any changes to blocks of type 'simulink/Model-Wide Utilities/Model info'.
I have managed to do so by filtering out any block with "Name" equal to "Movel Info" but this is obviously not ideal.
I have tryed to filter based on "MaskType" being equal to "CMBlock" but id does not work and I haven't found any way to debug these filters.
Any suggestion would be appreciated.
Thanks.
Riccardo

답변 (1개)

stozaki
stozaki 2022년 4월 15일
You can get the diff of the model by using the visdiff function.
At that time, you can exclude Model Info from the difference result by filtering the block name of the Model Info block.
I created a filter setting called eliminate_modelinfo.xml and was able to exclude the Model Info block in the comparison between aaa.slx and bbb.slx.
  댓글 수: 1
Riccardo Spica
Riccardo Spica 2022년 4월 20일
Hi Stozaki,
thanks for your reply, but your proposed solution is actually what I meant by "filtering out any block with "Name" equal to "Model Info" ".
I had already come up with that workaround solution but it only works if the block is named exactly "Model Info". I would rather check the block type than the block name.
Plus, mine was also a more general question about debugging these filters.
Thanks and cheers
Riccardo

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by