Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ibrd() does not terminate

Hi,
 
I am trying to read a measurement from a device (an HP3457A) and no matter how I set the termination properties window the instrument keeps giving me multiple readings.  In other words, when I try to make a voltage measurement I send an ibrd(device, buffer, 50) and I get three different measurements in the buffer seperated by <CR><LF>.  Even if I use the EOS byte of 10 of 13 to terminate the transmission it still always sends me 50 bytes.  Do you have any suggestions on how to rectify this?  By the way, how come so many read commands in any language have to know how many bytes to read?  I only know how many bytes to read about 1% of the time.  The rest of the time I am reading in variable length information.  I want to be able to tell it to read 50 bytes OR UNTIL a <CR> OR <LF> is detected.
 
Buck
0 Kudos
Message 1 of 2
(3,296 Views)

The read in gpib always ends with EOI (hardware line in gpib) or you have the requested number of bytes.

When you set the end character you should also enable it. Often forgotten in LabVIEW

greetings from the Netherlands
0 Kudos
Message 2 of 2
(3,290 Views)