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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: read status nin "" 0 error with |
From: | Ana Malagon <[email protected]> |
To: | Eric Norum <[email protected]> |
Cc: | EPICS mailing list <[email protected]> |
Date: | Wed, 10 Dec 2014 13:32:52 -0800 |
############################################################################
## Start any sequence programs
#seq sncxxx,"user=admxHost"
epics> 2014/12/10 13:11:11.704 L0 19 prologixRead 7 EOM:0x6
2014/12/10 13:11:11.704 SDCARLO:GET:POW gpibRead nchars 7
2014/12/10 13:11:11.704 SDCARLO:GET:POW gpibRead
2014/12/10 13:11:11.704 asynManager::portThread port=L0 callback
2014/12/10 13:11:11.704 SDCARLO:GET:ON_OFF queueCallback
2014/12/10 13:11:11.704 SDCARLO:GET:ON_OFF prepareToRead
2014/12/10 13:11:11.704 L0 19 prologixWrite
2014/12/10 13:11:11.705 SDCARLO:GET:ON_OFF writeIt
2014/12/10 13:11:11.818 L0 19 prologixRead 1 EOM:0x6
2014/12/10 13:11:11.818 SDCARLO:GET:ON_OFF gpibRead nchars 1
2014/12/10 13:11:11.818 SDCARLO:GET:ON_OFF gpibRead
2014/12/10 13:11:11.818 asynManager::portThread port=L0 callback
2014/12/10 13:11:11.818 SDCARLO:IDN queueCallback
2014/12/10 13:11:11.818 SDCARLO:IDN prepareToRead
2014/12/10 13:11:11.818 L0 19 prologixWrite
2014/12/10 13:11:11.818 SDCARLO:IDN writeIt
2014/12/10 13:11:11.930 L0 19 prologixRead 43 EOM:0x6
2014/12/10 13:11:11.930 SDCARLO:IDN gpibRead nchars 43
2014/12/10 13:11:11.930 SDCARLO:IDN gpibRead
epics> dbpr SDCARLO:GET:FREQ
ASG: DESC: Query Frequency ouput MHz DISA: 0
DISP: 0 DISV: 1 NAME: SDCARLO:GET:FREQ
RVAL: 0 SEVR: NO_ALARM STAT: NO_ALARM SVAL: 0
TPRO: 0 VAL: 0
epics> dbpf SDCARLO:SET:FREQ 112014/12/10 13:11:54.927 SDCARLO:SET:FREQ queueWriteRequest
2014/12/10 13:11:54.927 L0 addr 19 queueRequest priority 2 not lockHolder
2014/12/10 13:11:54.927 L0 schedule queueRequest timeout
2014/12/10 13:11:54.927 asynManager::portThread port=L0 callback
2014/12/10 13:11:54.927 SDCARLO:SET:FREQ queueCallback
DBR_DOUBLE: 11
epics> 2014/12/10 13:11:54.927 SDCARLO:SET:FREQ gpibWrite
2014/12/10 13:11:54.927 SDCARLO:SET:FREQ writeMsgDouble
2014/12/10 13:11:54.927 L0 19 prologixWrite
2014/12/10 13:11:54.927 SDCARLO:SET:FREQ writeIt
2014/12/10 13:11:54.927 SDCARLO:GET:FREQ queueReadRequest
2014/12/10 13:11:54.927 L0 addr 19 queueRequest priority 2 not lockHolder
2014/12/10 13:11:54.927 L0 schedule queueRequest timeout
2014/12/10 13:11:54.927 asynManager::portThread port=L0 callback
2014/12/10 13:11:54.927 SDCARLO:GET:FREQ queueCallback
2014/12/10 13:11:54.927 SDCARLO:GET:FREQ prepareToRead
2014/12/10 13:11:54.927 L0 19 prologixWrite
2014/12/10 13:11:54.927 SDCARLO:GET:FREQ writeIt
2014/12/10 13:11:55.080 L0 19 prologixRead 14 EOM:0x6
2014/12/10 13:11:55.080 SDCARLO:GET:FREQ gpibRead nchars 14
2014/12/10 13:11:55.080 SDCARLO:GET:FREQ gpibRead
dbpr SDCARLO:GET:FREQ
ASG: DESC: Query Frequency ouput MHz DISA: 0
DISP: 0 DISV: 1 NAME: SDCARLO:GET:FREQ
RVAL: 0 SEVR: NO_ALARM STAT: NO_ALARM SVAL: 0
TPRO: 0 VAL: 0
Would changing the -1 to 19 in the existing commands in the existing location work, too?On Dec 10, 2014, at 12:42 PM, Mark Rivers <[email protected]> wrote:--------
WARNING: At least one of the links in the message below goes to an IP address (e.g.10.1.1.1), which could be malicious. To learn how to protect yourself, please go here: https://commons.lbl.gov/x/_591B
--------> I’m at a loss then. I have no idea why enabling ASYN diagnostic messages is having no effect.I know why it is happening. Ana is doing this before iocInit.asynSetTraceMask("L0", -1, 0xFF)The problem is that using the address of -1 on asynSetTraceMask set the trace mask of all device address that are currently connected to that asyn port. However, at that point the GPIB device at address 19 has not yet been connected, so its asynTraceMask does not get set.The solution is to move that line to after iocInit. You won’t see any trace information that should happen as part of iocInit, but you will see everything after that command is issued.We might want to change the way asynSetTraceMask($(PORT), -1, MASK) works to avoid this confusion. Someone else ran into this a couple of weeks ago.Mark--
Eric Norum
[email protected]