Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: cothread ca_nothing
From: "Shen, Guobao" <shengb@bnl.gov>
To: "'tech-talk'" <tech-talk@aps.anl.gov>, michael.abbott@diamond.ac.uk
Date: Tue, 06 Mar 2012 12:41:08 -0500
Hi Michael,
Recently I found that in cothread, if there is an exception in caput(pv[], value[],...), cothread captures the first error message only.
Is there a solution to get all reported errors?

For example, I have a bo record as:

record(bo,"testExample") {
    field(ZNAM,"ON")
    field(ONAM,"OFF")
}

Python code:
import cothread.catools as ca
# testExample2 does not exist
pv = ['testExample','testExample2']
value = ['one','zero']
try:
    res = ca.caput(pv, value, wait=True)
except ca.ca_nothing as e:
    print(e)

The except reports only:
testExample: Channel write request failed

If put the testExample2 first like:
pv = ['testExample2','testExample']

the get:
testExample2: User specified timeout on IO operation expired

Guobao

--
Guobao Shen
Bldg. 902-B, 17 Cornell Avenue
National Synchrotron Light Source II
Brookhaven National Laboratory
Upton, New York 11973
Tel.	: +1 (631) 344 7540
Fax.	: +1 (631) 344 8085
http://www.bnl.gov/nsls2


Navigate by Date:
Prev: Re: EDM Animated Symbol widget Angle PV property question John William Sinclair
Next: Re: "Size of symbol changed" warnings building EPICS Base 3.14.12.2 Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: EDM Animated Symbol widget Angle PV property question John William Sinclair
Next: motor module R6-7-1 released Ron Sluiter
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·