TCP/IP Client Send Block sent excess package

2 views (last 30 days)
Danny Gho
Danny Gho on 15 Feb 2022
Commented: Danny Gho on 15 Feb 2022
Hello Everyone, Good day.
I am running to SIMULINK block to communicate with external program using TCP. I noticed that my external program receive the wrong value, and I run Wireshark package capturer to check.
As shown in the Wireshark screencapture. Instead of a single package, it send four package (sometimes three, sometimes four). Because at the receiving end receives the data instaneously instead waiting for EOL. The SImulink send the wrong value. I have to note that the First Package contain the correct float value (I checked the Hex).
Does anyone have any idea why this happen? Thank you in advance for your attention.
  1 Comment
Danny Gho
Danny Gho on 15 Feb 2022
As further information, I use the TCP/IP Receive and TCP/IP Send Block (Instrument Control).

Sign in to comment.

Answers (0)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by