Callback function triggering to get streaming data from TCP/IP object in MATLAB GUI?

2 ビュー (過去 30 日間)
RZM
RZM 2018 年 4 月 5 日
回答済み: Walter Roberson 2018 年 4 月 29 日
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?
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 :)

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 4 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by