Callback function triggering to get streaming data from TCP/IP object in MATLAB GUI?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Development Computer Setup dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!