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  2020  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: MDEL Field
From: Alfio Rizzo via Tech-talk <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 7 Apr 2021 06:08:50 +0000

Hi Michael,

thanks for the thorough explanation

Best


PhD Alfio Rizzo

Control System Integrator

Integrated Control Systems Division

European Spallation Source ERIC

 

Telephone: +46(0)721792342

Mail Address: P.O Box 176, SE 221 00 Lund, Sweden

Visiting address: Odarslövsvägen 113, Lund

 

https://europeanspallationsource.se/

 

1617173415506



From: Michael Davidsaver <mdavidsaver at gmail.com>
Sent: 07 April 2021 07:06:30
To: Alfio Rizzo
Cc: tech-talk at aps.anl.gov
Subject: Re: MDEL Field
 
On 4/6/21 12:01 PM, Alfio Rizzo via Tech-talk wrote:
> Hi
>
> I would like to have some clarification about the MDEL field.
>
> If I understood correctly from the online documentation,
>
> If I set a value > 0 , the PV monitor (camonitor or pvmonitor)
>
> should be triggered if and only if
>
> ABS(ValPrev - ValCurr) > MDEL
>
> where ValPrev and ValCurr is the previous and current value of my PV.
>
> So, I have made some simualtion, but apparently the monitor is triggered also when the condition before is not satisfied.
>
>
> Do I miss something ?

In addition to the value change event (DBE_VALUE), most clients also subscribe
to the alarm change event (DBE_ALARM).  So eg. a 'camonitor' will by default show
an update if either the MDEL deadband is exceeded, or if the alarm state changes.

You can use the '-m' argument of camonitor to probe this.  See 'caget -h' for other
options.


> $ camonitor PiraniGauge_RB
> PiraniGauge_RB                 2021-04-06 21:50:55.628735 0.0398545 HIHI MAJOR
> PiraniGauge_RB                 2021-04-06 21:51:04.628750 0.0374571 HIGH MINOR
> PiraniGauge_RB                 2021-04-06 21:51:08.628789 0.0342738 
> PiraniGauge_RB                 2021-04-06 21:51:18.628817 0.0247016 LOW MINOR
> PiraniGauge_RB                 2021-04-06 21:51:22.628811 0.0218172 LOLO MAJOR
> PiraniGauge_RB                 2021-04-06 21:51:35.628792 0.0222724 LOW MINOR
> PiraniGauge_RB                 2021-04-06 21:51:39.628829 0.025354 
> PiraniGauge_RB                 2021-04-06 21:51:50.628785 0.0357844 HIGH MINOR
> PiraniGauge_RB                 2021-04-06 21:51:54.628773 0.0385044 HIHI MAJOR
> PiraniGauge_RB                 2021-04-06 21:52:06.628815 0.0379849 HIGH MINOR
> PiraniGauge_RB                 2021-04-06 21:52:11.628786 0.0341212 
> PiraniGauge_RB                 2021-04-06 21:52:21.628730 0.0245598 LOW MINOR
> PiraniGauge_RB                 2021-04-06 21:52:25.628775 0.0217217 LOLO MAJOR
> PiraniGauge_RB                 2021-04-06 21:52:38.628715 0.0223802 LOW MINOR
> PiraniGauge_RB                 2021-04-06 21:52:42.628800 0.0255035 
> PiraniGauge_RB                 2021-04-06 21:52:52.628759 0.0350866 HIGH MINOR
> PiraniGauge_RB                 2021-04-06 21:52:56.628754 0.0380378 HIHI MAJOR


Subscribe only to DBE_VALUE.

> $ camonitor -m v PiraniGauge_RB
> PiraniGauge_RB                 2021-04-06 21:57:28.828710 0.039463 HIHI MAJOR


cf. record support code for ai where the monitor event for .VAL originates.

https://github.com/epics-base/epics-base/blob/348d1bba176117178eb2c59cd0be193e1cf104ca/modules/database/src/std/rec/aiRecord.c#L461

recGblResetAlarms() handles alarm change

https://github.com/epics-base/epics-base/blob/348d1bba176117178eb2c59cd0be193e1cf104ca/modules/database/src/ioc/db/recGbl.c#L208

recGblCheckDeadband() handles floating point deadband

https://github.com/epics-base/epics-base/blob/348d1bba176117178eb2c59cd0be193e1cf104ca/modules/database/src/ioc/db/recGbl.c#L354

PNG image

PNG image


References:
MDEL Field Alfio Rizzo via Tech-talk
Re: MDEL Field Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: MDEL Field Michael Davidsaver via Tech-talk
Next: Re: Handling Ethernet-to-Serial Connection when vendor SDK expects tty device Maren Purves 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  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: MDEL Field Michael Davidsaver via Tech-talk
Next: StreamDevice mbbi format-converter problem Mooney, Tim M. 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  2020  <20212022  2023  2024 
ANJ, 08 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·