Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: alarm hook
From: Andrew Johnson <anj@aps.anl.gov>
To: "Liyu, Andrei" <liyua@ornl.gov>
Cc: Matthias Clausen <Matthias.Clausen@desy.de>, Geoff Savage <savage@fnal.gov>, EPICS core-talk <core-talk@aps.anl.gov>, "Zhukov, Alexander P." <zhukovap@ornl.gov>
Date: Mon, 19 Jun 2006 17:58:51 -0500
Hi Andrei,

You will be able to reimplement your logging code using the hook I am proposing. The routine called via the the recGblAlarmHook pointer is passed the *previous* values for the record's alarm status and severity as parameters, and can get the new values directly from the record's prec->stat and prec->sevr fields. Thus all the same information is available to the hook routine as was available where you inserted the changes in your modified version.

The aim of providing hooks like this is so that those sites that are not interested in functionality such as logging alarms are not significantly penalized, but users like you who want to do so are able to hook the IOC into their logging subsystem without having to make any changes to the source code of Base at all.

- Andrew
--
Not everything that can be counted counts,
and not everything that counts can be counted.
  -- Albert Einstein

References:
RE: alarm hook Liyu, Andrei

Navigate by Date:
Prev: RE: alarm hook Liyu, Andrei
Next: Re: alarm hook Matthias Clausen
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: RE: alarm hook Liyu, Andrei
Next: RE: alarm hook Liyu, Andrei
Index: 2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 02 Feb 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·