LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Read returns no error and zero bytes

Hi Mark,

 

yes, it's Win 7.

0 Kudos
Message 21 of 29
(1,805 Views)

A agree - this sounds like odd behavior.  Have you tried running NI IO Trace?  That might be about as good as a Wireshark in this case.

0 Kudos
Message 22 of 29
(1,787 Views)

Hi Andrew,

 

I haven't—at the moment it's impossible due to the absolute remoteness of my debugging.

0 Kudos
Message 23 of 29
(1,784 Views)

Could you by chance upload a version of your code with the IO Trace VIs in it, to activate the scan?

0 Kudos
Message 24 of 29
(1,768 Views)

Amazing results, guys.

 

I've received the log file containing the error source text (in case of I'm getting a warning), [comma] and TCP Read real execution time calculation (ms).

 

Here it is:

 

,0

,1

,1

,1

 

If I'm not stoned this means TCP Read does not wait for 30 s/5 bytes, returns no error, no warning and zero bytes.

 

How could this be?

 

 

0 Kudos
Message 25 of 29
(1,758 Views)

Could the source of the TCP data be sending some sort of message with no data, maybe as an application layer 'keep alive' signal?

 

What port are you using, is it for a well known service?

0 Kudos
Message 26 of 29
(1,749 Views)

Hi Phillip,

 

thanks for your reply. I'm using the port which is not mentioned as a port for a well known service. The source of the TCP data is a complex module with its own closed source software so I can't say anything confident—in my opinion, it shouldn't send any keep alive messages. But even if does, my question is why TCP Read doesn't wait for 5 bytes/30 s?

 

0 Kudos
Message 27 of 29
(1,744 Views)

Have you tried taking a network trace and see what is happening with the network traffic?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 28 of 29
(1,731 Views)

Did you ever solve this issue, I am having a similar problem to this one.

0 Kudos
Message 29 of 29
(1,563 Views)