LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

data socket losing my sending data

i have two apps one write and one send data
in the reading i used auto answer callback.
when i try to send data in a for loop
the data that i got in the reader callback was
worng.
to loop send numbers form 1 to 100
and i got in the reader 1,4,10,100,100,100,100....100
what to do ?
0 Kudos
Message 1 of 2
(2,840 Views)
There is no built in handshaking with datasocket that insures you get every value. You do get messages when the value has been changed, but these messages don't queue up. So if a value has been changed and you got a message but haven't processed it yet, then the next change won't send another message and you will have missed an update. You can implement your own handshaking if you like by having the reader write to an acknowledgement item to tell the server that it has read a value and the value can be updated again.
0 Kudos
Message 2 of 2
(2,840 Views)