Dear Techies, I am using stateflow model and Simulink coder for code generation. I have configured few variables as local in stateflow. On code generation some variables are generated as structure variables. Some as local variables. How to control the code genetation to get all the stateflow local variables as structure variables.