Code Generation from Simulink and S-function creation for C-code validation
Mostrar comentarios más antiguos
Hi all, I have to generate C-Code of a Simulink/Stateflow block that is dynamic, meaning that its inputs and the generated outputs vary with time. Then I have to use this generated C-code in Simulink in order to validate it. Since the equivalent C-code Simulink block has to be dynamic, it should have the same inputs and outputs of the starting Simulink block. Someone could help me in performing this procedure?
Thanks in advance Stefano
3 comentarios
TAB
el 7 de Sept. de 2012
Since the equivalent C-code Simulink block has to be dynamic, it should have the same inputs and outputs of the starting Simulink block. --> Confusing.
What do you mean by dynamic input & output ?
Stefano Ramorini
el 7 de Sept. de 2012
Stefano Ramorini
el 7 de Sept. de 2012
Respuestas (1)
Kaustubha Govind
el 7 de Sept. de 2012
0 votos
You should simply need to create a subsystem from your block (even if it just the one block in the subsystem), right-click on the subsystem and Generate Code. Does this do what you need?
Categorías
Más información sobre Simulink Coder en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!