EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: TIME field
From: "Allison, Stephanie" <[email protected]>
To: "'Hunt Steven'" <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Thu, 05 Jun 2003 08:26:41 -0700
Hi Steve,

> I need to accurately calculate the delay between the processing of two
> records.  I can do this in a client program, via channel 
> access but is it possible in a database, as TIME is "NOACCESS".

Are the two records on the same IOC?  If yes, then perhaps a subroutine record on the same IOC with inpa and inpb being links to your two records would work?  The subroutine would look something like:

include "dbAccess.h"

epicsTimeStamp timea, timeb;

dbGetTimeStamp(&psub->inpa,  &timea);
dbGetTimeStatmp(&psub->inpb, &timeb);
psub->c = epicsTimeDiffInSeconds(&timea,&timeb);

Stephanie Allison


 

Navigate by Date:
Prev: Time waits for ca-pend-event on Solaris/SPARC Gary P Carr
Next: Re: Linking question Guy Jennings
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: TIME field Hunt Steven
Next: Time waits for ca-pend-event on Solaris/SPARC Gary P Carr
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·