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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 22 Ago 2025
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.

Più risposte (0)

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by