03-04-2016 03:03 PM
Hi everybody,
I'm quite new in data communication with TCP/IP in Labview.
I'm trying to read hexadecimal strings from a laser scanner. I would like to acquire one string for loop from TCP Read, send it to onother while loop by means of a queue and then decompose, decode it and save it in a file. Every string begins with 'sSN LMDscandata' and after that there is a variable number of bytes before the next acquisition. How could I acquire correctly my string if in the TCP Read block it is possible to set only a constant number of bytes?
I would appreciate it if you could help me as soon as possible..
Thank you very much in advance,
Lorenzo
03-04-2016 03:18 PM
Does the scanner put any other information in there for how long the packet of data is?
All good communication schemes would be some know bytes in there that describe how long the message is going to be.
03-06-2016 11:15 AM
After several tests I've discovered that the laser scanner package should be 3800 bytes long for each 270 degree scan.
Thank you!
03-06-2016 08:17 PM
@lorenzo26 wrote:After several tests I've discovered that the laser scanner package should be 3800 bytes long for each 270 degree scan.
Thank you!
That's kind of "iffy" IMHO. You should really get the manual for the equipment and see what it really is. Of course, the manual could say that each message is exactly 3800 bytes long. 😉