Writing a TLC file
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a S-function that needs to be inlined, so I need to be able to write a tlc file. I already have a c file for this s-function and I was wondering if there was at least a semi-simple way to begin transfering this code to a tlc format. (At least I think that's what needs to happen). If not, where can I find a decent tutorial that can get me started on how to write tlc files because I know this is not going to be an easy process. Thanks!
댓글 수: 0
채택된 답변
Guy Rouleau
2012년 6월 15일
I would start with the documentation page "Inlining S-Functions with TLC":
Another approach, if you have the algorithm written in C, is to use the S-Function Builder block or the Legacy Code Tool to wrap your code with an S-Function. Those 2 features can generate a TLC file automatically to inline the s-function.
댓글 수: 2
TAB
2012년 6월 18일
"Legacy code tool" is the best option for integrating external code.
Below links could be useful for you
External Code Integration : http://www.mathworks.com/help/toolbox/rtw/ug/br52_85.html
Integrate External Code Using Legacy Code Tool : http://www.mathworks.com/help/toolbox/rtw/ug/bq4fyia.html#bq4f0vq
Integrating Existing C Functions into Simulink Models with the Legacy Code Tool : http://www.mathworks.com/help/toolbox/simulink/sfg/bq4g1es-1.html#bq4g1es-17
sai kamal sreeja veepuri
2018년 1월 12일
After generating the sfunction using legacy tool, when I was trying to build the model, it complains that it cannot find tlc file. How do I include tlc file?
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!