EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: libgpib: IBOPENDEV ioctl failed
From: Emmanuel Mayssat <[email protected]>
To: zhangdemin99 <[email protected]>
Cc: [email protected]
Date: Fri, 11 Jan 2008 09:55:39 -0800
On Fri, 2008-01-11 at 18:18 +0800, zhangdemin99 wrote:
> Dear all,
>  I am trying to communicate the gpib device with asyn.when running
> application,there is no error. 

Are you saying you can start the ioc without it crashing?
Or are you saying that you can communicate with the device if you do not
use the dbpf function?


> But when I use the command dpf,it says:
> epics> dbl
> PSM6003:PSM6003Record:current
> PSM6003:PSM6003Record:current-step
> epics> dbpf PSM6003:PSM6003Record:current-step 0.5
> DBR_STRING:          0.5
> epics> libgpib: IBOPENDEV ioctl failed
> libgpib: ibfind failed to get descriptor
> 2008/01/11 15:30:20.803 L0 addr -1 : EDVR 0: OS error.
> 2008/01/11 15:30:20.804  151042680 autoConnect could not connect

Check iberr error codes
http://linux-gpib.sourceforge.net/doc_html/r530.html
You problem seems to be at the OS level.
Do you have read/write rights on the /dev/gpib* files?

>  
> The gpib_config file is:
> interface {
>         minor = 0     
>         board_type = "ni_pci"   
>         name = "L0"     
>         pad = 0 
>         sad = 0 
>         timeout = T3s   
>         eos = 0x0a      
>         set-reos = yes  
>         set-bin = no    
>         set-xeos = no   
>         set-eot = yes   
>         base = 0x310               
>         irq  = 7      
>         dma  = 0  
>         master = yes
> 
> }

Try a stripped down version of your configuration file like the one
below. Where did you get your irq/base/dma settings? You probably don't
need them anyway.

interface {
        minor = 0               /* interface config for /dev/gpib0 */
        board_type = "ni_pci"   /* type of interface board being used */
        name = "L0"             /* optional name, allows you to get a
board descriptor using ibfind() */
        pad = 0                 /* primary address of interface */
        eos = 0x0a              /* end of string is line-feed */
        set-eot = yes           /* send EOI at end of writes */
        timeout = T3s           /* timeout for commands */
        master = yes            /* board is system controller */
}

Cheers,
--
E



References:
libgpib: IBOPENDEV ioctl failed zhangdemin99

Navigate by Date:
Prev: libgpib: IBOPENDEV ioctl failed zhangdemin99
Next: Re: VXI11 GPIB and asynRecord Eric Williams
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: libgpib: IBOPENDEV ioctl failed zhangdemin99
Next: erro when writing to the GPIB device on softIOC zhangdemin99
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·