LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to drop data before it's sent to a server as to avoid overflow / Error 63

Using a TCP server, I'm attempting to read from a client once a second. I don't care about the data between reading from the client, but it causes overload for the buffer. How do I avoid this / drop the data?

0 Kudos
Message 1 of 7
(1,030 Views)

I'm not sure what you are trying to do (are you running code on the Server or the Client?  Where is LabVIEW involved in all this?)  Please attach your LabVIEW code (not static pictures that cannot be edited and m.odified), preferably for a "previous version" if you are running LabVIEW 22 or higher.

 

Bob Schor

0 Kudos
Message 2 of 7
(1,001 Views)

Since you don't have your code attached, I will share with you what I think may be a potential problem. 

Let me ask first, when are you getting error 63? Is it as soon as you start your program or later on? If you are getting it as soon as you start your program, make sure the block diagram that you are using to send the data does not run before the block diagram that is receiving data.

 

Start by running the block diagram that is supposed to receive data, then run the one that is going to send the data. 

Try this above and let us know. If it does not work, attach your code. 

0 Kudos
Message 3 of 7
(993 Views)

@helpwanted wrote:

Using a TCP server, I'm attempting to read from a client once a second. I don't care about the data between reading from the client, but it causes overload for the buffer. How do I avoid this / drop the data?


You need to provide significantly more detail.

 

So you are using TCP, not UDP, right? Is each "reading" a new connection or are you keeping the connection going between read? Is the other side only sending on demand or continuously?

Are both sides LabVIEW programs you wrote?

Are you possibly confusing the terms "server" and "client"? Typically a client reads from a server, not vice versa. Who initiates the connection? How? What is the format of the response?

What kind of error messages do you get?

can you share some code?

0 Kudos
Message 4 of 7
(972 Views)

It's a TCP server opens connections through an initialization case, and keeps connections open, it then loops through the connections to send/receive data from each client. The server is being used to both send and receive data. The clients are sending data faster than the server can receive it and that is where the error is occurring. I want a client-side solution that drops data until the client writes to the server. The error 63 occurs after running the program presumably due to data build up on client side. My server is both sending and receiving data, so I cannot set it to strictly read. Both sides of the connection are lab view scripts that I have wrote or edited from LabVIEW examples. I'm using a TCP multiple connections server with read/ write privileges. 

0 Kudos
Message 5 of 7
(920 Views)

If both sides are LabVIEW code, you have full control how much the clients are sending. We probably need to see some code.

0 Kudos
Message 6 of 7
(912 Views)

Do you acknowledge packages sent? If so, don't send the next until you've recieved acknowledge on the current. 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(904 Views)