10-04-2022 06:15 AM
Hi,
I have made a GUI which receives the UDP (unicast) packet and displays on some indicators. The packet is being sent at 25 Hz from the transmitter and I want to receive it at 5 Hz. Now, I desire to discard the remaining 20 packets and display only 5 packets in one second. Whenever I read the data at 5 Hz, the packets get buffered and the data remains receiving even when i remove ethernet RJ45 from the transmitter. How can I avoid this buffering. Kindly assist...
Thanks !!
10-04-2022 06:27 AM - edited 10-04-2022 06:27 AM
Receive all the packets (read at 25Hz), but only keep/work with every 5th packet and discard the rest.
10-04-2022 07:17 AM
10-04-2022 08:35 AM
@nisarr wrote:
Hi AeroSoul, Thank you for your reply. I want to add here, the traffic that is being received at 25 Hz is not exactly at 25 Hz, it is varying between 20 Hz and 25 Hz. I want to flush the buffer to avoid buffering. How can I do that? Thanks
AeroSoul's suggestion is still valid. Read all of the data but only work with the ones that you want.