Enable function in TCP/IP communication
10 views (last 30 days)
Show older comments
Muhammad M. Roomi
on 30 Aug 2019
Commented: Diego Kuratli
on 23 Sep 2019
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.
0 Comments
Accepted Answer
Diego Kuratli
on 14 Sep 2019
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 Comments
Diego Kuratli
on 23 Sep 2019
In the MATLAB Help you can find an example which shows how to send/receive data over UDP:
More Answers (0)
See Also
Categories
Find more on Development Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!