Last in First out UDP structure in MatLab.
Posted
by D Zondervan
on Stack Overflow
See other posts from Stack Overflow
or by D Zondervan
Published on 2010-06-06T00:09:18Z
Indexed on
2010/06/06
0:12 UTC
Read the original article
Hit count: 310
I am using MatLabs UDP function in their instrument control toolbox to send data packets from one computer to another. The first computer is constantly updating data values and sending them to the other computer, and I want that computer to be able to query the first one for the most recent values whenever it needs them.
However, the default implementation of the UDP send and receive in MatLab is a FIFO structure- the first packet I send is the first the other computer receives when they execute the "fscanf" function. I want the last packet I sent to be the one the fscanf function returns. Is this possible or do I need to use a different protocol?
© Stack Overflow or respective owner