EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: asub to set alarm status for ai record?
From: "Sobhani, Bayan via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 29 Apr 2020 16:43:55 +0000

I am able to set the alarm status of an asub record by doing the following in an asub function:

 

recGblSetSevr(prec,READ_ALARM,MAJOR_ALARM);

 

This works for the asub record. Instead of setting the alarm like this for an asub record though, I was wondering if it is possible to set the alarm for an ai record.

 

Here is my attempt so far. My asub record is defined as:

 

record(aSub, "$(Sys)$(Dev)T$(N_T)-Elapsed_asub") {

        field(SNAM, "timeElapsed")

        field(INPA, "$(Sys)$(Dev)T$(N_T)-Time")

        field(OUTA, "$(Sys)$(Dev)T$(N_T)-Elapsed PP")

        field(OUTB, "$(Sys)$(Dev)T$(N_T)-I.NSTA")

        field(FTA, "DOUBLE")

        field(FTVA, "DOUBLE")

        field(FTVB, "ENUM")

        field(SCAN, "5 second")

}

 

I specified the alarm I am trying to set in OUTB. And then in my asub c file I try to do the following:

 

*((epicsEnum16*)prec->valb) = READ_ALARM;

 

I get the following messages in the IOC:

 

Error (511,511) PV: XF:17ID-CT:FMX{RG:F4}T-I.NSTA error detected in routine: dbPut

 

Is there any way I can set the alarm status for an ai record from an asub function? I can do it for an asub record, but asub records lack some features that I want from ai records, such as HIGH and HIHI fields.

 

Alex


Replies:
Re: asub to set alarm status for ai record? Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: defining debug in modules/libcom/src/osi/epicsGeneralTime.c in epics-base leads to compilation error for TestIoc junkes via Tech-talk
Next: Re: asub to set alarm status for ai record? Michael Davidsaver via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Synchronization and saving frame rate Mark Rivers via Tech-talk
Next: Re: asub to set alarm status for ai record? Michael Davidsaver via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 04 May 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·