Author Topic: EZGBIP Program help please  (Read 1825 times)

0 Members and 1 Guest are viewing this topic.

Offline jeremynicholsTopic starter

  • Newbie
  • Posts: 3
  • Country: us
EZGBIP Program help please
« on: February 08, 2020, 05:25:29 am »
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.

 

Offline babysitter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: de
  • pushing silicon at work
Re: EZGBIP Program help please
« Reply #1 on: February 09, 2020, 04:02:56 pm »
In the area between sourcecode and console you get debug messages. What happens there? Also, there is a "debug window" you can summon which should tell you about interfaces found - whats going on there? I have only the USB interface, but the website says GPIB-LAN is supported too.
I'm not a feature, I'm a bug! ARC DG3HDA
 

Offline jeremynicholsTopic starter

  • Newbie
  • Posts: 3
  • Country: us
Re: EZGBIP Program help please
« Reply #2 on: February 10, 2020, 06:48:18 pm »
There is no response in either window when I attempt to run the program. I'll attempt to find the "debug window" when my 3456A becomes available (it's tied up in another project).
 

Offline babysitter

  • Frequent Contributor
  • **
  • Posts: 898
  • Country: de
  • pushing silicon at work
Re: EZGBIP Program help please
« Reply #3 on: February 10, 2020, 07:42:36 pm »
The debug windows should tell you which Interface is found, even without further GPIB Bus members.
I'm not a feature, I'm a bug! ARC DG3HDA
 

Offline borghese

  • Regular Contributor
  • *
  • Posts: 70
  • Country: si
Re: EZGBIP Program help please
« Reply #4 on: February 10, 2020, 07:48:17 pm »
Hello
If your adapter is configured as a controller and the HP3456 is not in 'talk only' you must tell HP what to do.
Try adding this line:

repeat
    EZGPIB_BusWriteData(Device,'F1T1');                               // DCV and Trigger
    EZGPIB_BusWaitForData(Device,Answer,Timeout);                   // Wait for data
« Last Edit: February 10, 2020, 07:50:15 pm by borghese »
Cheers
Borghese
 


Offline RandallMcRee

  • Frequent Contributor
  • **
  • Posts: 542
  • Country: us
Re: EZGBIP Program help please
« Reply #6 on: February 14, 2020, 02:32:37 am »
I did have the EZGPIB program working recently and then it stopped working.

The problem?

I needed to run EZGPIBConfigurator from John Miles, see
http://www.ke5fx.com/gpib/readme.htm
to set Prologix's usb port, which apparently changed.

Hope this helps,
Randall
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf