Effacer les filtres
Effacer les filtres

How to Check if a Subsytem is a stateflow or not

1 vue (au cours des 30 derniers jours)
Farook Sadarudeen
Farook Sadarudeen le 6 Juin 2018
How can I verify if a subsystem is a state-flow or not before continue with my action? With my current code it is finding all the state-flows inside the subsystem. I want to check just the top subsystem is a state-flow or not. Example: objType = get_param('MySybsystemName','Object'); % Get the object of may subsystem Stateflow_Charts = objType.find('-isa','Stateflow.Chart') % Find all the State-flows inside. I just want to cehck if 'MySybsystemName' is a state-flow or not
  2 commentaires
Varun Garg
Varun Garg le 6 Juin 2018
Modifié(e) : Varun Garg le 6 Juin 2018
See if the following threads help:
Farook Sadarudeen
Farook Sadarudeen le 6 Juin 2018
Below code helps: flgChart = strcmp(get_param(gcs,'SFBlockType'),'Chart');

Connectez-vous pour commenter.

Réponse acceptée

Farook Sadarudeen
Farook Sadarudeen le 6 Juin 2018
Below code helps: flgChart = strcmp(get_param(gcs,'SFBlockType'),'Chart');

Plus de réponses (0)

Catégories

En savoir plus sur Complex Logic dans Help Center et File Exchange

Produits


Version

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by