Simulink Desktop Real-Time TCP Communication without delay

3 views (last 30 days)
Hey,
I'm trying to set up a realtime TCP communication using Simulink Desktop Real-Time to control an instrument. The update rate should be around 1kHz. When using the Instrument Control Toolbox I can set the transmission to no delay, when using a Workspace communication object and it works fine. The drawback using the Instrument Control Toolbox blocks is, that I can not compile the model in external mode. (And I think the blocks are not executed inside the realtime kernel...)
For the stream output blocks from Simulink Desktop Realtime I can not choose to transmit without delay. So messages will first be buffered until transmitted (Nagles's algorithm) resulting in a very slow communication.
I would see two possible solutions:
  • Turning off the delay using the Simulink Desktop Real-Time stream block
  • Enabling code compilation in external mode for the Instrument Control Toolbox blocks
I would be thankfull for any suggestions!
  1 Comment
君明 张
君明 张 on 2 Aug 2022
Hey, do you solve it ? I have the same problem, if you solve it, can you share how to solve it , thank you very much!

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!