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? UPTIME
From: Andrew Johnson <anj@aps.anl.gov>
To: Emmanuel Mayssat <emmanuel_mayssat@lynceantech.com>
Cc: tech-talk@aps.anl.gov
Date: Tue, 10 Jan 2006 17:26:12 -0600
Emmanuel Mayssat wrote:
But what I truly want is the uptime.
I haven't found an easy way to do that yet...

That depends what you mean by uptime - it would be trivial to create a CALC record that keeps a seconds counter if you want to measure your uptime in seconds (and don't mind slight inaccuracies since your 1 second scan task might not tick at exactly once a second).


If those inaccuracies bother you or you need the result in a textual format then a subroutine record could do the necessary calculation and string conversion -- copy any string result to the DESC field and call db_post_event(precord, &precord->desc, DBE_VALUE) to make sure the monitor event gets posted. I don't know whether this counts as "easy" though...

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

Replies:
Re: Timestamp record? UPTIME Kay-Uwe Kasemir
References:
RE: Timestamp record? Allison, Stephanie
RE: Timestamp record? UPTIME Emmanuel Mayssat

Navigate by Date:
Prev: RE: Timestamp record? UPTIME Emmanuel Mayssat
Next: Re: Timestamp record? UPTIME Kay-Uwe Kasemir
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? UPTIME Emmanuel Mayssat
Next: Re: Timestamp record? UPTIME Kay-Uwe Kasemir
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 ·