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  2014  2015  2016  2017  <20182019  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  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: a simple question about pyepics
From: "Mooney, Tim M." <[email protected]>
To: 梁雅翔 <[email protected]>, tech-talk <[email protected]>
Date: Sun, 19 Aug 2018 05:11:22 +0000

What happens when you type these commands at the python prompt?

>>> import epics

>>> epics.ca.find_libca()


Tim Mooney ([email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] <[email protected]> on behalf of 梁雅翔 <[email protected]>
Sent: Saturday, August 18, 2018 11:14:12 PM
To: tech-talk
Subject: a simple question about pyepics
 

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


References:
a simple question about pyepics 梁雅翔

Navigate by Date:
Prev: a simple question about pyepics 梁雅翔
Next: Installing extra CONFIG_SITE file Hinko Kocevar
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: a simple question about pyepics 梁雅翔
Next: Re: a simple question about pyepics Ricardo Cardenes via Tech-talk
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 21 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·