Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Read error

Hi, I'm trying to read all the time the serial port with VISA no matter what kind of data. I've written a small example where I initialize the serial port and I read the bytes in the buffer until I press Exit. The problem is that after a while, the "VISA Read Vi" produces an error. I don't know if this is some kind of timing problem or what. Can you have a look at the VI? Maybe you find the solution or one example. thanks in advance.
0 Kudos
Message 1 of 3
(3,434 Views)
You should avoid reading "zero" byte.
Add a case structure around your VISA read function, and make the zero case empty, with 1 as default case.
Don't ask me why !
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 3
(3,434 Views)
Hi Chilly Charlie,
it seems it's working, thanks a lot!
0 Kudos
Message 3 of 3
(3,434 Views)