g+
g+ Communities
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  <2013 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <2013
<== Date ==> <== Thread ==>

Subject: Re: data smoothing record
From: luedeke <andreas.luedeke@psi.ch>
To: siddons@bnl.gov, tech-talk@aps.anl.gov
Date: Thu, 17 Jan 2013 10:48:55 +0100
On Jan 16, 2013, at 3:01 PM, D Peter Siddons <siddons@bnl.gov> 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  <2013
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  <2013
ANJ, 17 Jan 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·