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 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 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Lookup table problem |
From: | Ralph Lange <[email protected]> |
To: | tech-talk <[email protected]> |
Date: | Thu, 21 Oct 2010 09:52:38 -0400 |
I am not sure if this applies - but the analog input record (and could be put into the AO record) has support for breakpoint tables. A breakpoint table with an entry for each integer is a lookup table. There is some optimization in that code for starting the search for the segment from the location of the last segment.
HTH, Ralph
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Silver Sent: Thursday, October 21, 2010 4:41 AM To: tech-talk Subject: Lookup table problem
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
Ralph Lange Bldg.902-B, Rm.18 tel: x8060 NSLS-II Controls Group fax: x8085