Szalata, Zenon M. wrote:
I am extremely new to EPICS. To learn EPICS, I am trying to created an IOC application which would run on linux RedHat Enterprise 3 platform. I have installed a National Instruments PCI-GPIB interface to which I have connected HP34401A multimeter. I have installed on the same computer National Instruments software package NI4882, which I believe is the device driver for the PCI-GPIB interface. In the package NI supplied two test programs, which I built and they work.
I followed a tutorial "How to create EPICS device support for a simple serial or GPIB device" by Eric Norum to create a support module for the HP multimeter. Then I created a test application, as it is described in the same tutorial. I start the test application and this is what I get:
!--------- start of program output ---------------------------------
zms@esaux1 $ ../../bin/linux-x86/hpmm st.cmd
#!../../bin/linux-x86/hpmm
## You may have to change hpmm to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet(ARCH,"linux-x86")
epicsEnvSet(IOC,"iochpmm")
epicsEnvSet(TOP,"/afs/slac.stanford.edu/g/esa/esalib/app/epics/hpmm")
epicsEnvSet(HPMM,"/afs/slac/g/esa/esalib/app/epics/modules/hpmm")
epicsEnvSet(ASYN,"/afs/slac/g/esa/esalib/app/epics/support/asyn/4-3")
epicsEnvSet(EPICS_BASE,"/afs/slac/package/epics/R3.14.6/base")
cd /afs/slac.stanford.edu/g/esa/esalib/app/epics/hpmm
## Register all support components
dbLoadDatabase("dbd/hpmm.dbd",0,0)
hpmm_registerRecordDeviceDriver(pdbbase)
## Load record instances
cd /afs/slac/g/esa/esalib/app/epics/modules/hpmm
dbLoadRecords("db/devhpmm.db","P=HPMM:,R=,L=0,A=10")
cd /afs/slac.stanford.edu/g/esa/esalib/app/epics/hpmm/iocBoot/iochpmm
iocInit()
############################################################################
### EPICS IOC CORE built on Mar 6 2005
### EPICS R3.14.6 $R3-14-6$ $2004/05/28 19:27:47$
############################################################################
Starting iocInit
2007/08/27 14:28:04.494 devSupportGpib:getDeviceInstance link 0 L0 failed asynManager:connectDevice port L0 not found
HPMM:hpmm:idn: init_record : no driver for link 0
2007/08/27 14:28:04.494 devSupportGpib:getDeviceInstance link 0 L0 failed asynManager:connectDevice port L0 not found
HPMM:hpmm:read: init_record : no driver for link 0
## Start any sequence programs
#seq sncxxx,"user=zmsHost"
iocInit: All initialization complete
epics>
!---------- end of program output ---------------------------------------
In the above, the GPIB number is 0, the instrument primary GPIB address is 10 and its secondary address is 0.
I do not know how to make a connection between the NI4882 driver and the test application. I tried something as simpleminded as including a shared library, which is in /usr/local/lib/libgpibapi.so, in the build of the test application. This had no effect. The reason I tried that is because the NI test programs used that library when binaries are linked.
Any help will be greatly appreciated.
Zen
Hi Zenon,
Within your st.cmd I didn't see a call like this:
GpibBoardDriverConfig("L0",1,0,3,0)
The parameters are:
GpibBoardDriverConfig(portName autoConnect boardIndex timeout priority)
HTH
--
Peter Mueller in
Physikalisch-Technische Bundesanstalt
Division 7.13 at Bessy II
postal address:
Physikalisch-Technische Bundesanstalt (PTB)
Abbestrasse 2-12
10587 Berlin
Germany
phone: +49 (0)30 6392-5092
fax: -5082
e-mail: [email protected]
- References:
- Soft IOC for A GPIB Instrument Szalata, Zenon M.
- Navigate by Date:
- Prev:
RE: Soft IOC for A GPIB Instrument Szalata, Zenon M.
- Next:
-- Motor move only one direction / Motor 6.2.2 / OMS58-4S / servo-star 300 -- jerome HOSSELET
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Soft IOC for A GPIB Instrument Szalata, Zenon M.
- Next:
gateway problem Yuichi ITOH
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|