EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  <19961997  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: Table Look-up and Array Processing
From: Thomas Dean <[email protected]>
To: [email protected]
Date: Wed, 06 Mar 1996 11:41:42 -0800 (PST)
Has anyone implemented a table-lookup and/or array processing with a
subroutine record?

I want to access the values in a waveform (WFM) record with a
subroutine record and pass the array to the output.  Something like
this:

      +-----+   +-------+      +-------+
      | WFM |-->|a   out|--+-->| SUB   |--> Hardware 1
      |     |   |       |  |   | ARRAY |
      +-----+   |       |  |   +-------+
                |       |  |
      +-----+   |       |  |   +-------+
      | WFM |-->|b      |  +-->| SUB   |--> Hardware 2
      |     |   |       |      | ARRAY |
      +-----+   |       |      +-------+
                |       |
      +-----+   |       
      | ao  |-->|c      | 1.  for idx=0..499
      |     |   |       |     a.  add c to a[idx]
      +-----+   | SUB-  |     b.  tmp = (a[idx]&0xf0)<8)|(a[idx+500]&0xf)
                | ROUT- |     c.  out[idx]=b[tmp]
                | INE   |     d.  out[idx+500]=b[tmp+500]
                |       |
                +-------+


Thanks,
tomdean


Navigate by Date:
Prev: Re: Bug in ca_pend_event() ? Jeff Hill
Next: Re: Bug in ca_pend_event() ? Guy Jennings
Index: 1994  1995  <19961997  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 
Navigate by Thread:
Prev: Re: Bug in ca_pend_event() ? Jeff Hill
Next: User-defined menus for dm Len Lawrence
Index: 1994  1995  <19961997  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 
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 ·