Multiple function generated by one TLC file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
Is there a way to generate more than one function using a single TLC file?
What I'm trying to achieve is have my standard step function but also generate a further functions that get called from my step function.
The C code in the end would look something like:
void MyMain_step(void) {
//Some code
MyFct1(param1, parame2);
//Some code
MyFct2(param3);
//Some code
}
void MyFct1(uint8 p1, uint8 p2) {
//Do some magic with the parameters
}
void MyFct2(uint8 p3) {
//Do some magic with the parameter
}
Many thanks in advance!
댓글 수: 0
답변 (1개)
Titus Edelhofer
2011년 7월 20일
Hi,
it might be that LibAddSourceFileCustomSection is what you are looking for (if you want to generate MyFctX). If it is not to be generated but included, you could use LibAddToCommonIncludes/LibAddToModelSources ...
Titus
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Target Language Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!