Problem regarding RTW code generation feature of simulink

hi I have compiled the C code for my simulink model(which just sends a constant value through tcpip send block) generated by RTW. Now to see that whether the compiled code is working I have made another model(which just have tcpip receive block and a display block). But the problem now I am facing is that the code compiles successfully, however no data is received by tcpip receive block. Please tell me what I am doing wrong or is this the limitation of RTW feature which is unable to generate code for tcpip send block. Waiting for your replies patiently SALMAN

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 3월 13일

0 개 추천

Do you mean the TCP/IP blocks from the Instrument Control Toolbox? I'm not even sure that those are supported for code-generation (they might be no-ops). Have you examined the generated code to see if the blocks are represented in the code? From, what I know, you can only use these Host communications blocks for generated code: http://www.mathworks.com/help/toolbox/rtw/ref/bqnb76d-1.html#bsz4qhq-1

댓글 수: 2

Well I have checked the generated code and did not find anything about TCP/IP block. So I realised that I have to write this code myself and was able to do so by using socket programming
Muhammad: Please accept the answer if it resolved your issue. Thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by