Callback function triggering to get streaming data from TCP/IP object in MATLAB GUI?
1 view (last 30 days)
Show older comments
Let say we have a host and a remote computer where the remote computer is streaming data in real-time via TCP/IP to the host computer which has MATLAB running to receive the data. In MATLAB GUI how should I define a callback function to be able to be triggered while a new packet of data is received in the TCP/IP object?
I do not want to use timer function because it is not reliable to receive all the data.
Do you have any suggestion?
I also have found this: https://se.mathworks.com/help/matlab/matlab_oop/events-and-listeners-syntax-and-techniques.html#brqorok
Maybe I could use listeners for this but I don't know how to implement it for this aim.
Also maybe simulink is another option helping me to do this but I don't know if it can be executed while MATLAB GUI is also running. https://se.mathworks.com/help/instrument/building-simulink-models-to-send-and-receive-data.html
Any help is greatly appreciated :)
0 Comments
Answers (1)
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!