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  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: Re: How to use asyn with linux-GPIB
From: Feng Laurence <feng.laurence@gmail.com>
To: Rod Nussbaumer <bomr@triumf.ca>
Cc: tech-talk@aps.anl.gov
Date: Wed, 16 Mar 2011 10:01:38 +0800
Hi Nussbaumer

Actually, I do plant to use StreamDevice in this case, and I'm already
using it to control devices via RS232. But when I try to setup the
GPIB port which can be later refer by StreamDevice, I got the errors
mentioned above.

Can you offer me some details on the use of StreamDevice with GPIB
port? Is there any options or command I missed besides
"GpibBoardDriverConfig"?


On Wed, Mar 16, 2011 at 12:15 AM, Rod Nussbaumer <bomr@triumf.ca> wrote:
> Laurence:
>
> I find it much more convenient to use streamDevice in conjunction with asyn
> for communicating with GPIB devices. Linux-gpib with asyn and streamDevice
> is the standard model used at TRIUMF for all GPIB communications in EPICS.
>
> Like any communications channel used by asyn, the startup script must
> configure the port driver. In your case it would be the GPIB driver. The
> details for setup of the linux-GPIB port driver are outlined in
>
> 'documentation/asynDriver.html#PortDrivers'
>
> included in the asyn package.
>
>
> Rod Nussbaumer
> ISAC Controls, TRIUMF
> Vancouver, Canada
>
>
>
> Feng Laurence wrote:
>>
>> Hi everyone~
>> I'm trying to connect a scope via linux-GPIB. The driver had been
>> setup and read/write to the scope was successfully tested with
>> "ibtest"
>>
>> But when typing in iocsh the command
>> GpibBoardDriverConfig("L2",1,0,3,0)
>>
>> I got the error:
>> 2011/03/14 21:48:44.176 L2 addr -1 : EDVR 0: OS error.
>> 2011/03/14 21:48:44.176 L2 addr -1 : EDVR 0: OS error.
>> ........
>> libgpib: invalid descriptor
>> libgpib: invalid descriptor
>> libgpib: invalid descriptor
>> ........ alot of repeat lines.......
>>
>> Looks like the GPIB device address was not set correctly. However, I
>> can find no hints in the asyn document for the problem. Is there
>> anything I missed here?
>>
>>
>> --
>> Laurence Feng
>> Superconducting Radio Frequency Group
>> State Key Laboratory of Nuclear Physics and Technology
>> Peking University, 302 Chengfu Road
>> Beijing 100871 China
>>
>
>



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

Replies:
Autosave config file Abadie Lana
References:
How to use asyn with linux-GPIB Feng Laurence
How to use asyn with linux-GPIB Feng Laurence
Re: How to use asyn with linux-GPIB Rod Nussbaumer

Navigate by Date:
Prev: Re: class library header file naming and install conventions Bruce Hill
Next: Autosave config file Abadie Lana
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: How to use asyn with linux-GPIB Eric Norum
Next: Autosave config file Abadie Lana
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·