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  <20172018  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  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to add userTag to struct timeStamp in NTScalarArray
From: Marty Kraimer <[email protected]>
To: [email protected]
Date: Tue, 13 Jun 2017 13:55:01 -0400
On 06/13/2017 11:53 AM, Heinz Junkes wrote:
In a thread update method I try to set the userTag :

PVIntPtr pvUserTag =  pvStructure->getSubField<PVInt>("timeStamp.userTag");
pvUserTag->put(count++);
but  eget  -r "field(timeStamp.userTag)” demo shows always

demo
structure
     structure timeStamp
         int userTag 0


Any hints?
Danke Heinz


I suspect that you are communicating with a PVRecord that is processed when You do a put.

If the base class process method is called it sets the timeStamp to the current time and also sets the userTag to 0.


Note the following


mrk> pvget -r "timeStamp.userTag" PVRdouble
PVRdouble
structure
    structure timeStamp
        int userTag 0


mrk> pvput -r "timeStamp.userTag" PVRdouble 3
Old :
structure
    structure timeStamp
        int userTag 0


New :
structure
    structure timeStamp
        int userTag 0


But if process is set to false


mrk> pvput -r "record[process=false]field(timeStamp.userTag)" PVRdouble 3
Old :
structure
    structure timeStamp
        int userTag 0


New :
structure
    structure timeStamp
        int userTag 3


mrk> pvget -r "timeStamp.userTag" PVRdouble
PVRdouble
structure
    structure timeStamp
        int userTag 3


Hope this helps.


Marty



References:
How to add userTag to struct timeStamp in NTScalarArray Heinz Junkes

Navigate by Date:
Prev: Re: saving samples Ralph Lange
Next: Re: saving samples Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to add userTag to struct timeStamp in NTScalarArray Heinz Junkes
Next: the newest areaDetector 梁雅翔
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·