Jenner, Thank you very much for your help! It worked. The only thing different I had to do is I had to break down the for loop and call four different statements. But I do have one more question. On and off the serial port spits out data like this:
005%0 OK
00567 OI


How can I capture only the good data? A serial port always spits out 5 lines of data and I am only reading the first line. Here is a sample of data:
ÿÿÿ 00573 OK
00%73 OK
00573 OK
00573 OK
00573 OK