LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA READ stops reading at 'zero'-char

Solved!
Go to solution

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!

 

0 Kudos
Message 1 of 3
(2,816 Views)
Solution
Accepted by topic author _Xilinx_

Actually I bet it reads the 0x0A Smiley Wink and you have set-up the port with the following default properties:

  • End mode for reads= TermChar
  • Term Char = 0x0A
  • Supress term char for reads = True

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 rightSmiley Very Happy  make the T an F


"Should be" isn't "Is" -Jay
Message 2 of 3
(2,811 Views)

Exactly:manhappy: , I was shooting at the wrong character.

 

Thanks Jeff!

0 Kudos
Message 3 of 3
(2,805 Views)