Compiling/inlining an M-file S-Function (which calls a MEX file)
이전 댓글 표시
Hello,
working with Real-Time Workshop (7.6.1) for the first time I am a bit unsure about the possibilities and whether I'm on the right track at all.
I wrote a relatively simple Level-2 MATLAB S-Function which converts its input to a string and utilizes Peter Rydesäter's TCP/UDP/IP toolbox to set up a UDP socket and send data. The TCP toolbox is made up by the source file, pnet.c, and the compiled pnet.mexw32, which I guess I call in my S-function.
The documentation regarding inlining S-functions contains a simple example for writing a TLC file, but as far as I understand that, it is merely replicating the output generation of the S-function in TLC code. Is that what TLC files do? Is there a chance to do the same for my task?
I'm still quite lost, so I'd appreciate any hints.
Thank you
Silvan
채택된 답변
추가 답변 (1개)
Silvan
2011년 11월 23일
0 개 추천
댓글 수: 1
Kaustubha Govind
2011년 11월 23일
Silvan: Even if you implement your S-function as a C-MEX S-function, I think you might still need to deal with the problem of calling MEX-functions underneath. MEX-functions need MATLAB-based libraries to execute and would never run in a standalone environment.
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!