Experimental Physics and Industrial Control System
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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024