LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String Manipulation for data concatenation

Dear altenbach,

 

I have been trying to use ‘Bytes at Port’ in my VI (that reads serial data) and I thus have an unknown number of bytes to process.

 

I have tried to do what you suggested (string subset of length 2…), but the results I am getting are not correct. I am getting lots of false zero values (which are then translated to -5), which is probably because single bytes that arrive are not processed correctly (they are not checked and then concatenated correctly).

 

I have added the VI loaded with a default string. Please have a look at it and suggest ways of correcting it.

 

I have also added a print screen of the data I get using ‘bytes at port’ and the correct data (when read 2-bytes at a time).

 

All the best

Alex

Download All
0 Kudos
Message 21 of 22
(510 Views)

Sorry forgot the VI.

 

Here it is.

 

Alex

 

0 Kudos
Message 22 of 22
(484 Views)