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  <20102011  2012  2013  2014  2015  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Lookup table problem
From: Tim Mooney <[email protected]>
To: [email protected]
Cc: tech-talk <[email protected]>
Date: Thu, 21 Oct 2010 12:11:27 -0500
The calc module (http://www.aps.anl.gov/bcda/synApps/calc/calc.html) has an
example of this (the interp.db database, and the interp.c aSub routine), though
with only two lookup-table arrays. (That is, it maintains arrays X, Y1(X), Y2(X).)


Interp has some extra stuff you probably don't want, as it supports building lookup
tables point-by-point at run time, and it can interpolate with a polynomial of order 1-10.
It uses autosave to load arrays (also to save them, if they are modified at run time).


Tim Mooney


Silver wrote:
hi,

I need to implement a function for insertion device like this:
Read a two-dimensions table file from the disk, which is values for gap positions and Correction coil power supplies (one gap value corresponding to 4 power supply value). If a gap position is set from the operator, four power supplies will be set automatically.
I want to use SNC language to do this, for reading the data from disk, use an asub record for it. Is it ok? Is there any better ways? Did anyone finish this job before? Any suggestions are appreciated.



Best regards Geyang 2010-10-21




--
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


References:
Lookup table problem Silver

Navigate by Date:
Prev: Re: Lookup table problem Ralph Lange
Next: Re: cross-gcc-2.9.6 problem zhuangjian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Lookup table problem Ben Franksen
Next: cross-gcc-2.9.6 problem 王林
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Oct 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·