EPICS Controls 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  2012  2013  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: pyepics "Virtual circuit disconnect" CA.Client.Exception
From: Matt Newville <[email protected]>
To: Walter Werner <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Mon, 15 Dec 2014 20:50:47 -0600
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  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·