Some time ago, Guido posted a reply to an August 20, 2018 request, " Would some kind soul post a sample EZGPIB program." The OP was trying to read data from his HP-3456A DVM. I am unable to get Guido's program (below) to work. It compiles error-free but no data is retrieved from my 3456A. The only difference I can see is that the OP was using a Prologix GPIB-USB adapter and mine is GPIB-Ethernet. GPIB Configurator confirms that my 3456A can talk to the Prologix adapter and via that and the network, to my PC running EZGBIP (version 20121217). The only change I made to Guido's program was to change the GPIB address to 22 as used by my 3456A. Since I have no programming experience newer than Applesoft BASIC, I would appreciate some advice as to what I might be doing wrong.
Here is Guido's program:
Const Device = 22; // GPIB address
Timeout = 5; // timeout
Var Answer:string;
begin; // main
EZGPIB_BusEnableEoi; // enable EOI
EZGPIB_BusSetEos(0); // Append CR+LF to instrument commands; MODE 4
EZGPIB_ScreenClear;
repeat
EZGPIB_BusWaitForData(Device,Answer,Timeout); // Wait for data
EZGPIB_ScreenWriteLn(Answer); // Write data to screen
until ezgpib_kbdKeyPressed;
end.