Experimental Physics and Industrial Control System
|
Hello all,
In my EPICS database, for certain PVs I use forward links and sub records such that, whenever the PV value changes, a subroutine is called. It’s a pretty basic implementation:
record(longin, “MY_PV”)
{
field(SCAN, “Passive”)
field(HIHI, “30”)
field(HHSV, “MAJOR”)
field(FLNK, “MY_PV_sub”)
}
record(“MY_PV_sub”)
{
field(INPA, “MY_PV”)
field(SNAM, “MY_PV_subroutine”)
}
What I’d like to do additionally (or instead) is to call a subroutine only when MY_PV goes to the HIHI alarm state (in the example above, when the value of MY_PV goes from less than 30 to 30 or greater). I assumed it could
be done by somehow looking at MY_PV.SEVR, but I can’t figure out how to do it. Is it possible to define the database records so that a subroutine is executed only when the associated PV goes into an alarm state?
Thanks!
-Mark
|
- Replies:
- Re: Subroutine invoked only when PV limit exceeded? Andrew Johnson
- Navigate by Date:
- Prev:
RE: can't see epicsqt widgets in QT designer Andrew Rhyder
- Next:
Re: Subroutine invoked only when PV limit exceeded? Andrew Johnson
- 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:
RE: can't see epicsqt widgets in QT designer Andrew Rhyder
- Next:
Re: Subroutine invoked only when PV limit exceeded? Andrew Johnson
- 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
|
ANJ, 17 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|