Random delays in Stream Input block in Simulink Real-Time
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dennis Möllensiep
am 28 Jul. 2020
Beantwortet: Dennis Möllensiep
am 29 Jul. 2020
Hello all,
I'm using Simulink Real-Time in external mode on the development PC. When I receive data in my Stream Input blocks via UDP, I have random delays as it can be seen in the plot of the data ready output.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/337957/image.png)
The pc receives the data every 4 ms what can be confirmed by wireshark. A sample time of 0.5 ms should be sufficient. As the execution time is less than 0.2 ms there are also no missed ticks in the Stream Input blocks.
What could be the reason for these delays?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Diego Kuratli
am 28 Jul. 2020
What's the data size? and, is the data size constant?
Which MATLAB release are you using?
Ty to log the data ready output, to ensure this is not a visualization issue. Also, log the data and check if the data is corrupted.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Target Computer Setup finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!