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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS alarming on VAL != X
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Thu, 24 Jul 2014 11:27:24 -0500

On 07/24/2014 04:47 AM, Benjamin Franksen wrote:
> On Thursday 24 July 2014 11:15:56 Dirk Zimoch wrote:
>> On 21.07.2014 12:41, Benjamin Franksen wrote:
>>> Why don't you just set DRVL=DRVH=<the desired value>.
>>
>>      /* check drive limits */
>>      if (prec->drvh > prec->drvl) {
>>          if (value > prec->drvh)
>>              value = prec->drvh;
>>          else if (value < prec->drvl)
>>              value = prec->drvl;
>>      }
>>
>> DRVL=DRVH => no check at all!
> 
> Strange. Not intuitive to me. And contrary to the docs.

That check predates the CVS history of the aoRecord.c file (1995). It
makes perfect sense to me, there has to be a way to disable the clipping
behaviour, and the assumption is that you would only create ao records
for things that you want to be able to actually change. If you want to
stop changes for a while, disable record processing using SDIS & DISV.

> This is from the
> RRM (https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_Analog_Output#Desired_Output_Parameters):
> 
> """
> The VAL field's value is forced to be within the limits specified in the
> fields DRVH and DRVL, which are configured by the designer:
> 
> DRVL<=VAL<=DRVH
> 
> Note: If nothing is entered for DRVH and DRVL, the output value will
> never change.
> """

Wiki page fixed to document existing code.

- Andrew
-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

Replies:
Re: EPICS alarming on VAL != X Benjamin Franksen
References:
EPICS alarming on VAL != X Jameson Graef Rollins
Re: EPICS alarming on VAL != X Benjamin Franksen
Re: EPICS alarming on VAL != X Dirk Zimoch
Re: EPICS alarming on VAL != X Benjamin Franksen

Navigate by Date:
Prev: [no subject] Tim Waclawski
Next: RE: Tabbed Container Ability Patard Charles-Henri
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS alarming on VAL != X Benjamin Franksen
Next: Re: EPICS alarming on VAL != X Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·