g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  Index 2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014 
<== Date ==> <== Thread ==>

Subject: Alarm Filtering / Patch for aiRecord
From: Bernd Schoeneburg <bernd.schoeneburg@desy.de>
To: EPICS Core Talk <core-talk@aps.anl.gov>
Date: Thu, 16 Apr 2009 09:01:15 -0400
At the codeathon we discussed a time-based filtering of alarms in the
ioc. Finally a design from Bob Dalesio and Eric Norum became consense. A
time constant "AFTC" controls the smoothing of alarm levels.  Short
peaks of value should not generate alarms, sometimes. Using this filter
can avoid it.

Dear Andrew, Bob, Eric, Ralph and all,
at the codeathon I worked on the implementation of the alarm filtering
in the aiRecord. The handling of the hysteresis inside the filter was
not correct. Now I found a solution to store the inner state of the
hysteresis without using an additional field. The code is more compact
now. The traditional HYST of the record - which is in egu-units and is
applied on the value - is used to make the alarm more "sticky" which is
currently that of the record (now: after filtering).
At the codeathon there was a discussion where (and to what value) to set
the lalm variable. Now, after discussions, I set it to the level of the
alarm after the filtering. This makes sense, I think.

Important: When AFTC is set to zero (default) the record behaves like
normal.

Please have a look on the changes. The patch file is based on the latest
cvs snapshot 16Apr09. Next records to work on will be "bi" and "calc".

- Bernd

Attachment: rec_DIFF_AlarmFilering.gz
Description: GNU Zip compressed data


Navigate by Date:
Prev: EPICS @ RTEMS builds: separate BASE and TOOLS locations Ralph Lange
Next: Field support Rees, NP (Nick)
Index: 2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014 
Navigate by Thread:
Prev: EPICS @ RTEMS builds: separate BASE and TOOLS locations Ralph Lange
Next: Field support Rees, NP (Nick)
Index: 2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·