Hi all,
My environment: CentOS 7(64),epics 3.15.5, python 2.7.5, pyepics from pip.
I could not connect the pv when I using pyepics ( I set the EPICS_BASE,EPICS_HOST_ARCH, PYEPICS_LIBCA ).
First I started the example IOC, and it worked fine.
Then I try to connect it using pyepics.
Then I got these:
***************
>>> import epics
>>> from epics import caget, caput
>>> m1 = caget('lyx:ai3')
print m1
cannot connect to lyx:ai3
>>> print m1
I think maybe the question was installation. Since I didn't understand these sentences well in document of pyepics.
************ sentence in document **************************
Getting Started, Setting up the Epics Environment
Put the dynamic library somewhere in the Python path. A convenient
place might be the same site-packages/pyepics library
folder as the
python package is installed.
-
To find out which CA library will be used by pyepics, use:
-
>>> import epics >>> epics.ca.find_libca()
************************************
I knew where the libcaI is. But I didn't know where I should put it in python path. So I did not put the libca.so in python path.
And others was fine. For python I knew such a little thing.
Could someone give me some help. Why I could not connect it.
Thanks.
Liang yx