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

조회 수: 1 (최근 30일)
Dean D.
Dean D. 2025년 2월 19일
답변: Aravind 2025년 3월 13일
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