Simulink Coder eliminates unused function calls/variables in the generated code from StateFlow
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello everyone, I am trying to generate code from a simple StatFlow chart. In my states I make calls to some Matlab Functions defined inside the StatFlow using Matlab Function boxes. The problem is that coder removes function calls whose outputs are not used in transitions. I have to make dummy variables as function returns, and (fake) use them as transition conditions so that the function call is not eliminated in the generated code. Is there any solution or setting that stops the coder from doing this or maybe as it might believe "Optimizing the code"?
Thanks Ramtin
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Simulink Coder 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!