Subject: |
Re: pyepics not updating pv.enum_strs after connection |
From: |
Jameson Graef Rollins <[email protected]> |
To: |
EPICS tech-talk <[email protected]> |
Date: |
Wed, 18 Mar 2015 16:26:40 -0700 |
On Wed, Mar 18 2015, Jameson Graef Rollins <[email protected]> wrote:
> 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.
Sorry, just to clarify, if I do *not* set connect=False when
initializing dev.PV, then the enum_strs attribute is set properly. In
other words, it appears to only be set if the pv is able to connect on
initialization. If connect=False, the created pv does not get enum_strs
set, nor does it ever even after a connection has been made.
jamie.
Attachment:
signature.asc
Description: PGP signature
- Replies:
- Re: pyepics not updating pv.enum_strs after connection Matt Newville
- References:
- pyepics not updating pv.enum_strs after connection Jameson Graef Rollins
- Navigate by Date:
- Prev:
pyepics not updating pv.enum_strs after connection Jameson Graef Rollins
- Next:
Announcing carchivetools Michael Davidsaver
- 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
2022
2023
2024
- Navigate by Thread:
- Prev:
pyepics not updating pv.enum_strs after connection Jameson Graef Rollins
- Next:
Re: pyepics not updating pv.enum_strs after connection Matt Newville
- 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
2022
2023
2024
|