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: error in communicating to the GPIB device with NI-PCI board
From: Stefan Heim <[email protected]>
To: [email protected]
Date: Fri, 18 Jan 2008 11:59:59 +0100
Hello,

On Freitag, Jan 18 2008, zhangdemin99 wrote:
>   I am trying to communicate the GPIB device with a NI-PCI board.
> I have built base-3.14.9,StreamaDevice-2-3,asyn4-7 with LINUX_GPIB=yes
> ,linux-gpib-3.2.09
> and the  board driver NI-488.2-beta-2.5.1b0 on the RHEL4.

You should have something like

=== /etc/gpib.conf ===
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

        master = yes
}
======================

in /etc/gpib.conf. You need to use something else than 0 for the pad (primary 
address) setting of the board, if your device itself really has address 0. 
Verify your setup with ibtest!

>   When I run the application, there are always errors.especially
> "Command GpibBoardDriverConfig not found".
> [fel@localhost iocPSM6003]$ ../../bin/linux-x86/PSM6003 st.cmd
> #!../../bin/linux-x86/PSM6003
> ## You may have to change PSM6003 to something else
> ## everywhere it appears in this file
> < envPaths
> epicsEnvSet(ARCH,"linux-x86")
> epicsEnvSet(IOC,"iocPSM6003")
> epicsEnvSet(TOP,"/home/fel/psm6003/psm6003")
> epicsEnvSet(PSM6003,"/home/fel/psm6003/module/psm6003")
> epicsEnvSet(ASYN,"/home/fel/psm6003/asyn4-7")
> epicsEnvSet(EPICS_BASE,"/home/fel/psm6003/base")
> epicsEnvSet ("STREAM_PROTOCOL_PATH", "../../PSM6003APP/Db:.")
> ## Register all support components
> dbLoadDatabase("../../dbd/PSM6003.dbd",0,0)
> PSM6003_registerRecordDeviceDriver(pdbbase)
> ## Load record instances
> dbLoadRecords("../../db/devPSM6003.db","P=PSM6003:,R=,L=0,A=0")

This looks wrong to me. You have to pass the "L0" name to the database. Are 
you sure your device is at address 0? For your device at GPIB address 15, it 
should look like

dbLoadRecords("../../db/devPSM6003.db","P=PSM6003:,PORT=L0,ADDR=15")


> GpibBoardDriverConfig("L0",1,0,3,0)
> st.cmd -- Line 15 -- Command GpibBoardDriverConfig not found.

You are missing
PSM6003_DBD += drvLinuxGpib.dbd
in PSM6003App/src/Makefile. See my lengthy post in your other thread.

> iocInit()
> Starting iocInit
> ###########################################################################
># ## EPICS R3.14.9 $R3-14-9$ $2007/02/05 16:31:45$
> ## EPICS Base built Jan 17 2008
> ###########################################################################
># 2008/01/18 17:13:41.457 Businterface 'L0' not found for 'query-current'
> 2008/01/18 17:13:41.458 query-current: Can't attach to bus L0 0
> 2008/01/18 17:13:41.458 query-current: Record initialization failed
> 2008/01/18 17:13:41.458 Businterface 'L0' not found for 'setcurrent'
> 2008/01/18 17:13:41.458 setcurrent: Can't attach to bus L0 0
> 2008/01/18 17:13:41.458 setcurrent: Record initialization failed
> iocInit: All initialization complete
> ## Start any sequence programs
> #seq sncPSM6003,"user=fel"
> The CA server's beacon address list was empty after initialization?
> epics>

That final message regarding CA server beacon address looks suspicious, but 
can maybe ignored.

Again: make sure you can talk to the device using ibtest first.

-Stefan

-- 
Stefan Heim, PhD Student X-ray microscopy
BESSY mbH, Albert-Einstein-Straße 15, D-12489 Berlin, Germany
voice: +49 30 6392 3177 fax: + 49 30 6392 4757 e-mail: [email protected]
BESSY mbH - Mitglied der Leibniz Gemeinschaft
Vorsitzender des Aufsichtsrates: Prof. Dr. Dr. h.c. mult. Joachim Treusch
Geschäftsführer: Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Prof. Dr. Eberhard 
Jaeschke 
Sitz Berlin, AG Charlottenburg, HRB 14635


Replies:
Re: error in communicating to the GPIB device with NI-PCI board Stefan Heim
References:
error in communicating to the GPIB device with NI-PCI board zhangdemin99

Navigate by Date:
Prev: error in communicating to the GPIB device with NI-PCI board zhangdemin99
Next: Re: CA connection management problem Andrew Johnson
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: error in communicating to the GPIB device with NI-PCI board zhangdemin99
Next: Re: error in communicating to the GPIB device with NI-PCI board Stefan Heim
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 ·