10-28-2011 08:58 AM
I am reading a binairy message coming from an RFID tag that looks like this:
hex[01 09 0C B9 6E 53 0A 00 00 00 00 8B]
The Bytes at Port-property shows me the full message (12bytes) is present at the port.
Then I do a Visa_read with the 12 bytes as input, the read always comes back with 7 bytes read.
So the Visa_read stops at the ZERO characters... In a subsequent read I take the other 5 bytes.
Why does the VISA_READ stop at the ZERO character? (I am using XON/XOFF and the stop character is defined as 15, not zero!)
Check below code,
Thanks for help in advance!
Solved! Go to Solution.
10-28-2011 09:06 AM - edited 10-28-2011 09:08 AM
Actually I bet it reads the 0x0A and you have set-up the port with the following default properties:
If you check the error cluster out the warning will tell you that the term char was seen, There might be more data available...
Set up the port with a F wired to ternination character enable.
EDIT: Oh the jpg clearly shows I was right make the T an F
10-28-2011 09:15 AM
Exactly:manhappy: , I was shooting at the wrong character.
Thanks Jeff!