How to remove the obvious latency in simulink desktop real-time target when using "Stream input" block for UDP network communication
3 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159119/image.jpeg)
this is the screen capture of my simulink file. When I run this system in real-time mode, I find that there is obvious latency in the system response which can be clearly seen from the scope. That is, when I made a change in my sensor, this change can be saw in the scope after about 1 second. 1 sec latency is very large for my system that is unacceptable.
Moreover, I make a program using Visual Studio for doing the same works as what are shown in the above figure. Everything is well. No latency at all.
After testing, I am sure that it is the "stream input" block that causes the latency.
How to remove the latency in the "Stream input" block? Thank you.
The configuration of the "stream input" is shown below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/159121/image.jpeg)
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!