You were correct. I completely forgot that I wasn't using the low order 8 bits on my DAQ for the byte input. I was using the 2nd 8 bits, hence the division by 256. I moved that division and the type conversion to U8 inside the conditional statement, and it now works like a charm. Thats a good call about being consistent with data types. I didn't realize thats what I was doing when the lines were different colors. I'm going to go in and fix that.
Fortunately the data output was defined in such a way that all of the characters are symbols, characters, or numbers, but I may look into the binary file functions anyway.
Thanks again for your help.