LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to buffer data when network goes down

I am not a LabView programmer.  One of the programmers here has written a program which writes data to a network computer.  Unfortunately on occassions where the network has a glitch maybe for a few seconds or even a fraction of a second. the program will lose all of the data which it was writing.
Is there anyway in which they could write the program so that it would buffer the data and save it else where.
0 Kudos
Message 1 of 2
(2,683 Views)
TCP is designed to handle small network outages automatically. You should not need to worry about loosing data unless the outage is excessive or you are using a stateless protocol such as UDP instead of TCP. Just make sure you are using a single TCP connection for the entire communication.
 
If you use UDP, buffering will involve some code to make sure that only lost segments get retransmitted. You could do some out of band communnication (e.g. on a second port) so the two sides can detect network glitches and keep each other informed.
 
This will not be easy unless you know some LabVIEW, though. 🙂
Message 2 of 2
(2,679 Views)