Author Topic: 34401a interface to PC - RS232 or GPIB?  (Read 27309 times)

0 Members and 1 Guest are viewing this topic.

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
34401a interface to PC - RS232 or GPIB?
« on: June 17, 2014, 12:12:15 am »
I recently picked up a used Agilent 34401a DMM off of eBay. I love the meter and want to take advantage of it's remote control capability.

The meter has RS232 and GPIB interface, neither of which my PC has. I do think I have a USB -> Serial converter lying around somewhere, so I was thinking I would use that. Another option would be to get some sort of GPIB to USB converter or a GPIB board for my PC.

Is there any advantage to going the GPIB route here?

Thanks
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #1 on: June 17, 2014, 12:24:14 am »
GPIB is bulkier and more expensive, but faster and more reliable. If you are going to use slow datalogging, you might get away with RS-232, if you want to take advantage of 34401A's fast sampling rate, you are going to need GPIB.

Quote from: User's Guide, page 219
ASCII readings to RS-232     55/s
ASCII readings to GPIB     1000/s
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #2 on: June 17, 2014, 12:29:14 am »
GPIB is bulkier and more expensive, but faster and more reliable. If you are going to use slow datalogging, you might get away with RS-232, if you want to take advantage of 34401A's fast sampling rate, you are going to need GPIB.

Quote from: User's Guide, page 219
ASCII readings to RS-232     55/s
ASCII readings to GPIB     1000/s

Dave - thanks. Do you have any recommendations regarding how to interface my PC to GPIB? I see a number of used Agilent GPIB to USB converters (cable plus a small converter box in one) on eBay, but they are relatively pricey (~$150).
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1352
  • Country: si
  • I like to measure things.
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #3 on: June 17, 2014, 01:32:26 am »
I suggest you pick up Agilent 82357B. They aren't cheap (about $150, as you already figured out), but they work well.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #4 on: June 17, 2014, 04:43:46 am »
That actually seems to be the cheapest option. I am curious what the device is exposed as in Windows and Linux? Does it look like a serial port? Are there going to be driver issues in newer versions of Windows?
 

Offline Galaxyrise

  • Frequent Contributor
  • **
  • Posts: 531
  • Country: us
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #5 on: June 17, 2014, 04:45:12 am »
Do you actually know that you have need of more than 55/s?  I wouldn't spend $150 without an actual use case in mind when a rs232->usb adapter is so cheap.  And if you want fast readings but in short bursts, you can store them into DMM memory and then drain then out via rs232 post capture.  There's enough memory for 512 readings.

All my logging has been done with the meter in 6-digit mode, so rs232 was fine.
I am but an egg
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #6 on: June 17, 2014, 04:52:36 am »
I don't have a use case where I need that at the moment, and in fact I will probably start wth RS232. Still I wanted to research the topic in case I need to go GPIB in the future.
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #7 on: June 17, 2014, 05:05:06 am »
So armed with the Agilent part number (82357b), I was able to find some info on the web about this. So GPIB is a very low level, simple hardware interface. That can be mapped to USB in any number of ways. The specific protocol on the PC side is as important and the hardware interface, as it determines what PC software is going to be compatible with it.

Dave is right that the 82357b is the way to go, as the protocol this uses appears to be supported fairly widely. Note that there are also some Chinese clones of the 82357b that in theory should work as well. However, given the small cost difference, it's probably better to go with the Agilent part.

There is also an alternative from Prologix, but seems like support for that isn't as widespread.
 

