EPICS Home

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: pyepics "Virtual circuit disconnect" CA.Client.Exception
From: Walter Werner <[email protected]>
To: [email protected]
Date: Fri, 12 Dec 2014 17:28:12 +0100
hi all,

I use pyepics for my client and want to avoid the "Virtual circuit
disconnect" exception from CA beeing printed on the standard input.
CA.Client.Exception...............................................
    Warning: "Virtual circuit disconnect"
    Context: "localhost:20000"
    Source File: ../cac.cpp line 1215
    Current Time: Wed Dec 10 2014 05:51:45.821307011
..................................................................
This exception accrues if the server is down. With this small script i
wanted to catch the exception:

import epics
import time

t = epics.PV('chicane:q1:temp')

while True:
    try:
        if t.connected: print t.value
        time.sleep(1)
    except Exception as e:
        print 'exception caught'

But it seems for me thet it is a low level issue. Any help appreciated.

Replies:
Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Andrew Johnson

Navigate by Date:
Prev: Re: CA Gateway 2.0.5.0 released Andrew Johnson
Next: Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Andrew Johnson
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: caQtDM on ipad zhuangjian
Next: Re: pyepics "Virtual circuit disconnect" CA.Client.Exception Andrew Johnson
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