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  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: data smoothing record
From: luedeke <[email protected]>
To: [email protected], [email protected]
Date: Thu, 17 Jan 2013 10:48:55 +0100
On Jan 16, 2013, at 3:01 PM, D Peter Siddons <[email protected]> wrote:

> Is there a record which can swallow a stream of data from a source
> (e.g. an ADC) and take a running average of N values and output it?

You need to have two compress records to achieve this behaviour:
The first one reads the input scalar in a circular buffer with N values.
The second reads this circular buffer and does an "N to 1 average".
Then you get a new N to 1 average with each new value read.

If you would do it with one compress record, the output would only
update once after sampling N values.
That wouldn't be really a "running average".

Cheers
Andreas

-- 
() Andreas Luedeke, Tel+41-56-3104002, http://people.web.psi.ch/luedeke
/\ ascii ribbon campaign  -  stop html mail and proprietary attachments

Navigate by Date:
Prev: Re: data smoothing record D Peter Siddons
Next: building epics on windows with visual studio 2012 Sinclair, John William
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: data smoothing record D Peter Siddons
Next: building epics on windows with visual studio 2012 Sinclair, John William
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·