Experimental Physics and Industrial Control System
|
Hi Walter,
Sorry for the delay in responding, and thanks Andrew. To be clear, a pyepics.PV *does* automatically create a simple connection callback, and PVs should definitely re-connect on re-boot of an IOC (they do for me!). As Andrew suggests, using epics.ca.replace_printf_handler() is probably what you want for redirecting or suppressing the messages sent from the CA library. For example, import epics def handle_messages(text): print(" Saw CA Message: %s\n" % text) epics.ca.replace_printf_handler(handle_messages) By default, such messages are sent to STDERR. As an alternative, you could redirect all messages to STDERR, by replacing sys.stderr.write with your own function. That wouldn't be CA-specifc, of course. Hope that helps, --Matt
- Replies:
- Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Walter Werner
- References:
- pyepics "Virtual circuit disconnect" CA.Client.Exception Walter Werner
- Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Andrew Johnson
- Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Walter Werner
- Navigate by Date:
- Prev:
IPAC Version 2.13 now available Andrew Johnson
- Next:
Re: Changing the Timeout for drvAsynSerialPort? 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: pyepics "Virtual circuit disconnect" CA.Client.Exception Walter Werner
- Next:
Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Walter Werner
- 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
|
ANJ, 17 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|