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.
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 !