Disable Nagle's Algorithm for Simulink TCP Client blocks in slrealtime
2 views (last 30 days)
Show older comments
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'.
0 Comments
Accepted Answer
Aravind
on 13 Mar 2025
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 Comments
More Answers (0)
See Also
Categories
Find more on Development Computer Setup in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!