Effacer les filtres
Effacer les filtres

How to find enumeration usage in simulink model

5 vues (au cours des 30 derniers jours)
Fabian
Fabian le 6 Fév 2023
Commenté : Fabian le 25 Avr 2023
Hi,
we have a large quantiy of enumerations like this:
classdef Connection < Simulink.IntEnumType
enumeration
Disconnected(0)
Connected(1)
end
methods (Static)
function retVal = getDefaultValue()
retVal = Connection.Disconnected;
end
function retVal = addClassNameToEnumNames()
retVal = true;
end
end
end
they are distributed in several *.m files. Quite a few of them are outdated and not in use anymore. Is there a simple way to figure out whether a enum is acutally in use by a simulink model? Obviously i could remove them from the search path one by one and wait for Simulink to complain about the missing enum, but this is kind of tedious.
I could not find the enums in the model explorer or model data editor.
Anyone got ideas?
Thanks

Réponse acceptée

Mark McBroom
Mark McBroom le 8 Fév 2023
I believe the dependency analysis feature of SImulink Projects will do this for you. You will first have to set up a Simulink Project. https://www.mathworks.com/help/simulink/ug/model-dependency-viewer.html
  1 commentaire
Fabian
Fabian le 25 Avr 2023
Thank you that was what i was looking for

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Create Large-Scale Model Components dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by