Code Generation from Simulink and S-function creation for C-code validation
이전 댓글 표시
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
TAB
2012년 9월 7일
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
2012년 9월 7일
Stefano Ramorini
2012년 9월 7일
답변 (1개)
Kaustubha Govind
2012년 9월 7일
0 개 추천
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?
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!