find Stateflow Test Points in Simulink model
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Andy
      
 el 26 de Jun. de 2015
  
    
    
    
    
    Comentada: Andy
      
 el 15 de Jul. de 2015
            I need to find all of the Stateflow Test Points in all charts of a SImulink model. In my experience, find_system can only be used to find Test Points in native Simulink, but not Stateflow. I am lost; please help.
0 comentarios
Respuesta aceptada
  Debarati Banerjee
    
 el 7 de Jul. de 2015
        
      Editada: Debarati Banerjee
    
 el 7 de Jul. de 2015
  
      The following piece of code will list the names of all the states in a model ('model_name.slx') with 'Test Point' enabled.
rt = sfroot;                                                          
m = rt.find('-isa', 'Simulink.BlockDiagram','-and','Name', 'model_name'); 
allStates = m.find('-isa','Stateflow.State','TestPoint',1);
p=get(allStates,'Name')
Más respuestas (0)
Ver también
Categorías
				Más información sobre Stateflow Programmatic Interface en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

