Why wouldn't 'StrongDataTypingWithSimulink' for 'Stateflow.Chart' classes be recognized as a property?
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Engenuity
 el 26 de Jun. de 2024
  
    
    
    
    
    Comentada: Engenuity
 el 26 de Jun. de 2024
            I receive an error when I execute the following code:
load_system('sflib'); 
set_param('sflib','Lock','off');
rt = sfroot;
m = rt.find('-isa','Stateflow.Machine','Name','sflib'); 
chart = m.findDeep('Chart'); 
chart(1).StrongDataTypingWithSimulink = 1;
The error message is:
Unrecognized property 'StrongDataTypingWithSimulink' for class 'Stateflow.Chart'.
Why wouldn't this be recognized?
0 comentarios
Respuesta aceptada
  Lokesh
      
 el 26 de Jun. de 2024
        Hi Engenuity,
It is my understanding that you are facing an error while trying to access 'StrongDataTypingWithSimulink' for the class 'Stateflow.Chart'. The possible reason for this error is that 'StrongDataTypingWithSimulink' has been removed and cannot be accessed from MATLAB versions 2022a and higher. This is mentioned in the Stateflow 2022a release notes as: 
"In R2022a, the chart property Use strong data typing with Simulink I/O has been removed.  Data types of input signals to charts and state transition tables must now match the type of the corresponding Stateflow data object. Otherwise, a type mismatch error occurs."
Refer to the 'Functionality being removed or changed' section of R2022a in the following link for more information:
Hope this helps!
Más respuestas (0)
Ver también
Categorías
				Más información sobre Simulink Functions en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

