Execute UDP read faster

3 次查看(过去 30 天)
Rakesh
Rakesh 2023-3-16
Hi all,
I have developed app using MATLAB 2022b version to capture the data using UDPprotocol and updating the fields accordingly.
I am communicating about 1184 bytes at a rate of 50Hz between two machines (the other configured as UDP sender only using MATLAB script ).
I am using the below command to read in my application code
data_received = read(udpportobj,296,"uint32");
The above command itself is taking around 35msec to 45 msec even though disabling the GUI updation.
Can someone please help me how to speed up the UDP read execution.
Regards,
Rakesh.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by