Offline davorin

  • Supporter
  • ****
  • Posts: 926
  • Country: ch
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #8 on: June 17, 2014, 08:26:51 am »
If you even want to go cheaper then there is a Prologix clone and firmware reports itself as Prelogix (o;

One version was published in the Elektor magazine...and the one I use now can be found at:

http://www.dalton.ax/gpib/

Though soldering iron is needed (o;


 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #9 on: June 17, 2014, 09:13:06 am »
If you even want to go cheaper then there is a Prologix clone and firmware reports itself as Prelogix (o;

I would be concerned about driver support. Seem like Agilent are keeping their drivers up-to-date for latest versions of windows.
 

Offline davorin

  • Supporter
  • ****
  • Posts: 926
  • Country: ch
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #10 on: June 17, 2014, 09:18:26 am »
Well..you're right (o;

If someone for example can afford LabView then there is no need to go for a cheap GPIB-USB adapter...

But there are also some people who can't afford it...so it also makes sense to go with a cheap or self-built adapter ;-)
 

Offline neslekkim

  • Super Contributor
  • ***
  • Posts: 1305
  • Country: no
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #11 on: June 17, 2014, 10:59:12 am »
What about this one?

https://www.tindie.com/products/galvant_industries/gpibusb-adatper-rev3/

And those agilents, can those be used with other gpib stuff?, say Keithley 2000 series?
 

Offline davorin

  • Supporter
  • ****
  • Posts: 926
  • Country: ch
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #12 on: June 17, 2014, 11:12:11 am »
Looks nicely built....similar to the other project I mentioned..only difference is it uses a PIC18F4520 (no internal USB) instead of the PIC18F2550. Seems like a small FTDI USB-to-seriel chip there as well...
Think the main reason is that other projects are based on a sample USB code from Microchip, which can't be modified and published together.

Another difference, proper GPIB line drivers...but then again...this would also require external 5V supply as the USB can only deliver 0.5A, whereas driving the maximum allowed devices needs more power...

The advantage of the PIC18F2550 version is, that you can specify any baudrate you like, as there isn't any ;-)

 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #13 on: June 17, 2014, 11:36:49 am »
And those agilents, can those be used with other gpib stuff?, say Keithley 2000 series?
Yes.
The GPIB side is just that GPIB, so if an instrument has a port for it it'll work.

@motocoder
You mentioned Linux, if you plan to use it on that OS you may want to look into it further not sure if the  82357B works well or at all in Linux (driver issues)

If Linux is an OS you may need look for posts by a member here that goes under the name Bingo600. He's had success with one of the cheaper, third party adaptors and posted updates or at least instructions on making updated drivers on Linux including example python scripts for data logging
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #14 on: June 17, 2014, 11:41:26 am »
Cant find the link right now but he also managed to get the particular usb/gpib adapter he had to work on a RASPi storing data on the sd card
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #15 on: June 17, 2014, 12:03:12 pm »
@motocoder
You mentioned Linux, if you plan to use it on that OS you may want to look into it further not sure if the  82357B works well or at all in Linux (driver issues)
Scrap that, it appears the 82357B is fine on Linux.
Here's the post about it, the raspi and other assorted Linux things
https://www.eevblog.com/forum/reviews/using-a-raspberry-pi-with-linux-gpib-and-a-beiming-or-agilent-usb-gpib-adapter/
 

Online Dr. Frank

  • Super Contributor
  • ***
  • Posts: 2425
  • Country: de
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #16 on: June 17, 2014, 12:38:32 pm »
I recently picked up a used Agilent 34401a DMM off of eBay. I love the meter and want to take advantage of it's remote control capability.

The meter has RS232 and GPIB interface, neither of which my PC has. I do think I have a USB -> Serial converter lying around somewhere, so I was thinking I would use that. Another option would be to get some sort of GPIB to USB converter or a GPIB board for my PC.

Is there any advantage to going the GPIB route here?

Thanks



Well, your PC normally has RS232 on the mainboard, only the D sub ( DB 9) plug is not assembled on the rear panel of your PC.

If you have some D sub 9 jacks in your stock, then it's cheap and easy to interface the HP34401A.

Decades ago, I even connected an HP48SX calculator to this instrument, so I think, the minimum 3 lines interface (RX, TX, GND) is sufficient for steering.

If you go for GPIB, you may better pick a National Instruments PCI bus card.
As surplus they may be available for less than 100€/$, plus cable(s).
That's much better, and you later can extend your system with other instruments.   

Frank
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2283
  • Country: ca
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #17 on: June 17, 2014, 12:54:42 pm »
Dave - thanks. Do you have any recommendations regarding how to interface my PC to GPIB? I see a number of used Agilent GPIB to USB converters (cable plus a small converter box in one) on eBay, but they are relatively pricey (~$150).
I recommend the Agilent USB GPIB. I haven't used mine much, but it seems to work very well so far. In contrast to lower cost (Prologix) or home-made ones, this one has VISA drivers, GPIB32.dll, and an Activex component for scripting (I wonder if I'm the only one using that...). This adapter will work with Agilent software, as well as Labview, etc.  I got mine for a little less than $150 shipped from the far east, and it was brand new in a factory sealed box.
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: au
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #18 on: June 17, 2014, 01:07:11 pm »
If you go for GPIB, you may better pick a National Instruments PCI bus card.
As surplus they may be available for less than 100€/$, plus cable(s).
That's much better, and you later can extend your system with other instruments.   

I considered the NI internal cards over agilent's usb offering but the mobility of a usb adaptor (laptops etc) won me over
 

Offline davorin

  • Supporter
  • ****
  • Posts: 926
  • Country: ch
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #19 on: June 17, 2014, 01:10:11 pm »
Besides the fact that many GPIB cards found on ebay are either PCI or ISA bus only...

Think I will order one of those "strange" 82357B adapters from China and crack it open to see what's inside (o;

 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: dk
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #20 on: June 17, 2014, 07:34:21 pm »
Besides the fact that many GPIB cards found on ebay are either PCI or ISA bus only...

Think I will order one of those "strange" 82357B adapters from China and crack it open to see what's inside (o;

Make sure you order a Beiming USB->GPIB
This one is compatible with the Agilent Adapter , under both Windows & Linux , even uses their drivers.

Don't get the "gold clone" it won't work on linux

http://www.ebay.com/itm/S82357-GPIB-USB-interface-Agilent-82357B-compatible-/181438006375

F is faster gpib->usb xfer (it uses DMA internally)
http://www.ebay.com/itm/F82357-GPIB-USB-interface-compatible-with-Agilent-82357B-/181438007391


And AlfBaz got my RasPI Thread correct (Where i test both the Agilent & the Beiming using linux-gpib on a RasPI)
https://www.eevblog.com/forum/reviews/using-a-raspberry-pi-with-linux-gpib-and-a-beiming-or-agilent-usb-gpib-adapter/

Well actually to be fair , the Beiming has a slight advantage on linux , as you don't need to load the Agilent firmware onto it via usb. It's already on it.
But using fxload it's not much of a problem to load it if getting a real Agilent 82357B , don't get the A.



/Bingo
 

Offline davorin

  • Supporter
  • ****
  • Posts: 926
  • Country: ch
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #21 on: June 17, 2014, 07:55:38 pm »
Is there any documentation of the Beiming adapters how to control them directly under Linux?

Like there are docs/sample code available for the Prologix adapters...or the Prelogix clone firmware where I can do a simple

HCSU DEV,BMP
SCREEN_DUMP

and write the output to a bmp file...

Wonder if there is a big difference in speed when dumping the BMP file from My LeCroy 9354AL either with the S or F version.

Do you have experience with similar DSOs?

« Last Edit: June 17, 2014, 07:59:05 pm by davorin »
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #22 on: June 18, 2014, 07:46:42 am »
Looks nicely built....similar to the other project I mentioned..only difference is it uses a PIC18F4520 (no internal USB) instead of the PIC18F2550. Seems like a small FTDI USB-to-seriel chip there as well...

Think the main reason is that other projects are based on a sample USB code from Microchip, which can't be modified and published together.

Another difference, proper GPIB line drivers...but then again...this would also require external 5V supply as the USB can only deliver 0.5A, whereas driving the maximum allowed devices needs more power...

The advantage of the PIC18F2550 version is, that you can specify any baudrate you like, as there isn't any ;-)

Looks like the FTDI chip is an FT230X. THat's really too bad. I wish more people would use an FT232H. You can get a lot more throughput out of it, and because it comes with a DLL that abstracts the driver, you don't need to write a custom driver for it. There's even an open source equivalent.
 

Offline motocoderTopic starter

  • Supporter
  • ****
  • Posts: 770
  • Country: us
  • Electrical Engineer
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #23 on: June 18, 2014, 07:48:00 am »
Cant find the link right now but he also managed to get the particular usb/gpib adapter he had to work on a RASPi storing data on the sd card

Sort of an extended data logger? Pretty cool.
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2028
  • Country: dk
Re: 34401a interface to PC - RS232 or GPIB?
« Reply #24 on: June 19, 2014, 07:19:46 pm »
Is there any documentation of the Beiming adapters how to control them directly under Linux?

The Beiming is like the Agilent , controlled by linux-gpib.
Look up the doc for linux-gpib
http://sourceforge.net/projects/linux-gpib/files/latest/download?source=files

Another program that uses linux-gpib is gpib-utils
http://sourceforge.net/projects/gpib-utils/files/latest/download?source=files

This one shows nice examples of how to program via linux-gpib.

I'm currently using playing with python for accessing my instruments via linux-gpib , as there areseveral language bindings built into linux-gpib.

/Bingo
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf