Author Topic: HP GPIB Assistance  (Read 565 times)

0 Members and 1 Guest are viewing this topic.

Offline C-47Topic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: au
HP GPIB Assistance
« on: September 28, 2023, 11:19:58 am »
Having recently revived a HP5316A back to basic working condition, link here (sorry cant get it to work), anyway the next task was an alignment where the GPIB is used to provide some basic single line commands, but so far I have not had any luck getting this to work. The Keysight clone USB to GPIB cable seems to test OK based on the light sequence and front panel meter lights are ADSRD and Remote illuminate when a command is sent, but the response is Time Out, increasing the interval doesn't solve this. Screen shot attached. As I'm completely new to GPIB stuff any guidance would be appreciated. Thanks.

Adding, software being used is Keysight IO Control and Connection Expert,

« Last Edit: September 28, 2023, 12:06:35 pm by C-47 »
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5691
  • Country: ca
Re: HP GPIB Assistance
« Reply #1 on: September 28, 2023, 01:02:09 pm »
normally  you should not get errors if all visa ivi drivers are there

your equipment should answer an *idn? request ???  you have to send and request an answer ...

there a few basic start tests to be sure all your connected stuff works

unless your usb gpib is bad ???


 

Offline tridac

  • Regular Contributor
  • *
  • Posts: 109
  • Country: gb
Re: HP GPIB Assistance
« Reply #2 on: September 28, 2023, 01:41:21 pm »
Can you be more specific on the adapter in use ?. What matters is how the adapter has been setup for the modes of operation. Such as:  is a simple instrument read possible, or, is it setup for an srq  interrupt on data ready, which needs to be recognised, before a read back ?. How are you driving the adapter, from your own C code, or what ?...
Test gear restoration, hardware and software projects...
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2795
  • Country: 00
Re: HP GPIB Assistance
« Reply #3 on: September 28, 2023, 01:50:18 pm »
I imagine the HP 5316A pre-dates IEEE 488.2 and SCPI, so it won't support *IDN? which the connection expert will send to try to identify. It also won't understand SYST:ERR?. Check the manual for commands it support. During this era every instrument would define its own, unique set of commands, although similar instruments from the same manufacturer would often have similar commands.

Start with a command that causes a physical change of the front panel, like switching gate time. Then look if it has a command to query the status or current measured value, and write it and read again, or use query which is read + write. Ignore buttons like SYST:ERR?. They are for more modern instruments from the early nineties or later.

Offline pqass

  • Frequent Contributor
  • **
  • Posts: 668
  • Country: ca
Re: HP GPIB Assistance
« Reply #4 on: September 28, 2023, 01:53:34 pm »
The HP531xA series uses old-style "R2D2" command set.  See manual here (page 3-29 onward).

If it's like my 5334B, just reading from the device will give you the current LED display value.
Try sending "RE" (reset) or "FN0" (rolling display test) to see if you get a reaction on the LED display.

Check the DIP switch state.
Setting should be "addressable" not "talk only".
Of course, make sure the address is unique and you're sending commands to it (don't assume default address).
 

Offline merox

  • Regular Contributor
  • *
  • Posts: 62
  • Country: de
Re: HP GPIB Assistance
« Reply #5 on: September 28, 2023, 05:16:02 pm »
Screen shot attached. As I'm completely new to GPIB stuff any guidance would be appreciated. Thanks.

You don't need to enter "ibwrt" and "700" into that command box - just "TR1AT0" (without the quotes) is sufficient.

If it's a command that returns a value you click "Send & Read", for a command that doesn't generate a response you just use "Send Command".

You can imagine "Send & Read" as beeing "ibwrt" followed by "ibrd" with the address beeing inserted automatically by the connection expert software. "Send Command" on the other hand translates into a single "ibwrt" (which are the functions that you would use when programming/accessing the GPIB bus in C or something similar).
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5691
  • Country: ca
Re: HP GPIB Assistance
« Reply #6 on: September 28, 2023, 05:37:15 pm »
oh sorry if i'm out of my league    yeah  its an oldie ...    like me   loll
 

Offline C-47Topic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: au
Re: HP GPIB Assistance
« Reply #7 on: September 28, 2023, 11:33:39 pm »
Merox is on the money, works fine without typing in any other commands, thank you, now on with the alignment. Coromondalix I know the feeling !!. Thanks to all others for their input, try all other possibility's when working with such old equipment.   
« Last Edit: September 29, 2023, 12:04:49 am by C-47 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf