01-21-2008 10:13 AM
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
01-22-2008 04:35 AM
Sorry forgot the VI.
Here it is.
Alex