Check out the related Code Repository Files or visit the LabVIEW Wiki Internet Portal
Tags |
(This content has not been tagged yet)
|
![]() |
Nov 15 2004, 03:28 PM
Post
#1
|
|||
|
One hit wonder! Member Posts: 1 Joined: 10-August 04 Member No.: 589 LV:7.0 |
I have constructed a labview application that gathers data and then sends it over a connection if it is up,
otherwise it buffer the data till the link is up and running. When the connection is lost and then come back on line I will miss some packets. As soon as I receive an error out from the TCP/IP box I stop sending any new packets. Any one how know why I lose packets? Since I am using the TCP protocol I expected that the packet that was sent and not delivered has to be resent whiteout me doing this in my application. The number of packets that is lost seams to have to do with the how many packet I send per second. Higher speed more packet lost.
|
||
|
|
|||
| Ad |
Nov 15 2004, 03:28 PM
Post
#
|
||
|
|
|
||
|
|
|||
Nov 16 2004, 09:43 PM
Post
#2
|
|||
|
Changing the world, one VI at a time. JKI ![]() Posts: 1692 Joined: 22-October 02 From: San Francisco, CA Member No.: 17 Using LabVIEW Since:1995 LV:8.2.1 ,8.5 ,7.1.1
My Blog
My Gallery
|
QUOTE (action @ Nov 15 2004, 07:28 AM) I have constructed a labview application that gathers data and then sends it over a connection if it is up, otherwise it buffer the data till the link is up and running. When the connection is lost and then come back on line I will miss some packets. As soon as I receive an error out from the TCP/IP box I stop sending any new packets. Any one how know why I lose packets? Since I am using the TCP protocol I expected that the packet that was sent and not delivered has to be resent whiteout me doing this in my application. The number of packets that is lost seams to have to do with the how many packet I send per second. Higher speed more packet lost. One would expect that the packet which generated the error would be lost -- that's what the error is telling you. Are you losing more packets which were sent without generating an error, prior to the disconnect? --------------------
|
||
|
|
|||
Nov 17 2004, 07:26 PM
Post
#3
|
|||
|
Instant Human, just add coffee Premium Member ![]() Posts: 889 Joined: 31-January 03 From: Waterford, CT USA Member No.: 45 Using LabVIEW Since:1992 LV:8.2.1 ,7.1 ,8.0.1
|
Are you returning a "packet XXX recieved" notification. It seems that adding a little bit of info to the buffer you build up (when the connection is down) might workaround your problem. I agree that it would be nice to know why you are loosing the packets, but making your recovery robust seems more important.
The reason I say robust recovery is more important is that I have seen multiple ways that LabVIEW's TCP/IP comms have problems over the years. Spurious timeout errors (you set the timeout to 2 seconds and the read VI returns in 50 millisec with a TO error) to buffer overflow errors when you try to transmit to fast. I have run into som many types of errors that I assume that there will be multiple error modes with TCP/IP and implement accordingly. Best of luck! -------------------- ************************************************************* "Always listen to the experts, they'll tell you what can't be done, and why. Then go do it." ~The Notebooks of Lazarus Long (by Robert Heinlein) *************************************************************
|
||
|
|
|||
![]() ![]() |
| Time is now: 22nd November 2008 - 02:21 AM |