I am trying to use Labview/GPIB to read 2 bytes at a time from binary data stored in the output buffer of a Perkin-Elmer/Ametek lockin amplifier. Apparently standard GPIB read vi's readdress the lockin, which then causes the multiple reads to fail. I found some useful information in "Multiple GPIB Reads in LabVIEW Result in EABO Errors" on the NI web site. Here the solution was to either to only address the lockin in the first GPIB read (all other reads have a blank GPIB address input) or to initialize the GPIB board to not require readdressing. This works, except when I do serial polls to check if the data is ready to be read and if the buffer is finally empty. Please tell me how I can do GPIB reads AND serial
polls repeatedly without causing errors, such as having the serial poll byte prematurely reset or having the read hang up?
For a moment using the clear device vi before each read seemed to solve the problem, but this no longer is working. I've tried writing programs using IEEE 488, 488.2 and even VISA vis, but still cannot get reliable data transfer.
Thanks for your help,
John