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: VXI11 GPIB and asynRecord
From: Eric Williams <[email protected]>
To: [email protected]
Date: Tue, 15 Jan 2008 14:27:42 -0800
Ahhh... I found it. Turned out to be a bad cable, the last thing I'd suspect. I don't know whether to be happy I found it, or angry at how much time I spent figuring it out.
--
eric


Eric Williams wrote:
I'm trying to do something that should be simple, but is not working for reasons I can't figure out.

I want to talk to an Agilent model 53181A frequency counter via GPIB and a E2050B Ethernet gateway. The IOC is a Linux box running an EPICS 3.14.9 IOC built with asyn4-8 and vxi-11 support, with a single asynRecord record. It is almost identical to the example described here:

http://www.aps.anl.gov/epics/modules/soft/asyn/BeginnerGuideToASYN-VXI11.pdf

When I try to do even a simple "*IDN?" command, the transfer times out and no data is received. (The response from the counter should be on the order of 30 characters long.) I know I have the addressing right because I can simultaneously see activity on the E2050 status lights, and the "Remote" light on the 53181A starts to blink, indicating an error. Briefly, "GPIB Error -420" will flash on the counter's display. The manual describes error -420 as

    Query UNTERMINATED
    Indicates that a condition causing an UNTERMINATED Query error
    occurred. For example, the Counter was addressed to talk and an
    incomplete program message was received.

Also, after record processing the "Listen" indicator on the E2050 remains lit.

If anyone has any idea of what I'm doing wrong, I'd appreciate the help. Here's console output with the asynRecord debugging flags all turned on.

## You may have to change vxi11 to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet(ARCH,"linux-x86")
epicsEnvSet(IOC,"iocvxi11")
epicsEnvSet(TOP,"/home/als1/acct/ericw/vxi11ioc")
epicsEnvSet(ASYN,"/usr/local/epics/R3.14.9/base/../modules/soft/asyn")
epicsEnvSet(EPICS_BASE,"/usr/local/epics/R3.14.9/base")
cd /home/als1/acct/ericw/vxi11ioc
## Register all support components
dbLoadDatabase("dbd/vxi11.dbd")
vxi11_registerRecordDeviceDriver(pdbbase)
vxi11Configure ("cr1510g","131.243.71.15",0,0.0,"hpib",0,0)
## Load record instances
dbLoadTemplate "db/userHost.substitutions"
dbLoadRecords("db/dbSubExample.db","user=ericwHost")
dbLoadRecords("db/srfreq.db")
## Set this to see messages from mySub
#var mySubDebug 1
cd /home/als1/acct/ericw/vxi11ioc/iocBoot/iocvxi11
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.9 $R3-14-9$ $2007/02/05 16:31:45$
## EPICS Base built Oct 4 2007
############################################################################
iocInit: All initialization complete
## Start any sequence programs
#seq sncExample,"user=ericwHost"
cas warning: Configured TCP port was unavailable.
cas warning: Using dynamically assigned TCP port 34233,
cas warning: but now two or more servers share the same UDP port.
cas warning: Depending on your IP kernel this server may not be
cas warning: reachable with UDP unicast (a host's IP in EPICS_CA_ADDR_LIST)
epics> dbpr "vxi11:srfreq",4
ACKS: NO_ALARM ACKT: YES ACMD: None ADDR: 3
AINP: AOUT: READ:FREQ? AQR: 0 ASG:
ASP: 0x00000000 AUCT: autoConnect BAUD: Unknown BINP: 0
BKPT: 0x00 BOUT: 0 CNCT: Connect DBIT: Unknown
DESC: 53181A cntr sr freq DISA: 0 DISP: 0
DISS: NO_ALARM DISV: 1 DPVT: 0xd0c68c08 DRVINFO:
DSET: 0xe0025900 DTYP: asynRecordDevice ENBL: Enable
EOMR: None ERRS: 0x800c8d08 EVNT: 0 F64INP: 0
F64IV: 0 F64OUT: 0 FCTL: Unknown FLNK:CONSTANT 0
GPIBIV: 1 I32INP: 0 I32IV: 1 I32OUT: 0
IEOS: IFACE: asynOctet IFMT: ASCII IMAX: 100
IPTR: 0xb00b8d08 LCNT: 0 LSET: 0x50168d08 MCTL: Unknown
MLIS: 0x000000000000000000000000 MLOK: 0xb8c68c08 NAME: vxi11:srfreq
NAWT: 0 NORD: 0 NOWT: 80 NRRD: 0
NSEV: NO_ALARM NSTA: NO_ALARM OCTETIV: 1 OEOS:
OFMT: ASCII OMAX: 100 OPTIONIV: 1 OPTR: 0xb0c88c08
PACT: 0 PCNCT: Connect PHAS: 0 PINI: NO
PORT: cr1510g PPN: 0x00000000 PPNR: 0x00000000 PRIO: LOW
PROC: 0 PRTY: Unknown PUTF: 0 RDES: 0x68988b08
REASON: 0 RPRO: 0 RSET: 0x00035900 SBIT: Unknown
SCAN: Passive SDIS:CONSTANT SEVR: NO_ALARM SOCK:
SPR: 0 SPVT: 0x00000000 STAT: NO_ALARM TB0: On
TB1: Off TB2: Off TB3: Off TB4: Off
TFIL: Unknown TIB0: Off TIB1: Off TIB2: Off
TIME: <undefined> TINP: TIOM: 0 TMOD: Write/Read
TMOT: 1 TMSK: 1 TPRO: 0 TSE: 0
TSEL:CONSTANT TSIZ: 80 UCMD: None UDF: 0
UI32INP: 0 UI32IV: 0 UI32MASK: 4294967295
UI32OUT: 0 VAL:
epics> dbpf "vxi11:srfreq.TB1","On"
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TB2","On"
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TB3","On"
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TB4","On"
2008/01/10 18:43:08.330 cr1510g 3 exception 3 occurred calling exceptionUser
2008/01/10 18:43:08.331 vxi11:srfreq: exception 3
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TIB0","On"
2008/01/10 18:43:22.816 cr1510g 3 exception 4 occurred calling exceptionUser
2008/01/10 18:43:22.816 vxi11:srfreq: exception 4
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TIB1","On"
2008/01/10 18:43:27.200 cr1510g 3 exception 4 occurred calling exceptionUser
2008/01/10 18:43:27.200 vxi11:srfreq: exception 4
DBR_STRING: On
epics> dbpf "vxi11:srfreq.TIB2","On"
2008/01/10 18:43:33.801 cr1510g 3 exception 4 occurred calling exceptionUser
2008/01/10 18:43:33.801 vxi11:srfreq: exception 4
DBR_STRING: On
epics> dbpf "vxi11:srfreq.AOUT","*IDN?"
2008/01/10 18:43:52.756 cr1510g addr 3 queueRequest priority 0 not lockHolder
2008/01/10 18:43:52.756 cr1510g schedule queueRequest timeout
DBR_STRING: *IDN?
2008/01/10 18:43:52.756 cr1510g callback
2008/01/10 18:43:52.756 vxi11:srfreq: asynCallbackProcess, state=3
2008/01/10 18:43:52.756 vxi11:srfreq flush
2008/01/10 18:43:52.756 cr1510g 3 vxiWrite numchars 5
epics> 2008/01/10 18:43:52.763 cr1510g 3 vxiWrite
*IDN?
*IDN?


2a 49 44 4e 3f
2008/01/10 18:43:52.763 vxi11:srfreq: nwrite=5, status=0, nawt=5
*IDN?
*IDN?

2a 49 44 4e 3f
2008/01/10 18:43:53.783 vxi11:srfreq: inlen=0, nbytesTransfered=0, ntranslate=0


epics> dbpr "vxi11:srfreq",4
ACKS: MAJOR ACKT: YES ACMD: None ADDR: 3
AINP: AOUT: *IDN? AQR: 0 ASG:
ASP: 0x00000000 AUCT: autoConnect BAUD: Unknown BINP: 0
BKPT: 0x00 BOUT: 0 CNCT: Connect DBIT: Unknown
DESC: 53181A cntr sr freq DISA: 0 DISP: 0
DISS: NO_ALARM DISV: 1 DPVT: 0xd0c68c08 DRVINFO:
DSET: 0xe0025900 DTYP: asynRecordDevice ENBL: Enable
EOMR: None ERRS: 0x800c8d08 EVNT: 0 F64INP: 0
F64IV: 0 F64OUT: 0 FCTL: Unknown FLNK:CONSTANT 0
GPIBIV: 1 I32INP: 0 I32IV: 1 I32OUT: 0
IEOS: IFACE: asynOctet IFMT: ASCII IMAX: 100
IPTR: 0xb00b8d08 LCNT: 0 LSET: 0x50168d08 MCTL: Unknown
MLIS: 0x000000000000000000000000 MLOK: 0xb8c68c08 NAME: vxi11:srfreq
NAWT: 5 NORD: 0 NOWT: 80 NRRD: 0
NSEV: NO_ALARM NSTA: NO_ALARM OCTETIV: 1 OEOS:
OFMT: ASCII OMAX: 100 OPTIONIV: 1 OPTR: 0xb0c88c08
PACT: 0 PCNCT: Connect PHAS: 0 PINI: NO
PORT: cr1510g PPN: 0x00000000 PPNR: 0x00000000 PRIO: LOW
PROC: 0 PRTY: Unknown PUTF: 0 RDES: 0x68988b08
REASON: 0 RPRO: 0 RSET: 0x00035900 SBIT: Unknown
SCAN: Passive SDIS:CONSTANT SEVR: MAJOR SOCK:
SPR: 0 SPVT: 0x00000000 STAT: READ TB0: On
TB1: On TB2: On TB3: On TB4: On
TFIL: Unknown TIB0: On TIB1: On TIB2: On
TIME: 2008-01-10 18:43:53.783324000 TINP: TIOM: 7
TMOD: Write/Read TMOT: 1 TMSK: 31 TPRO: 0
TSE: 0 TSEL:CONSTANT TSIZ: 80 UCMD: None
UDF: 0 UI32INP: 0 UI32IV: 0 UI32MASK: 4294967295UI32OUT: 0 VAL:
epics>





References:
VXI11 GPIB and asynRecord Eric Williams

Navigate by Date:
Prev: Re: gateway throttling events? Janet Anderson
Next: asyn file interface Emmanuel Mayssat
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: Re: VXI11 GPIB and asynRecord Eric Williams
Next: libgpib: IBOPENDEV ioctl failed 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 ·