Thanks for that Joe! you put it very well. It makes sense now. As long as my COM Rx blocks are live, every new data I get I can copy it to another string variable. Can I use the same buffer tags to write data to from the ports they are looking at. Since I reset them after each successful comparison. But let me be specific about my rules.
First scan, In one port, I I look at the string for its last digit, if it is L (for Left), that's good. Same thing for the other port, on the first scan, I look for R( for Right) as the last digit of the string. Only when that's good, I take in another string on the subsequent scan.
For these new strings, I do the same and look for the last characters ( L and R), but also compare the first part of the string that comprises of numbers. If they match then I'm good to go. I already got the code working for this second set of comparisons. I wanted to add another sequence for the new scan.
Thanks,
Bertrand Irakoze