Disable Nagle's Algorithm for Simulink TCP Client blocks in slrealtime

1 次查看(过去 30 天)
For slrealtimeiplib, for realtime desktop application, is there a way to update the 'TCP Client' block to disable 'Nagle's Algorithm' ("EnableTransferDelay",false)?
This is possible via:
scopeInterface = tcpclient('XXX.XXX.XXX.XXX',YYYY, "EnableTransferDelay",false);
But does not seem to be an option for the slrealtime library blocks, and the code mentioned above ('tcpClient') does not seem to be code generatable for speed-goat systems.
When trying to use 'tcpclient', an error occurs 'The current BuildConfig has not been set'.

采纳的回答

Aravind
Aravind 2025-3-13
According to the documentation at https://www.mathworks.com/help/slrealtime/io_ref/tcpclient.html, there is no option to disable "Nagle’s Algorithm" for the "TCP Client" block in the Simulink Real-Time library in MATLAB R2024b.
However, I checked the MATLAB R2025a pre-release, and it appears that this feature is included in the "Advanced Parameters" section of the block parameters. Since it is available in the R2025a pre-release, it is likely to be present in the MATLAB R2025a stable release as well. For more details, you can refer to the pre-release documentation for the "TCP Client" block here: https://www.mathworks.com/help/releases/R2025a/slrealtime/io_ref/tcpclient.html.
You might consider upgrading to the MATLAB R2025a pre-release to access this feature.
Hope this helps.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Development Computer Setup 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by