While generating a code for my stateflow model, the variable names get changed. Why?
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Vamshi Krishna
 am 30 Jun. 2023
  
    
    
    
    
    Beantwortet: Abhishek
      
 am 30 Jun. 2023
            While I am generating the C code for my statflow model, the generated code has the variable names that are different from my output variables in stateflow. Suppose my output variable is BMS_Fault, the variable name that I see in the C code generated is BMS_Fault_f.
0 Kommentare
Akzeptierte Antwort
  Abhishek
      
 am 30 Jun. 2023
        Hi Vamshi, 
I completely understand that you are facing an issue with variable names in C code generated from your Stateflow model. 
The variable names in the generated C code may differ from the output variables in the stateflow due to the way the code generator works. The code generator creates unique names for variables to avoid naming conflicts and to ensure that the generated code is valid C code.
You can look to following link for your reference  :   
Thanks
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

