06-20-2008 07:49 PM
08-07-2008 05:10 AM
08-07-2008 05:11 AM - edited 08-07-2008 05:12 AM
11-10-2014 05:36 AM
It seems to me that when there is a lot of data in the receive buffer, the flush buffer function needs some time to atually empty the buffer. When reading immediately afterwards there are still some old data present. When I perform the "Bytes at port" function I read out zero, and when I then do the Visa receive, I get no old data. My theory is that the "Bytes at port" functions awaits until the flush is finished and then returns 0, and then the buffer is really empty as well. I haven't spent a lot of time testing this, but adding the "Bytes at port" function worked for my application.
11-27-2020 01:32 AM - edited 11-27-2020 01:38 AM
Very interesting topic to me.
Does anyone know how long does it take to remove all data in buffer by VISA flushing?
I would like to know the reliable way to check the point of finishing flush.
"the "Bytes at port" functions awaits until the flush is finished and then returns 0, and then the buffer is really empty as well."
Is it accepted way?
As another way, I can read buffers continuously and then waste it until zero byte in the port.
Do you think it is slower than by VISA flush?
labmaster.