From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Read node returns no data

I am using the TCP nodes in LabView 8.6 to communicate with a laser box.  The "write" node functions properly, and successfully sends commands to the laser box, but when I use the "read" node to receive information from the box, it returns no data.  I am using the node in standard mode, with the number of bytes to read set at 512, and the timeout at 1000 ms.  According to the help file, the node should report a timeout error if it receives less than 512 bytes, but it reports no error at all, even though it does not return any data.  I know the box is sending data, because I can read information sent from the box in a telnet session through the Windows command prompt.  What is going wrong?

0 Kudos
Message 1 of 3
(2,217 Views)

Hi Bobby1229,

it sounds like it should work. Can you upload your vi?

 

Mike

0 Kudos
Message 2 of 3
(2,214 Views)
Hi Bobby,  Are you handling the errors with a dialog, it might be erroring but not reporting it.  It sounds to me like this is a VISA issue.  Verify that all port settings/aliases for the ethernet resource being used is correct.  Also try and use one of the shipping examples for VISA ethernet to test connectivity to the port.
Chris Bakker
SET Americas
CEO

0 Kudos
Message 3 of 3
(2,190 Views)