LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesn't VISA Read read all the available and commanded bytes

Solved!
Go to solution

Hi All,

 

I am using VISA Write.vi and VISA Read.vi to send and receive byte packets to and from a processor.  Usually everything works fine.  I set a loop to repeat until it sees at least 20 bytes at the port, then I VISA Read to read 20 bytes.   However, when I receive certain byte packages, my property node shows 20 bytes at the port, I instruct VISA Read to read 20 bytes, but it only reads 13 bytes and leaves seven bytes at the port.  If I run the read operation again, it will read them remaining 13 bytes.

 

Any ideas as to what could be making this happen?


Thanks,

 

Forbes

 

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 4
(2,627 Views)

Aha!  Any time VISA Read sees a "10" as the value for one of the bytes, it automatically stops reading at that point.  I'm guessing there is a property setting I can find to tell it not to do that.  Any help would be greatly appreciated.


Thanks,


Forbes

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 2 of 4
(2,615 Views)
Solution
Accepted by topic author diarmaede

OK, I figured it out.  I set "Enable Termination Character" in "VISA Configure Serial Port" to "False," and all my problems disappeared.

 

It's fun talking to myself.

 

Cheers,


Forbes

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 4
(2,614 Views)
Glad we couldn't help. Smiley Very Happy
0 Kudos
Message 4 of 4
(2,606 Views)