LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the number of bytes at TCP port

Hi all,

 

How to get the number of bytes to read at the TCp port...as someone had suggested in some forum we do read the number of bytes first and then pass this...

 

but we get a problem when we have FF data in this...because then it sends 2 FF data...and cause of this we skip the last data...is there any solution for the same?

0 Kudos
Message 1 of 4
(3,218 Views)

Hi

 

In LabVIEW you don't have the same property as in serail port.

You havn't "Byte at TCPIP port".

 

if you developp a protocol, one soltion, is to send the size to read.

New-1.png

Ingénieur d'Application / Développeur LabVIEW Certifié (CLD)
Application Engineer / LabVIEW Certified Developer (CLD)
0 Kudos
Message 2 of 4
(3,197 Views)

Podría ser mas claro,  ¿por que "TCP read" usa en la entrada de "bytes to read" valor 4? 

0 Kudos
Message 3 of 4
(2,548 Views)

Hi Aldo,

 

por que "TCP read" usa en la entrada de "bytes to read" valor 4?

Because the string length is encoded as I32 value in 4 bytes…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,534 Views)