Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: Timestamp record?
From: Andrew Johnson <anj@aps.anl.gov>
To: Jeff Gebhardt <gebhardt@cars.uchicago.edu>
Cc: tech-talk@aps.anl.gov
Date: Tue, 10 Jan 2006 15:38:21 -0600
Mark Rivers wrote:
All records report back the time when they processed, or more accurately the time when they called recGblGetTimeStamp, which is typically done just before posting monitor. You just need to use the proper channel access functions to retrieve that information.

However if you need the result as a string for something like an MEDM screen, there is stringin device support that has shipped with Base since R3.14.5 to convert the record's timestamp into the VAL field of the string record. Set the stringin's DTYP to "Soft Timestamp" and INP to the epicsTimeToStrftime() format string for the string conversion you want, for example:
field(INP, "@%b %d, %Y %H:%M:%S.%09f")


- Andrew
--
* * Matt Santos / / For a Brighter America * *

References:
RE: Timestamp record? Mark Rivers

Navigate by Date:
Prev: RE: Timestamp record? Jeff Hill
Next: RE: Timestamp record? Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: Timestamp record? Jeff Hill
Next: Re: Timestamp record? Ned Arnold
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·