Experimental Physics and
| |||||||||||||||||
|
Hi Guobao,
On Tue, May 15, 2018 at 11:36 AM, Shen, Guobao <[email protected]> wrote:
Sorry, that should have just been print("Connected ", chan, conn) If the channel really is connected, I think you should be able to get the value, and I don't understand what is wrong. If the channel really is not connected, then the error makes more sense, and probably suggests EPICS_CA_ADDR_LIST is not set. And, depending on how you start the Jupyter Notebook, that setting of an environment variable like EPICS_CA_ADDR_LIST may change. For me, using Anaconda Python3 on MacOS, starting the Jupyter notebook by typing "~/anaconda3/bin/jupyter- But if you launch Jupyter (or IPython or jupyterlab) from Anaconda Navigator, the shell environmental variables defined in '.bash_profile' (and similar places) will not be used. In particular, you may have to set EPICS_CA_ADDR_LIST *before* doing any real CA work: In[1]: import os, epics In[2]: os.environ['EPICS_CA_ADDR_ In[3]: epics.caget('XXX:m1.VAL') Out[3]: -0.25 Hope that helps, --Matt
| ||||||||||||||||
ANJ, 16 May 2018 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |