Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read a multi-line response over the GPIB interface in Visual Basic 6.0?

My GPIB instrument responds to a query with three lines separated by a CL/LF. When I use Ibrd or ibrda, I only receive the first line. How do I read a multi-line response from an instrument over the GPIB using Visual Basic 6.0?
0 Kudos
Message 1 of 3
(3,580 Views)
Hi,

The default setting is that the ibrd functioon will return when the EOI line is asserted, indicating the end of message.

You can check on the GPIB interface properties to determine if the GPIB interface is configure to terminate on a EOS (End Of String) character, and what character is used. You can access the properties of the GPIB interface in MAX (Measurement & Automation Explorer).

DiegoF
0 Kudos
Message 2 of 3
(3,580 Views)
DiegoF,
Thank you so much for your response!
I checked on MAX. My GPIB interface is configured to terminate on EOI with no EOS character termination.
The problem seems to be in my use of ibrd. I don't know how to configure it to read past the CR/LF. I set EOSMODE = 0 when I called ildev but this didn't help.
0 Kudos
Message 3 of 3
(3,580 Views)