Enable function in TCP/IP communication

조회 수: 19 (최근 30일)
Muhammad M. Roomi
Muhammad M. Roomi 2019년 8월 30일
댓글: Diego Kuratli 2019년 9월 23일
Hi community,
Good day to you. This is my first time posting here and also my first time working on TCP/IP communication in Simulink. To understand better, I am using the examples 'TargetToTargetTCPServer' on my laptop and 'TargetToTargetTCPClient' on my desktop. I had modified the IP address of my workstations to the addresses in the examples. However, when I try to run the simulation, the output status of the 'TCP configure' block is always zero. I am not sure if this is the problem in establishing TCP/IP communication between the client and server.
I tried searching for a solution for the past 2 days but couldn't find any. It would be really great if someone can help me with the issue.

채택된 답변

Diego Kuratli
Diego Kuratli 2019년 9월 14일
The mentioned examples for Simulink Real-Time require two real-time target machines from Speedgoat. In other words, you cannot run those TCP/IP examples between your laptop and desktop PC. If you need TCP communication on Windows PC, you should look at the Instrument Control Toolbox.
  댓글 수: 2
Muhammad M. Roomi
Muhammad M. Roomi 2019년 9월 23일
Thank you for the clarification Mr Diego Kuratli. By any chance do you know of any demo that can help me with understanding and establishing the communication?
Diego Kuratli
Diego Kuratli 2019년 9월 23일
In the MATLAB Help you can find an example which shows how to send/receive data over UDP:

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Development Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by