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
<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
- Navigate by Thread:
- Prev:
Re: Bug in ca_pend_event() ? Jeff Hill
- Next:
User-defined menus for dm Len Lawrence
- 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
|