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