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  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  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  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: PyEpics: Cannot connect to DEVICE
From: Thomas Feggeler via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Thu, 9 Jun 2022 17:28:37 +0200
Dear colleagues,

We have a new computer installation (Windows 10) with epics 7.0.4, python 3.6.4. When I try to connect with caget() directly over the command line to access a device, e.g.

Caget XXXX:XXXX:firmwarebuilddate

It immediately works.

When using pyepics over pycharm, or the python interpreter, the message „cannot connect to DEVICE“ is given out.

The Windows path variables are set, EPICS_CA_ADDR_LIST is set and imported into the pycharm environment.

In both pycharm and python console if I do the following:

import epics
import os
from epics import PV, caget, caput, cainfo
os.environ['EPICS_CA_ADDR_LIST'] = 'XXX.XXX.XXX.XXX'
os.environ['EPICS_CA_AUTO_ADDR_LIST'] = 'NO'
print(caget('XXXX:XXXX:firmwarebuilddate'))

The same error occurs.

I’d kindly ask for your help.

Thank you

Kind wishes

Thomas













Replies:
RE: PyEpics: Cannot connect to DEVICE Mark Rivers via Tech-talk
Re: PyEpics: Cannot connect to DEVICE Matt Newville via Tech-talk

Navigate by Date:
Prev: Removing battery/crystal from MVME 5100 Walsh, Thomas R. via Tech-talk
Next: Re: RBV value for Soft Channel motor not always being set properly on IOC startup Kevin Peterson 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  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Removing battery/crystal from MVME 5100 Maren Purves via Tech-talk
Next: RE: PyEpics: Cannot connect to DEVICE Mark Rivers 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  2018  2019  2020  2021  <20222023  2024