help, with code generation for TI C2000
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Carlos Noriega
el 11 de Jul. de 2020
Comentada: Jonas
el 4 de Ag. de 2020
Hi Please,when i generate to code to TI C2000, What type of configuration does simulink need for the generate algorithm code, with all chart conditions?
I'am using Chart for control algorithm, and I need send the code generation for TI C2000, through code generatios of simulink window.
I can a generate code, but I look that generated code is missing several conditions and operations.
Respuesta aceptada
Jonas
el 13 de Jul. de 2020
Hi Carlos
If the issue is just that some states and/or transitions you have programmed in Stateflow do not appear in the generated code, then I just think the Embedded Code generator optimized those states out of the code since they are never reached or used. This aspect of the code generator is called 'block reduction'.
If you have a transition with the condition [false] for example, the transition is never made and the code generator may chose to not generated code of it.
Some background info:
- https://nl.mathworks.com/help/rtw/ug/eliminate-dead-code-paths-in-generated-code.html
- https://nl.mathworks.com/help/simulink/gui/block-reduction.html
With kind regards,
Jonas
4 comentarios
Jonas
el 4 de Ag. de 2020
Explicitly set the data type of the variables of your stateflow chart using the Model Explorer.
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!