Terry Cornall wrote:
Hi All
Perhaps someone can point to me to the doco that describes how an
acknowledgement can be sent to an alarmed record?
I see that there is a field ACKT that if set to YES means that an
alarm must be acknowledged and is latched until it is, and I see
reference to Channel Access providing a method to do this but I can’t
find the details. Is there any way (other than installing the ALH
alarm handler gui) that I can acknowledge (and presumable reset) a
transient alarm in a record? I was hoping for something as simple as a
caput….
Thanks in advance.
The following, which appears in mrkSoftTest does what you want:
/*caputackt.c*/
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "cadef.h"
int main(int argc,char **argv)
{
chid mychid;
unsigned short value;
if(argc!=3) {
printf("usage: caputackt pvname value\n");
exit(1);
}
sscanf(argv[2],"%hu",&value);
SEVCHK(ca_task_initialize(),"ca_task_initialize");
SEVCHK(ca_search(argv[1],&mychid), "ca_search");
ca_pend_io(5.0);
SEVCHK(ca_put(DBR_PUT_ACKT,mychid,&value),"ca_put");
ca_pend_event(1.0);
/*
ca_task_exit();
*/
return(0);
}
The value you write is the highest severity you want to acknowledge.
Remember that (0,1,2,3) means (noalarm,minor,major,,invalid)
- References:
- alarm acknowledgement Terry Cornall
- Navigate by Date:
- Prev:
Re: EpicsEventShow Martin Konrad
- Next:
Re: EpicsEventShow Eric Norum
- 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:
alarm acknowledgement Terry Cornall
- Next:
EpicsEventShow Martin Konrad
- 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
|