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: Walter Werner <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Tue, 16 Dec 2014 16:14:28 +0100
hi

In fact the PV class reconnects by default, i tested it just to be
sure, you both are right. In the past i had this issue that my pvs did
not reconnect, but i can not reconstruct it anymore. Maybe an older
version of base or pcaspy. Thanks, i appreciate your help.

Walter



2014-12-16 3:50 GMT+01:00 Matt Newville <[email protected]>:
> 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
>
>
>
>

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
Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Matt Newville

Navigate by Date:
Prev: Re: Changing the Timeout for drvAsynSerialPort? Dirk Zimoch
Next: RE: Is it possible for an Asyn output record to be, also, an (I/O Intr - driven) input? Mark Rivers
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 Matt Newville
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 ·