Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: Re: subArray processing (when comments and code disagree)
From: Carl Lionberger <CALionberger@lbl.gov>
To: "Lawrence T. Hoff" <hoff@bnl.gov>
Cc: tech-talk@aps.anl.gov
Date: Tue, 06 Sep 2005 14:20:18 -0700
It was the documentation that needed to be fixed. My first wiki act has just been to change this.

Carl

Lawrence T. Hoff wrote:

	This probably has no real practical consequence, but.....
I noticed a (minor) discrepancy between the EPICS Record Reference
Manual description of subArray record processing, and the code
which implements the algorithm. I have a suspicion about which is
correct, but maybe someone who has complete confidence can bring
these two into agreement:

Record Reference Manual:


Sanity check INDX. If INDX is greater than MALM it is set to MALM-1.



subArrayRecord.c:


if (psa->indx >= psa->malm)
{
psa->indx = psa->malm - 1;
}



Note that one says ">", and the other says ">="...


-- Larry





--
Carl Lionberger
Control System Software Engineer
Berkeley National Laboratory (LBNL)
(510)486 7503


References:
subArray processing (when comments and code disagree) Lawrence T. Hoff

Navigate by Date:
Prev: Re: SNCSEQ... Emmanuel Mayssat
Next: Controls Group positions at SNS Gurd, David P.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: subArray processing (when comments and code disagree) Ralph Lange
Next: MVME 6100 Erik Johansson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·