Are you receiving the data as ASCII characters or as binary values?
In other words, in your example above...
Vector(1) --- is that a '9' as an ASCII character 9, ASCII value of $39 (57 decimal)?
Or 9 as in $09, %1001, decimal 9, as in I've got 9 fingers up, and one finger down?
If you're savvy enough (I like using that word savvy here lately), you could look in the PBP manual under the SERIN2 statemen, and look at the DEC and WAIT modifiers. It just might (ok probably will) take care of everything for you without having to write a conversion routine.
Bookmarks