Author Topic: AR488 Arduino-based GPIB adapter  (Read 274943 times)

0 Members and 5 Guests are viewing this topic.

Offline eliocor

  • Supporter
  • ****
  • Posts: 522
  • Country: it
    • rhodiatoce
Re: AR488 Arduino-based GPIB adapter
« Reply #550 on: August 31, 2020, 02:13:08 pm »
Is there any owner of a REAL Prologix interface who can do the following test:
- Open EZGPIB
- once the program has started, open the [Debug Message] window (Alt-D)
- publish the contents of this window
 
Thanks in advance....
Elio.
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #551 on: August 31, 2020, 09:35:20 pm »

I have built a UNO based AR488 module and am using it to receive screen dumps from a TDS744A Tek 'scope using some software I have written.

The AR488 is in mode 0 and when the operator presses the scopes "HARDCOPY" key the file is recieved and written to a file.

At the moment the only way I have been able to detect the end of the datastream is to have a timeout on the read on the AR488 interface.

Is there a better way to detect the scope having sent the last character ?? An EOF indicator, perhaps, that I can poll ?? There doesnt seem to be anything in the stream for EOF (it's a binary stream anyway).

TIA
Dave
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline serg-el

  • Regular Contributor
  • *
  • Posts: 143
  • Country: ru
Re: AR488 Arduino-based GPIB adapter
« Reply #552 on: September 01, 2020, 04:45:42 am »
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #553 on: September 01, 2020, 05:15:53 am »
Sorry, I cannot see how that relates to my question - my screen capture works, I just need a better way to detect the end of the data stream.
Regards,
Dave
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline WaveyDipoleTopic starter

  • Frequent Contributor
  • **
  • Posts: 851
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #554 on: September 05, 2020, 08:17:40 am »
Which is the string shown in the debug log about  the ++ver string?
I am using a Leonardo clone, and with the patched version apparently the ++ver does not return anything.

If a custom version string has not been configured, then '++ver' should return the default version string defined at the top of the sketch. If a custom version string has been configured with '++setvstr' or '++id vstr' then:

++ver - returns the custom string
++ver real - returns the default string
 

Offline WaveyDipoleTopic starter

  • Frequent Contributor
  • **
  • Posts: 851
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #555 on: September 05, 2020, 08:45:01 am »

I have built a UNO based AR488 module and am using it to receive screen dumps from a TDS744A Tek 'scope using some software I have written.

The AR488 is in mode 0 and when the operator presses the scopes "HARDCOPY" key the file is recieved and written to a file.

At the moment the only way I have been able to detect the end of the datastream is to have a timeout on the read on the AR488 interface.

Is there a better way to detect the scope having sent the last character ?? An EOF indicator, perhaps, that I can poll ?? There doesnt seem to be anything in the stream for EOF (it's a binary stream anyway).

TIA
Dave

Since the stream terminates on an EOI signal, it might be possible to use ++eot_char and ++eot_enable to set a specific EOT character. The only catch is that any ASCII character from 0-255 could be present in plot data and when detected might stop your capture prematurely. Looking at the HPGL plot output files it seems that they usually end in the sequence 'SP0;' and then a null, although not consistently so. Occasionally the ';' is omitted and sometimes a handful of additional sequences follow 'SP0;' depending on the instrument. It suspect it might be possible to terminate on detecting the sequence 'SP0' or 'SP0;' although it might be necessary to flush any remaining characters in the buffer to prevent them being tagged on to the next plot.
« Last Edit: September 05, 2020, 07:14:28 pm by WaveyDipole »
 

Offline softfoot

  • Contributor
  • Posts: 44
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #556 on: September 05, 2020, 09:00:34 am »

That is pretty well what I concluded ... that would only work on a non-binary format.

I'll stick with a timeout I think.

Thanks,
Dave
Grumpy Old Software/Hardware Engineering Git
Dave
 

Offline lambcutlet

  • Contributor
  • Posts: 13
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #557 on: November 03, 2020, 07:22:55 pm »
Hi I've just built myself an AR488 with arduino micro. I can send commands like ++ver and receive a response back.
But I'm having some difficulty connecting to my Fluke8840a, command ++addr responds with 1 so i've set the hardware address to 1.
I'm hoping username kc9qvl is still on this forum as I see in post #412 he got it working.
I was hoping he could share the secret to get the Fluke chatting.
A random question, is the AR488 compatible with PyVISA?
 

Offline Sprock

  • Contributor
  • Posts: 24
  • Country: de
  • man sollte sich selbst nicht so wichtig nehmen.
Re: AR488 Arduino-based GPIB adapter
« Reply #558 on: November 06, 2020, 07:39:33 am »
Hi Lambcutlet

please try ++auto 3 return, then ++read return.

It spits out the Data from my 8840A.

Ps.
Thanks to wavy dipol, artag et al
 

Offline lambcutlet

  • Contributor
  • Posts: 13
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #559 on: November 06, 2020, 01:06:03 pm »
Hi Sprock,
thankyou for the commands, I gave them a try and receive nothing back from my 8840A  :(. I now suspect the GPIB board inside the 8840A is faulty, as I've tested the AR488 on another device so I know it's working.
Thankyou again

Fixed it. The ribbon cable went high impedance at the press-fit ends preventing power to flow through to create 5V on the GPIB board.
« Last Edit: November 07, 2020, 08:49:50 pm by lambcutlet »
 

Offline Miti

  • Super Contributor
  • ***
  • Posts: 1342
  • Country: ca
Re: AR488 Arduino-based GPIB adapter
« Reply #560 on: November 06, 2020, 03:52:42 pm »
Is there any owner of a REAL Prologix interface who can do the following test:
- Open EZGPIB
- once the program has started, open the [Debug Message] window (Alt-D)
- publish the contents of this window
 
Thanks in advance....
Elio.

You mean this?
Fear does not stop death, it stops life.
 

Offline eliocor

  • Supporter
  • ****
  • Posts: 522
  • Country: it
    • rhodiatoce
Re: AR488 Arduino-based GPIB adapter
« Reply #561 on: November 06, 2020, 04:02:03 pm »
You mean this?

Yes, but for the Prologix USB interface. Nonetheless thanks anyway.
 

Offline Tj138waterboy

  • Regular Contributor
  • *
  • Posts: 103
  • Country: us
Re: AR488 Arduino-based GPIB adapter
« Reply #562 on: November 21, 2020, 05:55:16 pm »
Can I get a hint on what the hangup is with my setup. HP3478A, arduino nano 328p old bootloader wired to ar488 adapter connections are correct air wired. I have tried using Girlando and ar488.ino sketch, I did uncomment uno in the config.h and made active nano. I have used multiple configurations with cp230x usb to ttl adapter connected to nano with recmmended baud/bit rates, I have even rewired a new nano to breakout board as well as flash uno bootloader with no luck. The closest I can get using terminal as well as hp3478a software is this message...
Version 04-18-20
Gain encode/decode algorithm thanks to: Steve1515 (EEVblog) and fenugrec (EEVblog).
Windows 10 /S-2016  Platform ID 2
Config file loaded.
Command delay = 0ms.
Max COM port = 64.
Search COM ports for Prologix adapter.
***-
Found prologix on COM3
COM port set to COM3

Searching GPIB for instrument
*******************************
Auto search instrument not found!
Instrument comm fail!
Check GPIB port setting!
Check GPIB port setting!
Instrument stop/local
Check GPIB port setting!
Check GPIB port setting!
Debug ON.
Search COM ports for Prologix adapter.
*CheckCom start COM1
CheckCom end CreateFileA COM1
CheckCom port not found
FA:Port COM1 not found.
*CheckCom start COM2
CheckCom end CreateFileA COM2
CheckCom port not found
FA:Port COM2 not found.
*CheckCom start COM3
CheckCom end CreateFileA COM3
CheckCom port found
CheckCom end CloseHandle COM3
FA:Port COM3 found.
OC:Open COM3 CheckCom.
CheckCom start COM3
CheckCom end CreateFileA COM3
CheckCom port found
CheckCom end CloseHandle COM3
OC:Open COM3 open port.
OC:Open COM3 OK.
CA:Start CheckAdapter on COM3
CA:Check Prologix GPIB adapter. ProVer =:"GPIB"
QS: Send:"++ver" Reply:""
CA:Prologix not found. ++ver retry for Arduino.
CA:Retry ++ver (Arduino boot delay)
-CA:Retry: Found Prologix adapter (Arduino retry).
CA:Exit checkAdapter on COM3

Found prologix on COM3
COM port set to COM3
IG:Start InitGPIB
IG:Find Prologix GPIB adapter.
IG:ProVer srch:"GPIB"
IG:Found Prologix adapter.
IG:set ++mode 1.
IG:set eot_enable 0.
IG:set read timeout:++read_tmo_ms 3000
IG:SetGPIB Address ++addr 23 success.
IG:set EOI 0.
IG:set EOS 0.
IG:Set auto talk mode off: ++auto 0  success.
IGT:QSB result
IGT:Failed instrument ID: BR$=:""
IGT LEN BR$:0
Instrument comm fail!
Check GPIB port setting!
Check GPIB port setting!
Check GPIB port setting!


I tried manually setting GPIB address as well as auto and nothing. The multimeter is powered on SRQ jumper disabled on back of meter and Address is set to 23 using dip switches. I also tried setting dip switches to talk only and it seems nothing wants to communicate with arduino.
 

Offline Tj138waterboy

  • Regular Contributor
  • *
  • Posts: 103
  • Country: us
Re: AR488 Arduino-based GPIB adapter
« Reply #563 on: November 22, 2020, 04:24:12 pm »
Just want to put out a FYI, I bought a small batch of NorComp Inc. Product Number 111-024-103L001 IEEE-488 24 pin plug connector to go with the artag pcb and the pin size of the connector is too large to fit into the pads of the pcb. If building an adapter pay close attention to what you buy.
 
The following users thanked this post: coromonadalix

Offline BK

  • Newbie
  • Posts: 2
  • Country: de
Re: AR488 Arduino-based GPIB adapter
« Reply #564 on: November 22, 2020, 07:56:37 pm »
I just soldered an arduino Pro Micro to a Centronics Plug to connect to a Toellner PSU. When I enable verbose mode, I get the following output:

Code: [Select]
*IDN?
> ++read
TOELLNER,TOE8815-32,0,V1.34
                           gpibReadByte: timeout waiting for DAV to go LOW
Bytes read: 28
Timeout waiting for sender!
Is this DAV timeout "normal"? (I never used GPIB or ar488 before)

The reply string seems complete according to the manual.



« Last Edit: November 22, 2020, 08:07:44 pm by BK »
 

Offline artag

  • Super Contributor
  • ***
  • Posts: 1207
  • Country: gb
Re: AR488 Arduino-based GPIB adapter
« Reply #565 on: November 22, 2020, 11:39:58 pm »
@Tj138waterboy

Yes, that's a connector intended for soldering to individual wires, not pushing into a PCB.
Digikey describes that as    CONN SCSI PLUG 24P STR SLDR CUP   - SLDR CUP for solder cup.

You need a PCB-mounting connector, which has thin pointed pins instead of those solder cups.
Rather unhelpfully, these are described simply as SOLDER.

This is the one you want  :
https://www.digikey.com/en/products/detail/norcomp-inc/111-024-113L001/955147

Note that it's 113, not 103.

You should be able to use it just by putting some short solid copper wire into each solder-bucket. A bit fiddle and maybe a mm or two deeper, but at least it wouldn't be a complete waste of the connector.
 
« Last Edit: November 23, 2020, 12:00:44 am by artag »
 

Offline BK

  • Newbie
  • Posts: 2
  • Country: de
Re: AR488 Arduino-based GPIB adapter
« Reply #566 on: November 23, 2020, 09:13:28 am »
Code: [Select]
*IDN?
> ++read
TOELLNER,TOE8815-32,0,V1.34
                           gpibReadByte: timeout waiting for DAV to go LOW
Bytes read: 28
Timeout waiting for sender!

Changed following settings:
Code: [Select]
++eoi 1
++eor 2
It is working now.

 
The following users thanked this post: artag

Offline hnjmkl

  • Regular Contributor
  • *
  • Posts: 80
  • Country: it
Re: Adattatore GPIB basato su AR488 Arduino
« Reply #567 on: November 26, 2020, 08:19:42 am »
Arduino novice I would like to use it to try to manage my HP tools including the 3478A, the UNO works, launching HP3478A.exe I see the value on the display reproduced on the PC, the ++ ver command, present in GPIB6.1, does not work instead should the Girlando version string.
« Last Edit: November 26, 2020, 08:26:20 am by hnjmkl »
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 2757
  • Country: ca
Re: AR488 Arduino-based GPIB adapter
« Reply #568 on: November 30, 2020, 03:20:08 pm »
Hi group,

I want to give a big thank you to forum members WaveyDipole and artag.
I ordered the PCB:




last week.

I will let you know how I get on.

( I have an old, very old, Prologix interface board)


Best regards,
Jay_Diddy_B
 
The following users thanked this post: coromonadalix

Offline hnjmkl

  • Regular Contributor
  • *
  • Posts: 80
  • Country: it
Re: AR488 Arduino-based GPIB adapter
« Reply #569 on: December 05, 2020, 05:21:07 pm »
I have successfully used AR488 for hours with the HP 7225A plotter, the next day I was no longer able to send any command via terminal, it does not even return the version string with ++ ver, any suggestions?
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2372
  • Country: fi
Re: AR488 Arduino-based GPIB adapter
« Reply #570 on: December 06, 2020, 05:57:05 pm »
After some Windows update?

Reconnect it using different USB port.
What device manager says?
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Offline hnjmkl

  • Regular Contributor
  • *
  • Posts: 80
  • Country: it
Re: AR488 Arduino-based GPIB adapter
« Reply #571 on: December 07, 2020, 09:40:30 am »
No Win update, try other USB ports but AR488 still doesn't work, device manager sees (COM3) as soon as I connect ELEGOO R3 board, basic programs such as blinkled example are loaded and work correctly.
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2372
  • Country: fi
Re: AR488 Arduino-based GPIB adapter
« Reply #572 on: December 07, 2020, 11:10:19 am »
There shouldn't be a space in ++ver.
That gives you a USB side response.
So if not then something is wrong between AR488 and the PC.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 

Offline hnjmkl

  • Regular Contributor
  • *
  • Posts: 80
  • Country: it
Re: AR488 Arduino-based GPIB adapter
« Reply #573 on: December 07, 2020, 11:41:12 am »
I also believe that the problem is as you say.
 

Offline m k

  • Super Contributor
  • ***
  • Posts: 2372
  • Country: fi
Re: AR488 Arduino-based GPIB adapter
« Reply #574 on: December 07, 2020, 06:11:52 pm »
If flash is verified after write then RAM test is the obvious next step.

You can of course also try
++default
++savecfg

If there are unused pins one blinker wouldn't be bad for AR488 eighter.
Mean time you can use DAV, it seems to be flipped no matter what.
Advance-Aneng-Appa-AVO-Beckman-Danbridge-Data Tech-Fluke-General Radio-H. W. Sullivan-Heathkit-HP-Kaise-Kyoritsu-Leeds & Northrup-Mastech-REO-Simpson-Sinclair-Tektronix-Tokyo Rikosha-Topward-Triplett-Tritron-YFE
(plus lesser brands from the work shop of the world)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf