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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | read status nin "" 0 error with |
From: | Ana Malagon <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 10 Dec 2014 09:53:01 -0800 |
Hi, I'm trying to set up EPICS support for a GPIB device with the asyn module - my device is a Hewlett Packard 83620B Synthesized Sweeper and I'm using a Prologix GPIB-Ethernet adaptor. I've followed the steps in this tutorial (http://www.aps.anl.gov/epics/modules/soft/asyn/R4-12/HowToDoSerial/tutorial.pdf) to set up the device support files and ioc; I can successfully write values to the device and the identity command works, but whenever I try to read values EPICS returns a " read status "" nin 0 " error.
I suspect this is a end-of-string issue but from what I can tell, the Prologix driver I'm using doesn't support the " asynOctetSetInputEos("L0",-1,"\n") " command. Does anyone have any other ideas for workarounds I might try? Thanks! - Ana
Code below from st.cmd:
#!../../bin/linux-x86_64/SdCarLO
## You may have to change SdCarLO to something else
## everywhere it appears in this file
< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocSdCarLO")
epicsEnvSet("TOP","/home/admx/admxepics/iocs/SdCarLO")
epicsEnvSet("ASYN","/home/admx/epics/asyn4-22")
epicsEnvSet("PROLOGIXGPIB","/home/admx/admxepics/devices/PrologixGPIB")
epicsEnvSet("SDCARLO","/home/admx/admxepics/devices/ag83620b")
epicsEnvSet("EPICS_BASE","/home/admx/epics/base-3.14.12.4")
## Register all support components
dbLoadDatabase "dbd/SdCarLO.dbd"
SdCarLO_registerRecordDeviceDriver pdbbase
prologixGPIBConfigure("L0", "10.95.101.74:1234")
##asynOctetSetInputEos("L0",-1,"\n")
##asynOctetSetOutputEos("L0",-1,"\n")
asynSetTraceIOMask("L0", -1, 0x2)
asynSetTraceMask("L0", -1, 0x9)
## Load record instances
cd /home/admx/admxepics/devices/ag83620b
dbLoadRecords("db/devAG83620B.db","SIGGEN=SDCARLO, L=0, A=19")
cd /home/admx/admxepics/iocs/SdCarLO/iocBoot/iocSdCarLO
iocInit
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built May 20 2014
############################################################################
## Start any sequence programs
#seq sncxxx,"user=admxHost"
epics> 2014/12/10 09:40:06.444 SDCARLO:GET:FREQ read status "" nin 0
2014/12/10 09:40:06.444 SDCARLO:GET:FREQ error.