LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid UDP Packet buffering in Labview

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 !!

0 Kudos
Message 1 of 4
(1,281 Views)

Receive all the packets (read at 25Hz), but only keep/work with every 5th packet and discard the rest.

0 Kudos
Message 2 of 4
(1,272 Views)
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
0 Kudos
Message 3 of 4
(1,243 Views)

@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.

0 Kudos
Message 4 of 4
(1,229 Views)