EPICS Home

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: subArray and aSub questions
From: John Dobbins <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Mon, 17 May 2010 15:09:54 -0400
All,

(using EPICS 3.14.9)

I have a subArray record which reads a variable number (set by NELM) of words from hardware.

If I do

caget my_subArray

it returns the number of elements and their values. I can change NELM and a subsequent caget reflects this change.


question 1) does Channel Access transfer only NELM number of values or is it transferring MALM number of values?

question 2) would this break down if I attach a monitor to my_subArray? i.e. will changing NELM cause problems for a monitor?

I want to process the data in my_subArray to produce a set of related arrays. If I use aSub I have to specify the input array size (e.g. NOA) and output array size (e.g. NOVA), sizes which cannot later be modified (per Record Reference manual).

i.e my_subArray (NELM = N) -> aSub (NOA,NOVA = N_MAX)

question 3) does aSub field NEA (number of input A elements) get set by db processing when input A is read in? i.e. can my subroutine use the value of NEA to tell how many values were read in?

question 4) is my aSub subroutine allowed to change NEVA (number of input A elements) (Record Reference manual field summary says "no modify" - or does that refer only to via dbPut?)

question 5a) if answer to 4 is yes, will "caget my_aSub.VALA" return NEVA number of elements?

question 5b) if the answer to Q. 4 is no, can I use another subArray record to read from the aSub record to reset the array length?

i.e. my_subArray(NELM = N) -> aSub (NOA,NOVA = N_MAX) -> new_subArray(NELM = N)



Thanks,

John Dobbins
Lab for Elementary Particle Physics
Cornell University





Replies:
Re: subArray and aSub questions Andrew Johnson

Navigate by Date:
Prev: Re: compiling SDDS, libpng.a Robert Soliday
Next: busy record Patrick Thomas
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: sequencer beta release Goetz Pfeiffer
Next: Re: subArray and aSub questions Andrew Johnson
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