How to hide 'PortProperties' and child elements when using compare tool in Simulink R2024b?

조회 수: 1 (최근 30일)
I am trying to use the 'compare' tool in Simulink. When I compare two versions of a model, the 'PortProperties' and child items are shown for one of the Simulink models but not for the other one, as shown below:
I would like to hide 'PortProperties' and child elements. I am able to hide the 'Type', 'PropagatedSignals' and 'Index' items by creating filters, but not the 'Port' and 'PortProperties'. How do I create a filer for hiding these properties?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 8월 22일
Filters for 'Port' and 'PortProperties' nodes can be created by doing the following:
  • Create a new filter via the 'New Filter' button in the toolstrip.
  • For the first rule, change the text in the first column to 'PortProperties' and delete the Parameter condition by clicking in the Parameter Name section and clicking the minus button. Since 'PortProperties' is currently not included in the drop-down list, you will need to manually type 'PortProperties' and then remove the parameter conditions. 
  • Click 'Add Rule' and repeat the same steps but adding 'Port' to the second rule's first column instead of 'PortProperties'.
Alternatively, an XML file, similar to 'portFilter.xml' (attached), can be created and imported to implement these rules. 
Starting with R2025a, filtering has been completely redesigned and now works very differently. Therefore, we encourage upgrading to R2025a.

추가 답변 (0개)

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by