07-21-2009 06:44 PM
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
Solved! Go to Solution.
07-21-2009 07:47 PM
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
07-21-2009 08:01 PM
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
07-21-2009 08:14 PM