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  <20152016  2017  2018  2019  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: V4 pvDatabase PVRecord bug?
From: Tom Slejko <[email protected]>
To: [email protected]
Date: Mon, 09 Feb 2015 08:39:12 +0100 (CET)
If I understood the documentation properly, than this is actually working as expected; excerpt from pvData[1] docs: 

postPut
If a postHandler is registered it is called otherwise no action is taken.

NOTE: The implementation of the various data interfaces automatically call postPut when a field is changed. However this is not true for a subField of a PVUnion, PVUnionArray, or PVStructureArray. If a subField of any of these is changed then the code that is making the modification must call postPut for the PVUnion, PVUnionArray, or PVStructureArray field. Note also that it is not a good idea to modify a subfield of a PVUnionArray or a PVStructureArray since it violates the idea of Copy On Write for arrays


Cheers, Tom 

[1] http://epics-pvdata.sourceforge.net/docbuild/pvDataCPP/4.4.0/documentation/pvDataCPP.html

───────────────────────┐ ┌─┐ ┌─┐ ┌─┐ ┌───────────────────────
                       └─┘ └─┘ └─┘ └─┘
 Tom SLEJKO, Senior Control system engineer
 Email: [email protected]
 http://www.cosylab.com Phone: +386 (40) 349-082
 Teslova ulica 30
 Skype: tomslejko
──┐ ┌─┐ ┌─┐ ┌─┐ ┌───────────────────────────┐ ┌─┐ ┌─┐ ┌─┐ ┌──
  └─┘ └─┘ └─┘ └─┘                           └─┘ └─┘ └─┘ └─┘


----- Original Message -----
From: "Bruno Martins" <[email protected]>
To: [email protected]
Sent: Friday, 6 February, 2015 9:04:58 PM
Subject: V4 pvDatabase PVRecord bug?




Hi everyone, 

I am doing some experiments with v4. I have a simple v4 IOC with a single NTNDArray record. On the client side I'm just monitoring it with pvget -m. 


Everything works fine as I put new values on different fields of my record, except for the 'value' field, which is a union. If I put a new value there (select, reuse, copy data, replace) the monitor doesn't pick up the change. Other fields update automatically after put(). I can fix this by calling the method postPut on the field. 


Is this the way it's supposed to be? 


I'm using the latest version of everything from the mercurial repos. 





Thanks! 






Bruno 


References:
V4 pvDatabase PVRecord bug? Bruno Martins

Navigate by Date:
Prev: Re: Fetching return value from external program call in StreamDevice Torsten Bögershausen
Next: How to make standalone applications run from within EPICS shell Deeptarka Das/TVM/TCS
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  2021  2022  2023  2024 
Navigate by Thread:
Prev: V4 pvDatabase PVRecord bug? Bruno Martins
Next: epics on ios Mezger Anton Christian (PSI)
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  2021  2022  2023  2024 
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 ·