EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Index of highest value
From: Andrew Johnson <[email protected]>
To: "Lawrence T. Hoff" <[email protected]>
Cc: [email protected]
Date: Mon, 20 Dec 2004 10:51:51 -0600
Lawrence T. Hoff wrote:
...
	I.e. I realize that I can find the highest "goodness
factor" via a SEL record. As far as I know, that can provide
the highest value, but not which input that value came form.

Good point/problem.


Suggestions?

How about creating your own modified version of the SEL record with slight modification to the code: In the calculation for SELECT_HIGH (and probably for SELECT_LOW as well for symmetry) have it set psel->seln=i as well as recording the highest value. Then you can read the SELN field to find the index you want.


We probably ought to make this change in the Base version of the selRecord as it seems like a common kind of issue, but I don't know how many existing databases it might break so I'd welcome any feedback positive or negative on the suggestion.

- Andrew
--
Dear God, I didn't think orange went with purple until I saw
the sunset you made last night.  That was really cool. - Caro


Replies:
Re: Index of highest value Lawrence T. Hoff
References:
Index of highest value Lawrence T. Hoff

Navigate by Date:
Prev: Re: Micos Motor Support query. Kurt A. Goetze
Next: Re: Index of highest value Lawrence T. Hoff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Index of highest value Lawrence T. Hoff
Next: Re: Index of highest value Lawrence T. Hoff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·