- Yes, you can customize the source/header file templates to do this.
- I know that the Simulink Verification and Validation toolbox is able to generate test-cases for simulation - I'm guessing you should be able to re-use the same test-cases on the generated code (although I haven't personally tried this).
- I think that Custom Storage Classes allow you to do things like specify memory sections where parameters/signals should be allocated, but it may not offer as much customization as you appear to need.
Code Generation Questions for Simulink
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello all, I had a few questions about generating code from simulink models.
1. Is there a way to annotate the file comment header?
2. Does the coder have any facility for emitting unit tests? I'd like to be able to run the code through unit tests on the target platform.
3. Is there a way to specify a memory allocator other than using a static structure?
I'll probably have more questions later, thanks in advance!
댓글 수: 0
답변 (1개)
Kaustubha Govind
2013년 5월 7일
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Test Model Components에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!