How can I receive data via TCP/IP in GUI interface?
5 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Walter Roberson
2015-10-2
5 个评论
Walter Roberson
2017-3-16
Yes, you can fwrite() or fprintf() to a tcp connection.
Note: there is also the OutputEmptyFcn callback, to allow you determine when to send to the other side without risking overflowing buffers.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!