g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: Re: linux-gpib with asyn
From: Feng Laurence <feng.laurence@gmail.com>
To: "Wilkins, Stuart" <swilkins@bnl.gov>
Cc: tech-talk@aps.anl.gov
Date: Mon, 9 Jan 2012 23:43:55 +0800
Hi Stuart!
I had meet the same problem as yours. I have an Agilent 82357B
USB-GPIB converter plugged in a Linux PC, and I use
Linux-GPIB/StreamDevice to communication with an Agilent frequency
counter.
The portName problems had troubled me for some days, and then I dig in
the source and found the same solution as yours.

For the primary address problem, StreamDevice User's Guide had
mentioned a bus address parameter in the record file, I guest this may
be the solution~
"@file protocol bus [address [parameters]]"
http://epics.web.psi.ch/software/streamdevice/doc/setup.html#rec

As for the last problem you mentioned, Linux-GPIB does work on my
machine, except that the 82357B USB-GPIB converter does not recognise
"\n" as an EOS signal. And the driver keep printing the EOS error.
Have you debugged the driver? Or maybe you can just modify the
StreamDevice format string to go around this problem?

Best wishes

On Mon, Jan 9, 2012 at 9:28 PM, Wilkins, Stuart <swilkins@bnl.gov> wrote:
> Hi!
>
> I have been using linux-gpib and asyn (and StreamDevice) for communication
> with Keithley Electrometers. I have one comment on the documentation and one
> bug which I would like to see if anyone else has seen.
>
> Firstly, according to the asyn documentation the following command at the
> iocsh sets up the board.
>
> GpibBoardDriverConfig(portName,autoConnect,BoardIndex,timeout,priority)
>
> From this documentation, it looks like you assign the GPIB board with the
> integer "board index", however after about 2 hrs of trying to get this
> working, I delved into the souce code for this driver. In fact, this is not
> the behavior in the code, the port driver tries to open the gpib card with
> the same name as the portName as defined in /etc/gpib.conf. I think
> (although in places the code is fairly cryptic) it is only if you open a
> certain gpib address that it uses board index, but I cannot find the config
> to give the primary and secondary address at the iocsh. It might be a good
> idea to update this in the asyn documentation (or at least clarify it!)
>
> Having got past this stage, I noticed that some of my communications are
> being garbled, with replies returning where the first character is NULL
> [chr$(0)] instead of the correct character. Has anyone seen this behavior. I
> am not sure if it is due to the linux-gpib driver, asyn or the Keithley. I
> plan to put another device on the bus to see if it is just this combination.
> Is anyone out there using this combination?
>
> Best wishes,
> Stuart



-- 
Laurence Feng
Superconducting Radio Frequency Group
State Key Laboratory of Nuclear Physics and Technology
Peking University, 302 Chengfu Road
Beijing 100871 China

Replies:
Re: linux-gpib with asyn Dirk Zimoch
References:
linux-gpib with asyn Wilkins, Stuart

Navigate by Date:
Prev: linux-gpib with asyn Wilkins, Stuart
Next: Any CAMAC users left? Paul Sichta
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: linux-gpib with asyn Wilkins, Stuart
Next: Re: linux-gpib with asyn Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·