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  <20102011  2012  2013  2014  2015  2016  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Time stamp question
From: Andrew Johnson <[email protected]>
To: [email protected]
Cc: Andrew Wagner <[email protected]>
Date: Wed, 1 Sep 2010 10:19:35 -0500
Hi Andrew,

On Tuesday 31 August 2010 20:04:29 Andrew Wagner wrote:
>
> I have a Calcout record that needs to calculate the time between its
> present and previous processing. How can I best accomplish this? Searching
> the tech-talk forum I've found that there is DTYP, "Soft Timestamp" which I
> suppose gets the system time. I would like to compute the time difference
> in seconds so is it possible to create an AI record
>
> record(ai, "TIme") {
>   field(DESC, "System Time")
>   field(DTYP, "Soft Timestamp")
>   field(INP, "%s")
> }
>
> that gets seconds since the epoc I can use as an input to Calcout record?

That should work and be more efficient than the other suggestions to use the 
stringin device support, although you don't have to set the INP field at all 
as it is ignored by the device support.  If you're having problems it might be 
that it doesn't like parsing the %s, so either take out INP altogether, make 
it blank, or just set it to "@".

- Andrew
-- 
The best FOSS code is written to be read by other humans -- Harald Welte


Replies:
cPCI leige
References:
Time stamp question Andrew Wagner

Navigate by Date:
Prev: Re: Time stamp question Andrew Johnson
Next: Regsitration for the hotel during the EPICS meeting Dalesio, Leo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Time stamp question Martin L. Smith
Next: cPCI leige
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 07 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·