How can I receive data via TCP/IP in GUI interface?

21 views (last 30 days)
Hi, I'm working with MATLAB to communicate with other PC which also using MATLAB.
TCP/IP communication is successful. GUI Creation and All the callback function is going well.
But I have a problem.
The GUI is 'event' oriented but the data is continuously sent.
If I don't use GUI, It is ok because I can use while loop.
But, I cannot handle the TCP/IP with GUI callback function.
How can I do both(using GUI and receiving data via TCP/IP) at the same time?

Answers (1)

Walter Roberson
Walter Roberson on 2 Oct 2015
Set a BytesAvailableFcn callback.
Harsh Sonani
Harsh Sonani on 1 Jun 2021
why we use handles.tcpi?
direct we can't use tcpi only?

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!