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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: PyEPICS timeout in jupyter |
From: | Matt Newville <[email protected]> |
To: | "Shen, Guobao" <[email protected]> |
Cc: | Talk EPICS Tech <[email protected]> |
Date: | Tue, 15 May 2018 16:10:10 -0500 |
Hi Matt,
Yes, the outputs are same from both terminal & jupyter.
I am wondering something wrong with Mac or safari. I had no problem with the same script on my linux box.
Here is output from my terminal:
>>> print(epics.ca.find_libca())
/Users/xxxxxx/anaconda3/anacon
da3/lib/python3.6/site-package s/epics/clibs/darwin64/libca. dylib >>> chan = epics.ca.create_channel('test'
) >>> conn = epics.ca.connect_channel(chan)
>>> print("Connected ", chan, conn== epics.dbr.CS_CONN)
Connected c_long(140696518603264) False
>>> val = epics.ca.get(chan)
>>> print(val)
5.6
And output from jupyter notebook:
print(epics.ca.find_libca())
chan = epics.ca.create_channel('test'
) conn = epics.ca.connect_channel(chan)
print("Connected ", chan, conn== epics.dbr.CS_CONN)
val = epics.ca.get(chan)
/Users/xxxxxx/anaconda3/anacon
da3/lib/python3.6/site-package s/epics/clibs/darwin64/libca. dylib Connected 140535502249016 False
/Users/xxxxxx/anaconda3/anacon
da3/lib/python3.6/site-package s/epics/ca.py:1306: UserWarning: ca.get('test') timed out after 1.00 seconds. warnings.warn(msg % (name(chid), timeout))