EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: a problem about using EPICS DB
From: Kay-Uwe Kasemir <[email protected]>
To: marco_hair <[email protected]>
Cc: tech-talk <[email protected]>
Date: Fri, 18 May 2007 10:00:10 -0400

On May 18, 2007, at 09:45 , marco_hair wrote:


hi, all:

I met a problem. Now I am using a BI record to get a value from hardware, scan period is 1 second. So in 3 seconds, I will get 3 values(for example, a,b,c). I want a average value of these three ones which will be obtained by edm, that is (a+b+c)/3. How can I implement it by EPICS db? or is there any other ways to reach this?

The 'compress' record type could be configured to read NSAM=3 samples with ALG="N to 1 Average" to get the average of those 3 records.

I think that's most often used with numeric values as they would
for example come from an AI record.
But it should work with your specific example, a "BI" record,
that provides binary or boolean, i.e. 0/1 values.
When you take the average of those boolean values,
for example a series 0, 1, 0,
I guess you could interpret the resulting 0.333 as a fuzzy logic
probability of 30%.

-Kay
References:
a problem about using EPICS DB marco_hair

Navigate by Date:
Prev: a problem about using EPICS DB marco_hair
Next: Re: CAMAC & Linux question Kazuro FURUKAWA
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: a problem about using EPICS DB marco_hair
Next: Adding target architecture Eric Williams
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·