12-10-2009 02:19 AM
Another note to my first answer: You should include some boundary conditions to the shiftregister. If, due to a different setup, no match is found your shiftregister string will grow and grow.
Check the lengh and when it's longer than two times the 'match', quit with an error or warning..
12-10-2009 06:39 AM
12-10-2009 02:25 PM
Thank you so much all. Now the code is working great. I'll certainly implement some sort of an error loop to make sure the the shift register does not grow in size.
Best Regards
Serdar