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  <20152016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: pyepics not updating pv.enum_strs after connection
From: Jameson Graef Rollins <jrollins@ligo.caltech.edu>
To: EPICS tech-talk <tech-talk@aps.anl.gov>
Date: Wed, 18 Mar 2015 14:11:26 -0700
Hi, folks.  I'm having an issue with pyepics and ENUM records.  I'm
initializing a PV from a device as follows:

dev = Device(prefix)
pv = dev.PV(attr, connect=False, connection_callback=connection_callback)
pv.add_callback(callback)

This all seems to work fine and as expected, except that the pv supplied
as a keyword argument to the connection_callback and callback functions
never has the pv.enum_strs attribute set for ENUM records, even after
connection has been established.  This means the ENUMs can't ever be
resolved as strings.

I'm using pyepics 3.2.1, and I assume this is a bug in this version that
has maybe (hopefully) been resolved upstream.  In the mean time, does
anyone know a workaround by which I can force the pv to update the
enum_strs attribute, or at least a way I can retrieve it from the server
so that I can update it manually?

Thanks in advance for any help.

jamie.

Attachment: signature.asc
Description: PGP signature


Replies:
Re: pyepics not updating pv.enum_strs after connection Jameson Graef Rollins

Navigate by Date:
Prev: RE: Base 3.14.12.5-rc1 Available freddie.akeroyd
Next: Re: pyepics not updating pv.enum_strs after connection Jameson Graef Rollins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: Increment array counter for NDFileModeSingle Hinko Kocevar
Next: Re: pyepics not updating pv.enum_strs after connection Jameson Graef Rollins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·