Influence When Simulink Executes Custom C-Code
이전 댓글 표시
Hello,
I'm currently writing a hardware driver in C to integrate into a Simulink model. The model will then be compiled and built into a single executable using the Embedded Coder. I'm trying to figure out if there is way to influence at what time during each execution step Simulink will call one of the functions that I write, e.g. at the start or at the end of a time step.
Any help would be greatly appreciated!
Thanks!
댓글 수: 2
Kaustubha Govind
2013년 7월 26일
Do you plan to write an S-function to call into your C code? If so, are you going to hand-write it, or use the Legacy Code Tool to auto-generate it?
Alexander
2013년 7월 26일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!