07-18-2006 07:41 PM
07-19-2006 02:09 AM
just a guess: VISA read terminates via termination character, so your buffer isn't empty. You can disable this function or read the buffer until bytes at port is zero.
07-19-2006 08:40 AM
Henrik, I always combine the VISA read operation with a byte count from the interface, i.e. ask how many bytes are available, then read them.
This still will not get the interface synchronized. The situation inproves if I ask and them read the input buffer repeatedly before starting the "real" I/O operation, but I can still lose synchronization.
DE
07-20-2006 03:00 AM - edited 07-20-2006 03:00 AM
have you checked if your read termination setup?
To make shure the buffer is empty with VISA read I use this structure with an additional shiftregister for the values.
But there is also the VISA flush buffer.vi that will do it.
If you can provide more information on the data stream you want to sync to I might give you some hints how to solve this task.
Message Edited by Henrik Volkers on 07-20-2006 10:16 AM