How to Flush Input Buffer for dsp.UDPReceiver
3 views (last 30 days)
Show older comments
I am using dsp.UDPReceiver objects in my code. There are times when I put my code into an idle state. When I transition back to an active state I want to flush out all the stale data in the UDP buffer. I have tried the reset method for this object, but that doesn't seem to do it. Right now as a work-around, I simply call the receiver object until it returns an empty matrix to clear the buffer. This is a bit crude but works. Is there a 'cleaner' way to flush the input buffer for a dsp.UDPReceiver?
Whatever is implemented, I need it to be compatible with code generation.
Thanks.
0 Comments
Answers (0)
See Also
Categories
Find more on Spectral Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!